public interface SocksCommandFilter
SocksCommandFilter
represents a SOCKS command filter. When a client sends
a SOCKS command request message to a SOCKS server, SocksCommandFilter
will intercept the
execution process.Modifier and Type | Method and Description |
---|---|
boolean |
doFilter(Session session,
CommandMessage message)
This method will be called before the SOCKS server do the SOCKS command.
|
boolean doFilter(Session session, CommandMessage message) throws IOException
session
- Sessionmessage
- The message send from a SOKCS client.true
to continue.IOException
- If an I/O error occurred. If this method throws any exception, the filter
will block the client's request.Copyright © 2015. All rights reserved.