|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.dream.channel.SocketStateImpl
Basic implementation of SocketState
.
Field Summary | |
protected Object |
input
|
protected Object |
output
|
protected Socket |
socket
|
Constructor Summary | |
SocketStateImpl()
|
Method Summary | |
void |
close()
Closes the connection. |
Object |
getInput()
|
Object |
getOutput()
|
boolean |
isClosed()
Returns true if the socket is closed or is deconnected. |
void |
recycle()
WARNING : The socket state must be previously closed. |
void |
setInput(Object input)
|
void |
setOutput(Object output)
|
void |
setSocket(Socket socket)
Sets the socket to be used as input and output. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Socket socket
protected Object input
protected Object output
Constructor Detail |
public SocketStateImpl()
Method Detail |
public void setSocket(Socket socket)
SocketState
setSocket
in interface SocketState
socket
- a socket.SocketState.setSocket(Socket)
public Object getInput() throws IOException
getInput
in interface CodecInputOutput
IOException
CodecInputOutput.getInput()
public void setInput(Object input)
setInput
in interface CodecInputOutput
CodecInputOutput.setInput(Object)
public Object getOutput() throws IOException
getOutput
in interface CodecInputOutput
IOException
CodecInputOutput.getOutput()
public void setOutput(Object output)
setOutput
in interface CodecInputOutput
CodecInputOutput.setOutput(Object)
public boolean isClosed()
SocketState
true
if the socket is closed or is deconnected.
isClosed
in interface SocketState
true
if the socket is closed or is deconnected.SocketState.isClosed()
public void close()
SocketState
close
in interface SocketState
SocketState.close()
public void recycle()
recycle
in interface Recyclable
Recyclable.recycle()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |