|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TransportMapping
A TransportMapping implements a transport mapping as described by section 2.5 of the BEEP specification (RFC 3080). The interface is meant to be generally applicable. But it could be that it needs some rework for other transport mappings as those specified by RFC 3081.
General responsibilities of implementors are:
Method Summary | |
---|---|
void |
checkFrame(int channel,
long seqno,
int size)
Checks that an incoming frame is valid. |
void |
closeTransport()
Instructs the mapping to close the underlying Transport object. |
void |
frameReceived(int channel,
long seqno,
int size)
Invoked by the framework to notify the mapping that the parsing of the message has completed. |
void |
processMappingFrame(java.lang.String[] token)
Process a mapping frame. |
void |
sendANS(int channel,
int messageNumber,
int answerNumber,
Message message)
Sends a message of type ANS. |
void |
sendERR(int channel,
int messageNumber,
Message message)
Sends a message of type ERR. |
void |
sendMSG(int channel,
int messageNumber,
Message message)
Sends a message of type MSG. |
void |
sendNUL(int channel,
int messageNumber)
Sends a message of type NUL. |
void |
sendRPY(int channel,
int messageNumber,
Message message)
Sends a message of type RPY. |
Methods inherited from interface net.sf.beep4j.internal.SessionListener |
---|
channelClosed, channelStarted |
Method Detail |
---|
void processMappingFrame(java.lang.String[] token)
token
- the header tokens (i.e. header is split on spaces)void checkFrame(int channel, long seqno, int size)
channel
- the channel number of the messageseqno
- the sequence number of the messagesize
- the payload size of the messagevoid frameReceived(int channel, long seqno, int size)
channel
- the channel number of the messageseqno
- the sequence number of the messagesize
- the size of the messagevoid sendMSG(int channel, int messageNumber, Message message)
channel
- the channel numbermessageNumber
- the message numbermessage
- the messagevoid sendRPY(int channel, int messageNumber, Message message)
channel
- the channel numbermessageNumber
- the message numbermessage
- the messagevoid sendERR(int channel, int messageNumber, Message message)
channel
- the channel numbermessageNumber
- the message numbermessage
- the messagevoid sendANS(int channel, int messageNumber, int answerNumber, Message message)
channel
- the channel numbermessageNumber
- the message numbermessage
- the messagevoid sendNUL(int channel, int messageNumber)
channel
- the channel numbermessageNumber
- the message numbermessage
- the messagevoid closeTransport()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |