FilterChain implementation
FilterChain, Filter
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | |
| private class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final DefaultFilterChain. | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | checkStoredMessage(final FilterChainContext ctx, final DefaultFilterChain.
FiltersState associated with the Connectionthe current filter index filterIdx)Checks if |
| public ProcessorResult | execute(FilterChainContext
FilterChainContext processing contextImplements org. Execute this FilterChain. |
| protected DefaultFilterChain. | Returns: Todo Update FilterChainContext processing contextFilterExecutor, which will call appropriate filter operation to process IOEvent. |
| protected NextAction | Returns: NextAction.Execute the |
| public void | fail(FilterChainContext context, Throwable failure)
Implements org.
|
| public void | fireEventDownstream(final Connection<L> connection, final FilterChainEvent event, final CompletionHandler<FilterChainContext> completionHandler)
Implements org.
|
| public void | fireEventUpstream(final Connection<L> connection, final FilterChainEvent event, final CompletionHandler<FilterChainContext> completionHandler)
Implements org.
|
| public void | flush(final Connection<L> connection, final CompletionHandler<WriteResult<K, L>> completionHandler)
Implements org.
|
| private void | |
| private void | |
| private DefaultFilterChain. | |
| private static boolean | prepareRemainder(final FilterChainContext ctx, final DefaultFilterChain.
Locates a message remainder in the |
| public ProcessorResult | process(final Context context)
Implements org. Method will be called by framework to process some event, which occurred on a connection |
| public void | read(final Connection<L> connection, final CompletionHandler<ReadResult<K, L>> completionHandler)
Implements org.
|
| public ReadResult | read(final FilterChainContext context)
Implements org.
|
| private <M> void | storeMessage(final FilterChainContext ctx, final DefaultFilterChain.
Stores the Filter associated remainder. |
| public DefaultFilterChain | subList(int fromIndex, int toIndex)
Implements java. Returns a view of the portion of this list between the specified
|
| private void | Returns: position of the last executedFilterNotify the filters about error. |
| public void | write(final Connection<L> connection, final Object dstAddress, final Object message, final CompletionHandler<WriteResult<K, L>> completionHandler)
Implements org.
|
| public void | write(final Connection<L> connection, final Object dstAddress, final Object message, final CompletionHandler<WriteResult<K, L>> completionHandler, final MessageCloner<E> messageCloner)
Implements org.
|
| public void | write(final Connection<L> connection, final Object dstAddress, final Object message, final CompletionHandler<E> completionHandler, final PushBackHandler pushBackHandler)
Implements org.
Deprecated
|
| filtersStateFactory | back to summary |
|---|---|
| private final DefaultFilterChain. | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| DefaultFilterChain | back to summary |
|---|---|
| public DefaultFilterChain() | |
| DefaultFilterChain | back to summary |
|---|---|
| public DefaultFilterChain(Collection<Filter> initialFilters) | |
| checkStoredMessage | back to summary |
|---|---|
| private void checkStoredMessage(final FilterChainContext ctx, final DefaultFilterChain. Checks if
| |
| execute | back to summary |
|---|---|
| public ProcessorResult execute(FilterChainContext ctx) Implements org. Execute this FilterChain.
| |
| executeChainPart | back to summary |
|---|---|
| protected DefaultFilterChain. Sequentially lets each
| |
| executeFilter | back to summary |
|---|---|
| protected NextAction executeFilter(final FilterExecutor executor, final Filter currentFilter, final FilterChainContext ctx) throws IOException Execute the
| |
| fail | back to summary |
|---|---|
| public void fail(FilterChainContext context, Throwable failure) Implements org.
| |
| fireEventDownstream | back to summary |
|---|---|
| public void fireEventDownstream(final Connection<L> connection, final FilterChainEvent event, final CompletionHandler<FilterChainContext> completionHandler) Implements org.
| |
| fireEventUpstream | back to summary |
|---|---|
| public void fireEventUpstream(final Connection<L> connection, final FilterChainEvent event, final CompletionHandler<FilterChainContext> completionHandler) Implements org.
| |
| flush | back to summary |
|---|---|
| public void flush(final Connection<L> connection, final CompletionHandler<WriteResult<K, L>> completionHandler) Implements org.
| |
| notifyComplete | back to summary |
|---|---|
| private void notifyComplete(final FilterChainContext context) | |
| notifyFailure | back to summary |
|---|---|
| private void notifyFailure(final FilterChainContext context, final Throwable e) | |
| obtainFiltersState | back to summary |
|---|---|
private DefaultFilterChain.
| |
| prepareRemainder | back to summary |
|---|---|
| private static boolean prepareRemainder(final FilterChainContext ctx, final DefaultFilterChain. Locates a message remainder in the | |
| process | back to summary |
|---|---|
| public ProcessorResult process(final Context context) Implements org. Doc from org. Method will be called by framework to process some event, which occurred on a connection
| |
| read | back to summary |
|---|---|
| public void read(final Connection<L> connection, final CompletionHandler<ReadResult<K, L>> completionHandler) Implements org.
| |
| read | back to summary |
|---|---|
| public ReadResult Implements org.
| |
| storeMessage | back to summary |
|---|---|
| private <M> void storeMessage(final FilterChainContext ctx, final DefaultFilterChain. Stores the Filter associated remainder. This remainder will be reused next time the same filter will be invoked on this Connection. | |
| subList | back to summary |
|---|---|
| public DefaultFilterChain subList(int fromIndex, int toIndex) Implements java. Doc from java. Returns a view of the portion of this list between the specified
This method eliminates the need for explicit range operations (of the sort that commonly exist for arrays). Any operation that expects a list can be used as a range operation by passing a subList view instead of a whole list. For example, the following idiom removes a range of elements from a list:
Similar idioms may be constructed for indexOf and
lastIndexOf, and all of the algorithms in the
Collections class can be applied to a subList.The semantics of the list returned by this method become undefined if the backing list (i.e., this list) is structurally modified in any way other than via the returned list. (Structural modifications are those that change the size of this list, or otherwise perturb it in such a fashion that iterations in progress may yield incorrect results.)
| |
| throwChain | back to summary |
|---|---|
| private void throwChain(final FilterChainContext ctx, final FilterExecutor executor, final Throwable exception) Notify the filters about error.
| |
| write | back to summary |
|---|---|
| public void write(final Connection<L> connection, final Object dstAddress, final Object message, final CompletionHandler<WriteResult<K, L>> completionHandler) Implements org.
| |
| write | back to summary |
|---|---|
| public void write(final Connection<L> connection, final Object dstAddress, final Object message, final CompletionHandler<WriteResult<K, L>> completionHandler, final MessageCloner<E> messageCloner) Implements org.
| |
| write | back to summary |
|---|---|
| public void write(final Connection<L> connection, final Object dstAddress, final Object message, final CompletionHandler<E> completionHandler, final PushBackHandler pushBackHandler) Implements org. Deprecated
| |
| Modifier and Type | Field and Description |
|---|---|
| private final FilterChainContext | |
| private static final DefaultFilterChain. | |
| private static final int | |
| private static final int | |
| private static final DefaultFilterChain. | |
| private static final int | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static DefaultFilterChain. | |
| public static DefaultFilterChain. | |
| public static DefaultFilterChain. | |
| public FilterChainContext | |
| public int |
| context | back to summary |
|---|---|
| private final FilterChainContext context | |
| CONTINUE | back to summary |
|---|---|
| private static final DefaultFilterChain. | |
| CONTINUE_TYPE | back to summary |
|---|---|
| private static final int CONTINUE_TYPE | |
| REEXECUTE_TYPE | back to summary |
|---|---|
| private static final int REEXECUTE_TYPE | |
| TERMINATE | back to summary |
|---|---|
| private static final DefaultFilterChain. | |
| TERMINATE_TYPE | back to summary |
|---|---|
| private static final int TERMINATE_TYPE | |
| type | back to summary |
|---|---|
| private final int type | |
| FilterExecution | back to summary |
|---|---|
| public FilterExecution(final int type, final FilterChainContext context) | |
| createContinue | back to summary |
|---|---|
| public static DefaultFilterChain. | |
| createReExecute | back to summary |
|---|---|
| public static DefaultFilterChain. | |
| createTerminate | back to summary |
|---|---|
| public static DefaultFilterChain. | |
| getContext | back to summary |
|---|---|
| public FilterChainContext getContext() | |
| getType | back to summary |
|---|---|
| public int getType() | |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private final DefaultFilterChain. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private Object | append(final FilterChainContext.
|
| public DefaultFilterChain. | |
| public int | |
| public <M> void | set(final FilterChainContext.
|
| OPERATIONS_NUM | back to summary |
|---|---|
| private static final int OPERATIONS_NUM | |
| state | back to summary |
|---|---|
| private final DefaultFilterChain. | |
| FiltersState | back to summary |
|---|---|
| public FiltersState(int filtersNum) | |
| append | back to summary |
|---|---|
| private Object append(final FilterChainContext. | |
| get | back to summary |
|---|---|
| public DefaultFilterChain. | |
| peekUnparsedIdx | back to summary |
|---|---|
| public int peekUnparsedIdx(final FilterChainContext. | |
| set | back to summary |
|---|---|
| public <M> void set(final FilterChainContext. | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public DefaultFilterChain. |
| FiltersStateFactory | back to summary |
|---|---|
| private FiltersStateFactory() | |
| get | back to summary |
|---|---|
| public DefaultFilterChain. Implements java. Doc from java. Gets a result.
| |
| Modifier and Type | Field and Description |
|---|---|
| private Appender | |
| private boolean | |
| private boolean | |
| private Object |
| Access | Constructor and Description |
|---|---|
| private | |
| private <E> |
| Modifier and Type | Method and Description |
|---|---|
| private Object | |
| pack-priv static DefaultFilterChain. | |
| pack-priv static DefaultFilterChain. | |
| pack-priv static <E> DefaultFilterChain. | |
| private <E> void |
| appender | back to summary |
|---|---|
| private Appender<E> appender | |
| isIncomplete | back to summary |
|---|---|
| private boolean isIncomplete | |
| isValid | back to summary |
|---|---|
| private boolean isValid | |
| state | back to summary |
|---|---|
| private Object state | |
| FilterStateElement | back to summary |
|---|---|
| private FilterStateElement(final boolean isIncomplete, Appendable<T> state) | |
| FilterStateElement | back to summary |
|---|---|
| private <E> FilterStateElement(final boolean isIncomplete, E state, Appender<E> appender) | |
| append | back to summary |
|---|---|
private Object append(final Object currentMessage)
| |
| create | back to summary |
|---|---|
| pack-priv static DefaultFilterChain. | |
| create | back to summary |
|---|---|
| pack-priv static DefaultFilterChain. | |
| create | back to summary |
|---|---|
| pack-priv static <E> DefaultFilterChain. | |
| set | back to summary |
|---|---|
| private <E> void set(final boolean isIncomplete, final E state, final Appender<E> appender) | |