|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||

java.lang.Objecttoolbox.socket.SocketProtocolHandlerNewLineImpl
public class SocketProtocolHandlerNewLineImpl
A simple SocketProtocolHandler implementation to write and
read single lines to and from the underlying socket.
| Constructor Summary | |
|---|---|
SocketProtocolHandlerNewLineImpl()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
publish(java.net.Socket socket,
java.lang.String payload)
This method facilitates 1-way fire and forget client socket communication. |
java.lang.String |
request(java.net.Socket socket,
java.lang.String payload)
This method facilitates 2-way synchronous client socket communication. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SocketProtocolHandlerNewLineImpl()
| Method Detail |
|---|
public java.lang.String request(java.net.Socket socket,
java.lang.String payload)
throws SocketClientException
request in interface SocketProtocolHandlersocket - The client socket connection.payload - Sring containing the request data.
SocketClientException - when an error occurs during socket
communication.
public void publish(java.net.Socket socket,
java.lang.String payload)
throws SocketClientException
publish in interface SocketProtocolHandlersocket - The client socket connection.payload - String containing the data that must be plublished.
SocketClientException - when an error occurs during socket
communication.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||