|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.beep4j.internal.tcp.TCPMapping
public class TCPMapping
| Constructor Summary | |
|---|---|
TCPMapping(Transport transport)
|
|
TCPMapping(Transport transport,
ChannelControllerFactory factory)
|
|
TCPMapping(Transport transport,
ChannelControllerFactory factory,
int bufferSize)
|
|
| Method Summary | |
|---|---|
void |
channelClosed(int channelNumber)
|
void |
channelStarted(int channelNumber)
|
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. |
DefaultChannelController |
createChannelController(int channelNumber,
Transport transport)
Creates a new ChannelController for the channel identified by the channelNumber. |
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[] tokens)
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 class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TCPMapping(Transport transport)
public TCPMapping(Transport transport,
ChannelControllerFactory factory)
public TCPMapping(Transport transport,
ChannelControllerFactory factory,
int bufferSize)
| Method Detail |
|---|
public void channelStarted(int channelNumber)
channelStarted in interface SessionListenerpublic void channelClosed(int channelNumber)
channelClosed in interface SessionListener
public DefaultChannelController createChannelController(int channelNumber,
Transport transport)
ChannelControllerFactory
createChannelController in interface ChannelControllerFactorychannelNumber - the channel numbertransport - the Transport implementation
public void checkFrame(int channel,
long seqno,
int size)
TransportMapping
checkFrame in interface TransportMappingchannel - the channel number of the messageseqno - the sequence number of the messagesize - the payload size of the message
public void frameReceived(int channel,
long seqno,
int size)
TransportMapping
frameReceived in interface TransportMappingchannel - the channel number of the messageseqno - the sequence number of the messagesize - the size of the messagepublic void processMappingFrame(java.lang.String[] tokens)
TransportMapping
processMappingFrame in interface TransportMappingtokens - the header tokens (i.e. header is split on spaces)
public void sendANS(int channel,
int messageNumber,
int answerNumber,
Message message)
TransportMapping
sendANS in interface TransportMappingchannel - the channel numbermessageNumber - the message numbermessage - the message
public void sendERR(int channel,
int messageNumber,
Message message)
TransportMapping
sendERR in interface TransportMappingchannel - the channel numbermessageNumber - the message numbermessage - the message
public void sendMSG(int channel,
int messageNumber,
Message message)
TransportMapping
sendMSG in interface TransportMappingchannel - the channel numbermessageNumber - the message numbermessage - the message
public void sendNUL(int channel,
int messageNumber)
TransportMapping
sendNUL in interface TransportMappingchannel - the channel numbermessageNumber - the message number
public void sendRPY(int channel,
int messageNumber,
Message message)
TransportMapping
sendRPY in interface TransportMappingchannel - the channel numbermessageNumber - the message numbermessage - the messagepublic void closeTransport()
TransportMapping
closeTransport in interface TransportMapping
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||