public interface SessionFilter
SessionFilter
represents a session filter. When a SOCKS client connects a
SOCKS server, the SOCKS server will create a Session
for the client. Then,
SessionFilter
starts to work.Modifier and Type | Method and Description |
---|---|
boolean |
doFilter(Session session)
Return
true , the SessionFilterChain will call the next SessionFilter if it
has next SessionFilter. |
boolean doFilter(Session session)
true
, the SessionFilterChain
will call the next SessionFilter if it
has next SessionFilter. It will break the process if it returns false
.session
- Session between client and server.false
to break the process or true
to continue.Copyright © 2015. All rights reserved.