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.IOSession
public ByteChannel channel()
channel
in interface org.apache.http.nio.reactor.IOSession
public SocketAddress getLocalAddress()
getLocalAddress
in interface org.apache.http.nio.reactor.IOSession
public SocketAddress getRemoteAddress()
getRemoteAddress
in interface org.apache.http.nio.reactor.IOSession
public int getEventMask()
getEventMask
in interface org.apache.http.nio.reactor.IOSession
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 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 Object getAttribute(String name)
getAttribute
in interface org.apache.http.nio.reactor.IOSession
public void setAttribute(String name, Object obj)
setAttribute
in interface org.apache.http.nio.reactor.IOSession
Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.