|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Transport
A generic transport interface. Implemented by SSLTransport, HTTPTransport...
Method Summary | |
---|---|
void |
connect()
------------------------------------------------------------------- |
void |
disconnect()
------------------------------------------------------------------- Connect to a destination using SSL. |
long |
getStatusCheckInterval()
------------------------------------------------------------------- |
String |
getType()
------------------------------------------------------------------- |
boolean |
isConnected()
------------------------------------------------------------------- |
boolean |
isInErrorState()
------------------------------------------------------------------- |
boolean |
isSecure()
------------------------------------------------------------------- |
byte[] |
receiveData()
------------------------------------------------------------------- You may use this in combination with transport listener but the transport guarantees no coherence as data received in this method may not be delivered to the data listener. |
byte[] |
receiveData(long waitTime)
------------------------------------------------------------------- Same as receiveData() except the function will return after waiting for a certain amount of time. |
void |
sendData(byte[] message)
------------------------------------------------------------------- Sends a chunk of data over the SSL transport. |
void |
setProperties(Properties properties)
------------------------------------------------------------------- Transport specific configuration properties. |
void |
setStatusCheckInterval(long interval)
------------------------------------------------------------------- Sets optionally the status check interval for the transport to make sure it is alive and its get its performance characteristics. |
void |
setTransportDataListener(TransportDataListener l)
------------------------------------------------------------------- Recieve a chunk of data over the SSL tranposrt. |
Method Detail |
---|
void setProperties(Properties properties)
void connect() throws TransportException
TransportException
boolean isConnected()
boolean isInErrorState()
boolean isSecure()
void setStatusCheckInterval(long interval)
long getStatusCheckInterval()
void disconnect() throws IOException
IOException
void sendData(byte[] message) throws IOException
IOException
byte[] receiveData() throws IOException
IOException
byte[] receiveData(long waitTime) throws IOException
waitTime
- 0 means the same as receiveData();
IOException
void setTransportDataListener(TransportDataListener l)
String getType()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |