public class LoggingIOSession extends Object implements org.apache.hc.core5.reactor.TlsCapableIOSession
| Constructor and Description |
|---|
LoggingIOSession(org.apache.hc.core5.reactor.TlsCapableIOSession session,
String id,
org.apache.logging.log4j.Logger log) |
LoggingIOSession(org.apache.hc.core5.reactor.TlsCapableIOSession session,
String id,
org.apache.logging.log4j.Logger log,
org.apache.logging.log4j.Logger wirelog) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFirst(org.apache.hc.core5.reactor.Command command) |
void |
addLast(org.apache.hc.core5.reactor.Command command) |
ByteChannel |
channel() |
void |
clearEvent(int op) |
void |
close() |
org.apache.hc.core5.reactor.Command |
getCommand() |
int |
getEventMask() |
org.apache.hc.core5.reactor.IOEventHandler |
getHandler() |
String |
getId() |
SocketAddress |
getLocalAddress() |
SocketAddress |
getRemoteAddress() |
int |
getSocketTimeout() |
int |
getStatus() |
org.apache.hc.core5.reactor.ssl.TlsDetails |
getTlsDetails() |
boolean |
isClosed() |
void |
setEvent(int op) |
void |
setEventMask(int ops) |
void |
setHandler(org.apache.hc.core5.reactor.IOEventHandler handler) |
void |
setSocketTimeout(int timeout) |
void |
shutdown(org.apache.hc.core5.io.ShutdownType shutdownType) |
void |
startTls(SSLContext sslContext,
org.apache.hc.core5.reactor.ssl.SSLBufferManagement sslBufferManagement,
org.apache.hc.core5.reactor.ssl.SSLSessionInitializer initializer,
org.apache.hc.core5.reactor.ssl.SSLSessionVerifier verifier) |
String |
toString() |
public LoggingIOSession(org.apache.hc.core5.reactor.TlsCapableIOSession session,
String id,
org.apache.logging.log4j.Logger log,
org.apache.logging.log4j.Logger wirelog)
public LoggingIOSession(org.apache.hc.core5.reactor.TlsCapableIOSession session,
String id,
org.apache.logging.log4j.Logger log)
public String getId()
getId in interface org.apache.hc.core5.util.Identifiablepublic void addLast(org.apache.hc.core5.reactor.Command command)
addLast in interface org.apache.hc.core5.reactor.IOSessionpublic void addFirst(org.apache.hc.core5.reactor.Command command)
addFirst in interface org.apache.hc.core5.reactor.IOSessionpublic org.apache.hc.core5.reactor.Command getCommand()
getCommand in interface org.apache.hc.core5.reactor.IOSessionpublic ByteChannel channel()
channel in interface org.apache.hc.core5.reactor.IOSessionpublic SocketAddress getLocalAddress()
getLocalAddress in interface org.apache.hc.core5.reactor.IOSessionpublic SocketAddress getRemoteAddress()
getRemoteAddress in interface org.apache.hc.core5.reactor.IOSessionpublic int getEventMask()
getEventMask in interface org.apache.hc.core5.reactor.IOSessionpublic void setEventMask(int ops)
setEventMask in interface org.apache.hc.core5.reactor.IOSessionpublic void setEvent(int op)
setEvent in interface org.apache.hc.core5.reactor.IOSessionpublic void clearEvent(int op)
clearEvent in interface org.apache.hc.core5.reactor.IOSessionpublic void close()
close in interface Closeableclose in interface AutoCloseableclose in interface org.apache.hc.core5.reactor.IOSessionpublic int getStatus()
getStatus in interface org.apache.hc.core5.reactor.IOSessionpublic boolean isClosed()
isClosed in interface org.apache.hc.core5.reactor.IOSessionpublic void shutdown(org.apache.hc.core5.io.ShutdownType shutdownType)
shutdown in interface org.apache.hc.core5.io.GracefullyCloseablepublic int getSocketTimeout()
getSocketTimeout in interface org.apache.hc.core5.reactor.IOSessionpublic void setSocketTimeout(int timeout)
setSocketTimeout in interface org.apache.hc.core5.reactor.IOSessionpublic org.apache.hc.core5.reactor.IOEventHandler getHandler()
getHandler in interface org.apache.hc.core5.reactor.IOSessionpublic void setHandler(org.apache.hc.core5.reactor.IOEventHandler handler)
setHandler in interface org.apache.hc.core5.reactor.IOSessionpublic void startTls(SSLContext sslContext, org.apache.hc.core5.reactor.ssl.SSLBufferManagement sslBufferManagement, org.apache.hc.core5.reactor.ssl.SSLSessionInitializer initializer, org.apache.hc.core5.reactor.ssl.SSLSessionVerifier verifier) throws UnsupportedOperationException
startTls in interface org.apache.hc.core5.reactor.ssl.TransportSecurityLayerUnsupportedOperationExceptionpublic org.apache.hc.core5.reactor.ssl.TlsDetails getTlsDetails()
getTlsDetails in interface org.apache.hc.core5.reactor.ssl.TransportSecurityLayerCopyright © 1999–2017 The Apache Software Foundation. All rights reserved.