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 ByteChannelprivate final Stringprivate final org.apache.commons.logging.Logprivate final org.apache.http.nio.reactor.IOSessionprivate final WireFields 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()voidclearEvent(int op) voidclose()private static StringformatOps(int ops) getAttribute(String name) intintintbooleanbooleanbooleanisClosed()removeAttribute(String name) voidsetAttribute(String name, Object obj) voidsetBufferStatus(org.apache.http.nio.reactor.SessionBufferStatus status) voidsetEvent(int op) voidsetEventMask(int ops) voidsetSocketTimeout(int timeout) voidshutdown()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:
channelin interfaceorg.apache.http.nio.reactor.IOSession
-
getLocalAddress
- Specified by:
getLocalAddressin interfaceorg.apache.http.nio.reactor.IOSession
-
getRemoteAddress
- Specified by:
getRemoteAddressin interfaceorg.apache.http.nio.reactor.IOSession
-
getEventMask
public int getEventMask()- Specified by:
getEventMaskin interfaceorg.apache.http.nio.reactor.IOSession
-
formatOps
-
setEventMask
public void setEventMask(int ops) - Specified by:
setEventMaskin interfaceorg.apache.http.nio.reactor.IOSession
-
setEvent
public void setEvent(int op) - Specified by:
setEventin interfaceorg.apache.http.nio.reactor.IOSession
-
clearEvent
public void clearEvent(int op) - Specified by:
clearEventin interfaceorg.apache.http.nio.reactor.IOSession
-
close
public void close()- Specified by:
closein interfaceorg.apache.http.nio.reactor.IOSession
-
getStatus
public int getStatus()- Specified by:
getStatusin interfaceorg.apache.http.nio.reactor.IOSession
-
isClosed
public boolean isClosed()- Specified by:
isClosedin interfaceorg.apache.http.nio.reactor.IOSession
-
shutdown
public void shutdown()- Specified by:
shutdownin interfaceorg.apache.http.nio.reactor.IOSession
-
getSocketTimeout
public int getSocketTimeout()- Specified by:
getSocketTimeoutin interfaceorg.apache.http.nio.reactor.IOSession
-
setSocketTimeout
public void setSocketTimeout(int timeout) - Specified by:
setSocketTimeoutin interfaceorg.apache.http.nio.reactor.IOSession
-
setBufferStatus
public void setBufferStatus(org.apache.http.nio.reactor.SessionBufferStatus status) - Specified by:
setBufferStatusin interfaceorg.apache.http.nio.reactor.IOSession
-
hasBufferedInput
public boolean hasBufferedInput()- Specified by:
hasBufferedInputin interfaceorg.apache.http.nio.reactor.IOSession
-
hasBufferedOutput
public boolean hasBufferedOutput()- Specified by:
hasBufferedOutputin interfaceorg.apache.http.nio.reactor.IOSession
-
getAttribute
-
setAttribute
-
removeAttribute
-
toString
-