public class MultiStringFilter extends BaseFilter
Modifier and Type | Class and Description |
---|---|
static class |
MultiStringFilter.DecodeResult |
Modifier and Type | Field and Description |
---|---|
protected Charset |
charset |
protected Attribute<MultiStringFilter.DecodeResult> |
decodeStateAttr |
protected byte[] |
stringTerminateBytes |
Constructor and Description |
---|
MultiStringFilter() |
MultiStringFilter(Charset charset) |
MultiStringFilter(Charset charset,
String stringTerminate) |
Modifier and Type | Method and Description |
---|---|
protected List<String> |
createInList() |
MultiStringFilter.DecodeResult |
decode(Buffer inputBuffer,
MultiStringFilter.DecodeResult decodeResult) |
Buffer |
encode(MemoryManager mm,
List<String> inputStringList) |
NextAction |
handleRead(FilterChainContext ctx)
Execute a unit of processing work to be performed, when channel will
become available for reading.
|
NextAction |
handleWrite(FilterChainContext ctx)
Execute a unit of processing work to be performed, when some data should
be written on channel.
|
protected MultiStringFilter.DecodeResult |
parseWithLengthPrefix(Buffer input,
MultiStringFilter.DecodeResult decodeResult) |
protected MultiStringFilter.DecodeResult |
parseWithTerminatingSeq(Buffer input,
MultiStringFilter.DecodeResult decodeResult) |
createContext, exceptionOccurred, handleAccept, handleClose, handleConnect, handleEvent, onAdded, onFilterChainChanged, onRemoved, toString
protected final Charset charset
protected final Attribute<MultiStringFilter.DecodeResult> decodeStateAttr
protected final byte[] stringTerminateBytes
public MultiStringFilter()
public MultiStringFilter(Charset charset)
public NextAction handleRead(FilterChainContext ctx) throws IOException
BaseFilter
Filter
may either complete the required processing and
return false, or delegate remaining processing to the next
Filter
in a FilterChain
containing this Filter
by returning true.handleRead
in interface Filter
handleRead
in class BaseFilter
ctx
- FilterChainContext
NextAction
instruction for FilterChain
, how it
should continue the executionIOException
public NextAction handleWrite(FilterChainContext ctx) throws IOException
BaseFilter
Filter
may either complete the required processing and
return false, or delegate remaining processing to the next
Filter
in a FilterChain
containing this Filter
by returning true.handleWrite
in interface Filter
handleWrite
in class BaseFilter
ctx
- FilterChainContext
NextAction
instruction for FilterChain
, how it
should continue the executionIOException
public MultiStringFilter.DecodeResult decode(Buffer inputBuffer, MultiStringFilter.DecodeResult decodeResult)
public Buffer encode(MemoryManager mm, List<String> inputStringList) throws IOException
IOException
protected MultiStringFilter.DecodeResult parseWithLengthPrefix(Buffer input, MultiStringFilter.DecodeResult decodeResult)
protected MultiStringFilter.DecodeResult parseWithTerminatingSeq(Buffer input, MultiStringFilter.DecodeResult decodeResult)
Copyright © 2021 Oracle Corporation. All rights reserved.