public class HttpServerEncoder extends Object implements StatelessProtocolEncoder<HttpPdu,ByteBuffer>
| Constructor and Description |
|---|
HttpServerEncoder() |
| Modifier and Type | Method and Description |
|---|---|
Void |
createEncoderState()
Create a new session context for this decoder
|
ByteBuffer |
encode(HttpPdu 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<HttpPdu,ByteBuffer,Void>public ByteBuffer encode(HttpPdu message, Void context)
INPUT into binary or protocol-specific data of type
OUTPUT.encode in interface ProtocolEncoder<HttpPdu,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.