org.apache.http.impl.nio.reactor
Class IOSessionImpl
java.lang.Object
org.apache.http.impl.nio.reactor.IOSessionImpl
- All Implemented Interfaces:
- IOSession
public class IOSessionImpl
- extends java.lang.Object
- implements IOSession
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
IOSessionImpl
public IOSessionImpl(java.nio.channels.SelectionKey key,
SessionClosedCallback callback)
channel
public java.nio.channels.ByteChannel channel()
- Specified by:
channel in interface IOSession
getLocalAddress
public java.net.SocketAddress getLocalAddress()
- Specified by:
getLocalAddress in interface IOSession
getRemoteAddress
public java.net.SocketAddress getRemoteAddress()
- Specified by:
getRemoteAddress in interface IOSession
getEventMask
public int getEventMask()
- Specified by:
getEventMask in interface IOSession
setEventMask
public void setEventMask(int ops)
- Specified by:
setEventMask in interface IOSession
setEvent
public void setEvent(int op)
- Specified by:
setEvent in interface IOSession
clearEvent
public void clearEvent(int op)
- Specified by:
clearEvent in interface IOSession
getSocketTimeout
public int getSocketTimeout()
- Specified by:
getSocketTimeout in interface IOSession
setSocketTimeout
public void setSocketTimeout(int timeout)
- Specified by:
setSocketTimeout in interface IOSession
close
public void close()
- Specified by:
close in interface IOSession
getStatus
public int getStatus()
- Specified by:
getStatus in interface IOSession
isClosed
public boolean isClosed()
- Specified by:
isClosed in interface IOSession
shutdown
public void shutdown()
- Specified by:
shutdown in interface IOSession
hasBufferedInput
public boolean hasBufferedInput()
- Specified by:
hasBufferedInput in interface IOSession
hasBufferedOutput
public boolean hasBufferedOutput()
- Specified by:
hasBufferedOutput in interface IOSession
setBufferStatus
public void setBufferStatus(SessionBufferStatus bufferStatus)
- Specified by:
setBufferStatus in interface IOSession
getAttribute
public java.lang.Object getAttribute(java.lang.String name)
- Specified by:
getAttribute in interface IOSession
removeAttribute
public java.lang.Object removeAttribute(java.lang.String name)
- Specified by:
removeAttribute in interface IOSession
setAttribute
public void setAttribute(java.lang.String name,
java.lang.Object obj)
- Specified by:
setAttribute in interface IOSession
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.