Package org.apache.http.impl.nio.conn
Class LoggingIOSession
java.lang.Object
org.apache.http.impl.nio.conn.LoggingIOSession
- All Implemented Interfaces:
org.apache.http.nio.reactor.IOSession
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ByteChannel
private final String
private final org.apache.commons.logging.Log
private final org.apache.http.nio.reactor.IOSession
private final Wire
Fields inherited from interface org.apache.http.nio.reactor.IOSession
ACTIVE, ATTACHMENT_KEY, CLOSED, CLOSING
-
Constructor Summary
ConstructorsConstructorDescriptionLoggingIOSession
(org.apache.http.nio.reactor.IOSession session, String id, org.apache.commons.logging.Log log, org.apache.commons.logging.Log wirelog) -
Method Summary
Modifier and TypeMethodDescriptionchannel()
void
clearEvent
(int op) void
close()
private static String
formatOps
(int ops) getAttribute
(String name) int
int
int
boolean
boolean
boolean
isClosed()
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()
toString()
-
Field Details
-
session
private final org.apache.http.nio.reactor.IOSession session -
channel
-
id
-
log
private final org.apache.commons.logging.Log log -
wirelog
-
-
Constructor Details
-
LoggingIOSession
public LoggingIOSession(org.apache.http.nio.reactor.IOSession session, String id, org.apache.commons.logging.Log log, org.apache.commons.logging.Log wirelog)
-
-
Method Details
-
channel
- Specified by:
channel
in interfaceorg.apache.http.nio.reactor.IOSession
-
getLocalAddress
- Specified by:
getLocalAddress
in interfaceorg.apache.http.nio.reactor.IOSession
-
getRemoteAddress
- Specified by:
getRemoteAddress
in interfaceorg.apache.http.nio.reactor.IOSession
-
getEventMask
public int getEventMask()- Specified by:
getEventMask
in interfaceorg.apache.http.nio.reactor.IOSession
-
formatOps
-
setEventMask
public void setEventMask(int ops) - Specified by:
setEventMask
in interfaceorg.apache.http.nio.reactor.IOSession
-
setEvent
public void setEvent(int op) - Specified by:
setEvent
in interfaceorg.apache.http.nio.reactor.IOSession
-
clearEvent
public void clearEvent(int op) - Specified by:
clearEvent
in interfaceorg.apache.http.nio.reactor.IOSession
-
close
public void close()- Specified by:
close
in interfaceorg.apache.http.nio.reactor.IOSession
-
getStatus
public int getStatus()- Specified by:
getStatus
in interfaceorg.apache.http.nio.reactor.IOSession
-
isClosed
public boolean isClosed()- Specified by:
isClosed
in interfaceorg.apache.http.nio.reactor.IOSession
-
shutdown
public void shutdown()- Specified by:
shutdown
in interfaceorg.apache.http.nio.reactor.IOSession
-
getSocketTimeout
public int getSocketTimeout()- Specified by:
getSocketTimeout
in interfaceorg.apache.http.nio.reactor.IOSession
-
setSocketTimeout
public void setSocketTimeout(int timeout) - Specified by:
setSocketTimeout
in interfaceorg.apache.http.nio.reactor.IOSession
-
setBufferStatus
public void setBufferStatus(org.apache.http.nio.reactor.SessionBufferStatus status) - Specified by:
setBufferStatus
in interfaceorg.apache.http.nio.reactor.IOSession
-
hasBufferedInput
public boolean hasBufferedInput()- Specified by:
hasBufferedInput
in interfaceorg.apache.http.nio.reactor.IOSession
-
hasBufferedOutput
public boolean hasBufferedOutput()- Specified by:
hasBufferedOutput
in interfaceorg.apache.http.nio.reactor.IOSession
-
getAttribute
- Specified by:
getAttribute
in interfaceorg.apache.http.nio.reactor.IOSession
-
setAttribute
- Specified by:
setAttribute
in interfaceorg.apache.http.nio.reactor.IOSession
-
removeAttribute
- Specified by:
removeAttribute
in interfaceorg.apache.http.nio.reactor.IOSession
-
toString
-