public class CoapEncoder extends Object implements StatelessProtocolEncoder<CoapMessage,ByteBuffer>
CoapMessage
into ByteBuffer
Constructor and Description |
---|
CoapEncoder() |
Modifier and Type | Method and Description |
---|---|
Void |
createEncoderState()
Create a new session context for this decoder
|
ByteBuffer |
encode(CoapMessage message,
Void context)
Encodes higher-level message objects of type
INPUT into binary or protocol-specific data of type
OUTPUT . |
public Void createEncoderState()
createEncoderState
in interface ProtocolEncoder<CoapMessage,ByteBuffer,Void>
public ByteBuffer encode(CoapMessage message, Void context)
INPUT
into binary or protocol-specific data of type
OUTPUT
.encode
in interface ProtocolEncoder<CoapMessage,ByteBuffer,Void>
message
- the message to encodecontext
- the encoding context (will be stored in the session for the next decode call)Copyright © 2009–2013 Apache MINA Project. All rights reserved.