|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.dream.channel.ConnectionState
Class returned by
DestinationSocketManager.getConnection(java.net.InetAddress, int)
.
It contains a socket, and can be used to retreive associated
ObjectOutput
and ObjectInput
.
Field Summary | |
protected ObjectInputStream |
input
|
protected ObjectOutputStream |
output
|
protected Socket |
socket
|
Constructor Summary | |
ConnectionState(Socket socket)
Creates a new connection state for the specified socket. |
Method Summary | |
void |
close()
Closes the connection. |
ObjectInput |
getInput()
Returns an ObjectInput that can be used to read data from the
socket. |
ObjectOutput |
getOutput()
Returns an ObjectOutput that can be used to write data to the socket. |
boolean |
isClosed()
Returns true if the socket is closed or is deconnected. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Socket socket
protected ObjectInputStream input
protected ObjectOutputStream output
Constructor Detail |
public ConnectionState(Socket socket)
socket
- a socket.Method Detail |
public boolean isClosed()
true
if the socket is closed or is deconnected.
true
if the socket is closed or is deconnected.public ObjectInput getInput() throws IOException
ObjectInput
that can be used to read data from the
socket.
ObjectInput
connected to the socket.
IOException
- if the ObjectInput
can't be created.public ObjectOutput getOutput() throws IOException
ObjectOutput
that can be used to write data to the socket.
ObjectOutput
connected to the socket.
IOException
- if the ObjectOutput
can't be created.public void close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |