class LoggingIOSession
extends java.lang.Object
implements org.apache.http.nio.reactor.IOSession
Modifier and Type | Class and Description |
---|---|
(package private) class |
LoggingIOSession.LoggingByteChannel |
Modifier and Type | Field and Description |
---|---|
private java.nio.channels.ByteChannel |
channel |
private java.lang.String |
id |
private org.apache.commons.logging.Log |
log |
private org.apache.http.nio.reactor.IOSession |
session |
private Wire |
wirelog |
Constructor and Description |
---|
LoggingIOSession(org.apache.http.nio.reactor.IOSession session,
java.lang.String id,
org.apache.commons.logging.Log log,
org.apache.commons.logging.Log wirelog) |
Modifier and Type | Method and Description |
---|---|
java.nio.channels.ByteChannel |
channel() |
void |
clearEvent(int op) |
void |
close() |
private static java.lang.String |
formatOps(int ops) |
java.lang.Object |
getAttribute(java.lang.String name) |
int |
getEventMask() |
java.net.SocketAddress |
getLocalAddress() |
java.net.SocketAddress |
getRemoteAddress() |
int |
getSocketTimeout() |
int |
getStatus() |
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(org.apache.http.nio.reactor.SessionBufferStatus status) |
void |
setEvent(int op) |
void |
setEventMask(int ops) |
void |
setSocketTimeout(int timeout) |
void |
shutdown() |
java.lang.String |
toString() |
private final org.apache.http.nio.reactor.IOSession session
private final java.nio.channels.ByteChannel channel
private final java.lang.String id
private final org.apache.commons.logging.Log log
private final Wire wirelog
public LoggingIOSession(org.apache.http.nio.reactor.IOSession session, java.lang.String id, org.apache.commons.logging.Log log, org.apache.commons.logging.Log wirelog)
public java.nio.channels.ByteChannel channel()
channel
in interface org.apache.http.nio.reactor.IOSession
public java.net.SocketAddress getLocalAddress()
getLocalAddress
in interface org.apache.http.nio.reactor.IOSession
public java.net.SocketAddress getRemoteAddress()
getRemoteAddress
in interface org.apache.http.nio.reactor.IOSession
public int getEventMask()
getEventMask
in interface org.apache.http.nio.reactor.IOSession
private static java.lang.String formatOps(int ops)
public void setEventMask(int ops)
setEventMask
in interface org.apache.http.nio.reactor.IOSession
public void setEvent(int op)
setEvent
in interface org.apache.http.nio.reactor.IOSession
public void clearEvent(int op)
clearEvent
in interface org.apache.http.nio.reactor.IOSession
public void close()
close
in interface org.apache.http.nio.reactor.IOSession
public int getStatus()
getStatus
in interface org.apache.http.nio.reactor.IOSession
public boolean isClosed()
isClosed
in interface org.apache.http.nio.reactor.IOSession
public void shutdown()
shutdown
in interface org.apache.http.nio.reactor.IOSession
public int getSocketTimeout()
getSocketTimeout
in interface org.apache.http.nio.reactor.IOSession
public void setSocketTimeout(int timeout)
setSocketTimeout
in interface org.apache.http.nio.reactor.IOSession
public void setBufferStatus(org.apache.http.nio.reactor.SessionBufferStatus status)
setBufferStatus
in interface org.apache.http.nio.reactor.IOSession
public boolean hasBufferedInput()
hasBufferedInput
in interface org.apache.http.nio.reactor.IOSession
public boolean hasBufferedOutput()
hasBufferedOutput
in interface org.apache.http.nio.reactor.IOSession
public java.lang.Object getAttribute(java.lang.String name)
getAttribute
in interface org.apache.http.nio.reactor.IOSession
public void setAttribute(java.lang.String name, java.lang.Object obj)
setAttribute
in interface org.apache.http.nio.reactor.IOSession
public java.lang.Object removeAttribute(java.lang.String name)
removeAttribute
in interface org.apache.http.nio.reactor.IOSession
public java.lang.String toString()
toString
in class java.lang.Object