public interface MethodSelector
MethodSelector
represents a method selector.Modifier and Type | Method and Description |
---|---|
void |
addSupportMethod(SocksMethod socksMethod)
Adds a method into a support method list.
|
void |
clearAllSupportMethods()
Clears all methods that server supported.
|
Set<SocksMethod> |
getSupportMethods()
Gets methods that server supported.
|
void |
removeSupportMethod(SocksMethod socksMethod)
Removes the method from the sets.
|
SocksMethod |
select(MethodSelectionMessage message)
Selects a method form
MethodSelectionMessage . |
void |
setSupportMethod(SocksMethod... methods)
Sets support methods.
|
void |
setSupportMethods(Set<SocksMethod> supportMethods)
Sets methods that server supported.
|
SocksMethod select(MethodSelectionMessage message)
MethodSelectionMessage
.message
- the message from client.void setSupportMethods(Set<SocksMethod> supportMethods)
supportMethods
- methods that server supported.Set<SocksMethod> getSupportMethods()
void clearAllSupportMethods()
void removeSupportMethod(SocksMethod socksMethod)
socksMethod
- The method which will be removed.void addSupportMethod(SocksMethod socksMethod)
socksMethod
- The method which will be supported.void setSupportMethod(SocksMethod... methods)
methods
- Methods supported.Copyright © 2015. All rights reserved.