public class LoggingIOSession extends Object implements org.apache.http.nio.reactor.IOSession
| Constructor and Description |
|---|
LoggingIOSession(org.apache.commons.logging.Log sessionLog,
org.apache.commons.logging.Log wireLog,
org.apache.http.nio.reactor.IOSession session,
String id)
Create a new instance of the decorator.
|
| Modifier and Type | Method and Description |
|---|---|
ByteChannel |
channel() |
void |
clearEvent(int op) |
void |
close() |
Object |
getAttribute(String name) |
int |
getEventMask() |
SocketAddress |
getLocalAddress() |
SocketAddress |
getRemoteAddress() |
int |
getSocketTimeout() |
int |
getStatus() |
boolean |
hasBufferedInput() |
boolean |
hasBufferedOutput() |
boolean |
isClosed() |
Object |
removeAttribute(String name) |
void |
setAttribute(String name,
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() |
public LoggingIOSession(org.apache.commons.logging.Log sessionLog,
org.apache.commons.logging.Log wireLog,
org.apache.http.nio.reactor.IOSession session,
String id)
sessionLog - Log instance used to log IOSession events.wireLog - Log instance used to log wire-level HTTP messages.session - IOSession to be decorated.id - An identifier (name) that will be attached to the IOSession for the logging
purposes.public int getStatus()
getStatus in interface org.apache.http.nio.reactor.IOSessionpublic ByteChannel channel()
channel in interface org.apache.http.nio.reactor.IOSessionpublic SocketAddress getLocalAddress()
getLocalAddress in interface org.apache.http.nio.reactor.IOSessionpublic SocketAddress getRemoteAddress()
getRemoteAddress in interface org.apache.http.nio.reactor.IOSessionpublic int getEventMask()
getEventMask in interface org.apache.http.nio.reactor.IOSessionpublic void setEventMask(int ops)
setEventMask in interface org.apache.http.nio.reactor.IOSessionpublic void setEvent(int op)
setEvent in interface org.apache.http.nio.reactor.IOSessionpublic void clearEvent(int op)
clearEvent in interface org.apache.http.nio.reactor.IOSessionpublic void close()
close in interface org.apache.http.nio.reactor.IOSessionpublic boolean isClosed()
isClosed in interface org.apache.http.nio.reactor.IOSessionpublic void shutdown()
shutdown in interface org.apache.http.nio.reactor.IOSessionpublic int getSocketTimeout()
getSocketTimeout in interface org.apache.http.nio.reactor.IOSessionpublic void setSocketTimeout(int timeout)
setSocketTimeout in interface org.apache.http.nio.reactor.IOSessionpublic void setBufferStatus(org.apache.http.nio.reactor.SessionBufferStatus status)
setBufferStatus in interface org.apache.http.nio.reactor.IOSessionpublic boolean hasBufferedInput()
hasBufferedInput in interface org.apache.http.nio.reactor.IOSessionpublic boolean hasBufferedOutput()
hasBufferedOutput in interface org.apache.http.nio.reactor.IOSessionpublic Object getAttribute(String name)
getAttribute in interface org.apache.http.nio.reactor.IOSessionpublic void setAttribute(String name, Object obj)
setAttribute in interface org.apache.http.nio.reactor.IOSessionCopyright © 2005-2017 Apache Software Foundation. All Rights Reserved.