org.apache.http.impl.nio.reactor
Class IOSessionImpl

java.lang.Object
  extended by org.apache.http.impl.nio.reactor.IOSessionImpl
All Implemented Interfaces:
IOSession

public class IOSessionImpl
extends java.lang.Object
implements IOSession


Field Summary
 
Fields inherited from interface org.apache.http.nio.reactor.IOSession
ATTACHMENT_KEY
 
Constructor Summary
IOSessionImpl(java.nio.channels.SelectionKey key, SessionClosedCallback callback)
           
 
Method Summary
 java.nio.channels.ByteChannel channel()
           
 void clearEvent(int op)
           
 void close()
           
 java.lang.Object getAttribute(java.lang.String name)
           
 int getEventMask()
           
 java.net.SocketAddress getLocalAddress()
           
 java.net.SocketAddress getRemoteAddress()
           
 int getSocketTimeout()
           
 boolean hasBufferedInput()
           
 boolean hasBufferedOutput()
           
 boolean isClosed()
           
 java.lang.Object removeAttribute(java.lang.String name)
           
 void setAttribute(java.lang.String name, java.lang.Object obj)
           
 void setBufferStatus(SessionBufferStatus bufferStatus)
           
 void setEvent(int op)
           
 void setEventMask(int ops)
           
 void setSocketTimeout(int timeout)
           
 void shutdown()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IOSessionImpl

public IOSessionImpl(java.nio.channels.SelectionKey key,
                     SessionClosedCallback callback)
Method Detail

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

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-2009 Apache Software Foundation. All Rights Reserved.