|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interface specifies all the methods a CommunicationsMulticast object must support allowing the details of the specific protocol used to be abstracted away.
CommunicationsObject| Method Summary | |
java.lang.String |
addProtocol(java.lang.String data,
java.lang.String url,
java.lang.String type)
This abstract method adds the protocol to a request to be sent |
java.lang.String |
getProtocol()
Abstract method to get the communications protocol being used |
void |
handleIncomingRequest(java.net.DatagramPacket packet)
This abstract method handles incoming datagram packet |
void |
quit()
Abstract method to call when stopping a CommunicationsServer object |
void |
sendMessage(java.lang.String message)
This abstract method sends a message |
void |
start()
Abstract method to call when starting a CommunicationsServer object |
RequestData |
stripProtocol(java.net.DatagramPacket packet)
This abstract method strips the protocol away from the received request |
| Method Detail |
public void start()
public void quit()
public java.lang.String getProtocol()
public RequestData stripProtocol(java.net.DatagramPacket packet)
throws ProtocolException
packet - The datagram packet the message is being received in
ProtocolException - thrown if protocol can't be stripped away#addProtocol(String)
public java.lang.String addProtocol(java.lang.String data,
java.lang.String url,
java.lang.String type)
throws ProtocolException
data - The request to add the protocol to
ProtocolException - thrown if protocol can't be addedstripProtocol(DatagramPacket)public void handleIncomingRequest(java.net.DatagramPacket packet)
packet - The datagram packet containing the messagepublic void sendMessage(java.lang.String message)
message - The message to send
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||