|
VistALink v1.6 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.va.med.net.SocketManager
public class SocketManager
Represents a socket that can be used to communicate with IP end points
Constructor Summary | |
---|---|
SocketManager()
Default constructor |
|
SocketManager(java.net.Socket soc)
Constructs this SocketManager with the specified socket. |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SocketManager()
public SocketManager(java.net.Socket soc)
soc
- Method Detail |
---|
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.6 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |