Class SocksProxy
java.lang.Object
org.apache.sshd.common.util.logging.AbstractLoggingBean
org.apache.sshd.common.util.closeable.IoBaseCloseable
org.apache.sshd.common.util.closeable.AbstractCloseable
org.apache.sshd.common.forward.SocksProxy
- All Implemented Interfaces:
Closeable, AutoCloseable, Channel, Closeable, IoHandler
SOCKS proxy server, supporting simple socks4/5 protocols.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classclassclassNested classes/interfaces inherited from class AbstractCloseable
AbstractCloseable.State -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<IoSession, SocksProxy.Proxy> private final ConnectionServiceFields inherited from class AbstractCloseable
closeFuture, futureLock, stateFields inherited from class AbstractLoggingBean
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexceptionCaught(IoSession session, Throwable cause) voidmessageReceived(IoSession session, Readable message) voidsessionClosed(IoSession session) voidsessionCreated(IoSession session) Methods inherited from class AbstractCloseable
addCloseFutureListener, builder, close, doCloseGracefully, doCloseImmediately, getFutureLock, isClosed, isClosing, preClose, removeCloseFutureListenerMethods inherited from class AbstractLoggingBean
debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warn
-
Field Details
-
service
-
proxies
-
-
Constructor Details
-
SocksProxy
-
-
Method Details
-
sessionCreated
- Specified by:
sessionCreatedin interfaceIoHandler- Throws:
Exception
-
sessionClosed
- Specified by:
sessionClosedin interfaceIoHandler- Throws:
Exception
-
messageReceived
-
exceptionCaught
-