|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IoHandler
An IoHandler implementation is responsible for decoding and encoding to/from AMF3.
Cinnamon comes with a default implementation (NetConnectionIoHandler)
that should be used when you use the default NetConnectionServiceChannel
on the client side.
| Method Summary | |
|---|---|
Envelope |
createResponseEnvelope(Envelope requestEnvelope)
Creates a new Envelope to be used for the response sent to the client |
MessageHolder |
createResponseMessage(MessageHolder requestMessage,
Object message,
boolean isError)
Creates a new response messages for the specified request message and result object. |
Envelope |
decodeAMF(AMFInput input)
Reads and returns the AMF envelope containing all AMF request messages from the specified input. |
void |
encodeAMF(AMFOutput output,
Envelope envelope)
Encodes and writes the specified envelope containing all response messages to the output. |
| Method Detail |
|---|
Envelope decodeAMF(AMFInput input)
input - the AMF input to read from
void encodeAMF(AMFOutput output,
Envelope envelope)
output - the AMF output to write toenvelope - the envelope containing all AMF response messagesEnvelope createResponseEnvelope(Envelope requestEnvelope)
requestEnvelope - the corresponding request envelope
MessageHolder createResponseMessage(MessageHolder requestMessage,
Object message,
boolean isError)
requestMessage - the request message that was processedmessage - the message to sent as a responseisError - whether the response message represents an error
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||