- Type Parameters:
T- the type of message decoded by this decoder
R- the type of message that may be generated as response (see
- All Superinterfaces:
Nested Class SummaryModifier and TypeInterfaceDescription
static classThe result from decoding.
Method SummaryModifier and TypeMethodDescriptionDecodes the next chunk of data.
decoding()Returns the type of the messages decoded by this decoder.
header()Returns the last message (header) received.Sets the peer encoder.
setPeerEncoderSets the peer encoder.
Some decoders need to know the state of the encoder or the last encoded message.
encoder- the encoder
- the decoder
decodingReturns the type of the messages decoded by this decoder.
- the value
decodeDecodes the next chunk of data.
This method will never leave remaining data in the
inbuffer unless a header has been decoded completely and/or the
outbuffer is full. In either case, decoding will therefore continue when the method is invoked again with the same
inbuffer and another (or emptied)
outbuffer. It is never necessary (though possible) to add data to an existing
in- holds the data to be decoded
out- gets the body data (if any) written to it
endOfInput- true if there is no input left beyond the data currently in the in buffer (indicates end of body or no body at all)
- the result
ProtocolException- if the message violates the HTTP
headerReturns the last message (header) received.
If a header is completed during a
decode(ByteBuffer, Buffer, boolean)invocation, the result’s
trueand the header can be retrieved using this method. It remains available until
decodeis invoked for a new message (i.e. is invoked again after returning a result with
- the result