public interface ProtocolCodecFactory
ProtocolEncoder
and ProtocolDecoder
which translates
binary or protocol specific data into message object and vice versa.
Please refer to
ReverserProtocolProvider
example.
Modifier and Type | Method and Description |
---|---|
ProtocolDecoder |
getDecoder(IoSession session)
Returns a new (or reusable) instance of
ProtocolDecoder which
decodes binary or protocol-specific data into message objects. |
ProtocolEncoder |
getEncoder(IoSession session)
Returns a new (or reusable) instance of
ProtocolEncoder which
encodes message objects into binary or protocol-specific data. |
ProtocolEncoder getEncoder(IoSession session) throws Exception
ProtocolEncoder
which
encodes message objects into binary or protocol-specific data.session
- The current sessionException
- If an error occurred while retrieving the encoderProtocolDecoder getDecoder(IoSession session) throws Exception
ProtocolDecoder
which
decodes binary or protocol-specific data into message objects.session
- The current sessionException
- If an error occurred while retrieving the decoderCopyright © 2004–2018 Apache MINA Project. All rights reserved.