Uses of Interface
org.apache.mina.filter.codec.ProtocolDecoderOutput
-
Packages that use ProtocolDecoderOutput Package Description org.apache.mina.filter.codec Filter implementations that helps you to implement complex protocols via 'codec' concept.org.apache.mina.filter.codec.demux Protocol codecs that helps you to implement even more complex protocols by splitting a codec into multiple sub-codecs.org.apache.mina.filter.codec.prefixedstring org.apache.mina.filter.codec.serialization Protocol codecs which uses Java object serilization and leads to rapid protocol implementation.org.apache.mina.filter.codec.statemachine org.apache.mina.filter.codec.textline A protocol codec for text-based protocols. -
-
Uses of ProtocolDecoderOutput in org.apache.mina.filter.codec
Classes in org.apache.mina.filter.codec that implement ProtocolDecoderOutput Modifier and Type Class Description class
AbstractProtocolDecoderOutput
AProtocolDecoderOutput
based on queue.Methods in org.apache.mina.filter.codec that return ProtocolDecoderOutput Modifier and Type Method Description ProtocolDecoderOutput
ProtocolCodecSession. getDecoderOutput()
Methods in org.apache.mina.filter.codec with parameters of type ProtocolDecoderOutput Modifier and Type Method Description void
CumulativeProtocolDecoder. decode(IoSession session, IoBuffer in, ProtocolDecoderOutput out)
Cumulates content of in into internal buffer and forwards decoding request to doDecode(IoSession, IoBuffer, ProtocolDecoderOutput).void
ProtocolDecoder. decode(IoSession session, IoBuffer in, ProtocolDecoderOutput out)
Decodes binary or protocol-specific content into higher-level message objects.void
SynchronizedProtocolDecoder. decode(IoSession session, IoBuffer in, ProtocolDecoderOutput out)
Decodes binary or protocol-specific content into higher-level message objects.protected abstract boolean
CumulativeProtocolDecoder. doDecode(IoSession session, IoBuffer in, ProtocolDecoderOutput out)
Implement this method to consume the specified cumulative buffer and decode its content into message(s).void
ProtocolDecoder. finishDecode(IoSession session, ProtocolDecoderOutput out)
Invoked when the specified session is closed.void
ProtocolDecoderAdapter. finishDecode(IoSession session, ProtocolDecoderOutput out)
Override this method to deal with the closed connection.void
SynchronizedProtocolDecoder. finishDecode(IoSession session, ProtocolDecoderOutput out)
Invoked when the specified session is closed. -
Uses of ProtocolDecoderOutput in org.apache.mina.filter.codec.demux
Methods in org.apache.mina.filter.codec.demux with parameters of type ProtocolDecoderOutput Modifier and Type Method Description MessageDecoderResult
MessageDecoder. decode(IoSession session, IoBuffer in, ProtocolDecoderOutput out)
Decodes binary or protocol-specific content into higher-level message objects.protected boolean
DemuxingProtocolDecoder. doDecode(IoSession session, IoBuffer in, ProtocolDecoderOutput out)
Implement this method to consume the specified cumulative buffer and decode its content into message(s).void
DemuxingProtocolDecoder. finishDecode(IoSession session, ProtocolDecoderOutput out)
Override this method to deal with the closed connection.void
MessageDecoder. finishDecode(IoSession session, ProtocolDecoderOutput out)
Invoked when the specified session is closed while this decoder was parsing the data.void
MessageDecoderAdapter. finishDecode(IoSession session, ProtocolDecoderOutput out)
Override this method to deal with the closed connection. -
Uses of ProtocolDecoderOutput in org.apache.mina.filter.codec.prefixedstring
Methods in org.apache.mina.filter.codec.prefixedstring with parameters of type ProtocolDecoderOutput Modifier and Type Method Description protected boolean
PrefixedStringDecoder. doDecode(IoSession session, IoBuffer in, ProtocolDecoderOutput out)
Implement this method to consume the specified cumulative buffer and decode its content into message(s). -
Uses of ProtocolDecoderOutput in org.apache.mina.filter.codec.serialization
Methods in org.apache.mina.filter.codec.serialization with parameters of type ProtocolDecoderOutput Modifier and Type Method Description protected boolean
ObjectSerializationDecoder. doDecode(IoSession session, IoBuffer in, ProtocolDecoderOutput out)
Implement this method to consume the specified cumulative buffer and decode its content into message(s). -
Uses of ProtocolDecoderOutput in org.apache.mina.filter.codec.statemachine
Methods in org.apache.mina.filter.codec.statemachine with parameters of type ProtocolDecoderOutput Modifier and Type Method Description DecodingState
ConsumeToCrLfDecodingState. decode(IoBuffer in, ProtocolDecoderOutput out)
Invoked when data is available for this state.DecodingState
ConsumeToDynamicTerminatorDecodingState. decode(IoBuffer in, ProtocolDecoderOutput out)
Invoked when data is available for this state.DecodingState
ConsumeToEndOfSessionDecodingState. decode(IoBuffer in, ProtocolDecoderOutput out)
Invoked when data is available for this state.DecodingState
ConsumeToTerminatorDecodingState. decode(IoBuffer in, ProtocolDecoderOutput out)
Invoked when data is available for this state.DecodingState
CrLfDecodingState. decode(IoBuffer in, ProtocolDecoderOutput out)
Invoked when data is available for this state.DecodingState
DecodingState. decode(IoBuffer in, ProtocolDecoderOutput out)
Invoked when data is available for this state.DecodingState
DecodingStateMachine. decode(IoBuffer in, ProtocolDecoderOutput out)
Invoked when data is available for this state.void
DecodingStateProtocolDecoder. decode(IoSession session, IoBuffer in, ProtocolDecoderOutput out)
Decodes binary or protocol-specific content into higher-level message objects.DecodingState
FixedLengthDecodingState. decode(IoBuffer in, ProtocolDecoderOutput out)
Invoked when data is available for this state.DecodingState
IntegerDecodingState. decode(IoBuffer in, ProtocolDecoderOutput out)
Invoked when data is available for this state.DecodingState
ShortIntegerDecodingState. decode(IoBuffer in, ProtocolDecoderOutput out)
Invoked when data is available for this state.DecodingState
SingleByteDecodingState. decode(IoBuffer in, ProtocolDecoderOutput out)
Invoked when data is available for this state.DecodingState
SkippingState. decode(IoBuffer in, ProtocolDecoderOutput out)
Invoked when data is available for this state.protected abstract DecodingState
ConsumeToCrLfDecodingState. finishDecode(IoBuffer product, ProtocolDecoderOutput out)
Invoked when this state has reached aCRLF
.DecodingState
ConsumeToCrLfDecodingState. finishDecode(ProtocolDecoderOutput out)
Invoked when the associatedIoSession
is closed.protected abstract DecodingState
ConsumeToDynamicTerminatorDecodingState. finishDecode(IoBuffer product, ProtocolDecoderOutput out)
Invoked when this state has reached the terminator byte.DecodingState
ConsumeToDynamicTerminatorDecodingState. finishDecode(ProtocolDecoderOutput out)
Invoked when the associatedIoSession
is closed.protected abstract DecodingState
ConsumeToEndOfSessionDecodingState. finishDecode(IoBuffer product, ProtocolDecoderOutput out)
Invoked when this state has consumed all bytes until the session is closed.DecodingState
ConsumeToEndOfSessionDecodingState. finishDecode(ProtocolDecoderOutput out)
Invoked when the associatedIoSession
is closed.protected abstract DecodingState
ConsumeToTerminatorDecodingState. finishDecode(IoBuffer product, ProtocolDecoderOutput out)
Invoked when this state has reached the terminator byte.DecodingState
ConsumeToTerminatorDecodingState. finishDecode(ProtocolDecoderOutput out)
Invoked when the associatedIoSession
is closed.protected abstract DecodingState
CrLfDecodingState. finishDecode(boolean foundCRLF, ProtocolDecoderOutput out)
Invoked when this state has found aCRLF
.DecodingState
CrLfDecodingState. finishDecode(ProtocolDecoderOutput out)
Invoked when the associatedIoSession
is closed.DecodingState
DecodingState. finishDecode(ProtocolDecoderOutput out)
Invoked when the associatedIoSession
is closed.protected abstract DecodingState
DecodingStateMachine. finishDecode(List<Object> childProducts, ProtocolDecoderOutput out)
Called once the state machine has reached its end.DecodingState
DecodingStateMachine. finishDecode(ProtocolDecoderOutput out)
Invoked when the associatedIoSession
is closed.void
DecodingStateProtocolDecoder. finishDecode(IoSession session, ProtocolDecoderOutput out)
Invoked when the specified session is closed.protected abstract DecodingState
FixedLengthDecodingState. finishDecode(IoBuffer product, ProtocolDecoderOutput out)
Invoked when this state has consumed the configured number of bytes.DecodingState
FixedLengthDecodingState. finishDecode(ProtocolDecoderOutput out)
Invoked when the associatedIoSession
is closed.protected abstract DecodingState
IntegerDecodingState. finishDecode(int value, ProtocolDecoderOutput out)
Invoked when this state has consumed a completeint
.DecodingState
IntegerDecodingState. finishDecode(ProtocolDecoderOutput out)
Invoked when the associatedIoSession
is closed.protected abstract DecodingState
ShortIntegerDecodingState. finishDecode(short value, ProtocolDecoderOutput out)
Invoked when this state has consumed a completeshort
.DecodingState
ShortIntegerDecodingState. finishDecode(ProtocolDecoderOutput out)
Invoked when the associatedIoSession
is closed.protected abstract DecodingState
SingleByteDecodingState. finishDecode(byte b, ProtocolDecoderOutput out)
Invoked when this state has consumed a completebyte
.DecodingState
SingleByteDecodingState. finishDecode(ProtocolDecoderOutput out)
Invoked when the associatedIoSession
is closed.DecodingState
SkippingState. finishDecode(ProtocolDecoderOutput out)
Invoked when the associatedIoSession
is closed. -
Uses of ProtocolDecoderOutput in org.apache.mina.filter.codec.textline
Methods in org.apache.mina.filter.codec.textline with parameters of type ProtocolDecoderOutput Modifier and Type Method Description void
TextLineDecoder. decode(IoSession session, IoBuffer in, ProtocolDecoderOutput out)
Decodes binary or protocol-specific content into higher-level message objects.void
TextLineDecoder. finishDecode(IoSession session, ProtocolDecoderOutput out)
Invoked when the specified session is closed.protected void
TextLineDecoder. writeText(IoSession session, String text, ProtocolDecoderOutput out)
By default, this method propagates the decoded line of text toProtocolDecoderOutput#write(Object)
.
-