public class SocketManager
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
SocketManager()
Default constructor
|
SocketManager(java.net.Socket soc)
Constructs this SocketManager with the specified socket.
|
Modifier and Type | Method and Description |
---|---|
int |
getBufferSize()
Returns the buffer size.
|
java.lang.String |
getMatchingIdentifier()
Gets the socket's identifier (if any).
|
java.net.Socket |
getSoc()
Gets the socket associated with this SocketManager.
|
java.lang.String |
receiveData()
Reads the socket for a response and writes to String.
|
void |
sendData(java.lang.String xmlRequest)
Writes the xmlRequest param to the open socket.
|
void |
setBufferSize(int value)
Sets the buffer size.
|
void |
setMatchingIdentifier(java.lang.String string)
Sets an identifier to identify the socket
|
void |
setSoc(java.net.Socket value)
Sets the socket associated with this SocketManager.
|
java.lang.String |
toString() |
public SocketManager()
public SocketManager(java.net.Socket soc)
soc
- public int getBufferSize()
public void setBufferSize(int value)
value
- public java.net.Socket getSoc()
public final void setSoc(java.net.Socket value)
value
- public void sendData(java.lang.String xmlRequest) throws VistaSocketException
xmlRequest
- VistaSocketException
public java.lang.String receiveData() throws VistaSocketException, VistaSocketTimeOutException
VistaSocketException
VistaSocketTimeOutException
public java.lang.String getMatchingIdentifier()
public void setMatchingIdentifier(java.lang.String string)
string
- matching identifierpublic java.lang.String toString()
toString
in class java.lang.Object
VistALink v1.6a