Interface IConnection
-
public interface IConnectionInterface for all connection objects.- Version:
- $Revision$, $Date$
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddisconnect()Close the connectionbyte[]getResponse()Returns the response in byte array formatintsendRequest(java.lang.String req)Send request to the server using this connectionvoidsetSoTimeout(int timeout)SetTimeout
-
-
-
Method Detail
-
sendRequest
int sendRequest(java.lang.String req) throws java.io.IOExceptionSend request to the server using this connection- Throws:
java.io.IOException
-
getResponse
byte[] getResponse()
Returns the response in byte array format
-
disconnect
void disconnect()
Close the connection
-
setSoTimeout
void setSoTimeout(int timeout) throws java.net.SocketExceptionSetTimeout- Throws:
java.net.SocketException
-
-