public class SocksMethodRegistry extends Object
SocksMethodRegistry
represents a socks method registry.
This class can register some SocksMethod
classes and provide a method {
getByByte(byte)
to return a SocksMethod
class which value is equal the given
byte.
Modifier and Type | Method and Description |
---|---|
static SocksMethod |
getByByte(byte b)
Returns a
SocksMethod class which value is equal the given byte. |
static void |
overWriteReistry(List<SocksMethod> socksMethods) |
static void |
putMethod(SocksMethod socksMethod)
Puts a
SocksMethod class into the SOCKS method registry with an instance of
SocksMethod . |
public static void putMethod(SocksMethod socksMethod)
SocksMethod
class into the SOCKS method registry with an instance of
SocksMethod
.socksMethod
- The instance of SocksMethod
.public static void overWriteReistry(List<SocksMethod> socksMethods)
public static SocksMethod getByByte(byte b)
SocksMethod
class which value is equal the given byte.b
- value of SocksMethod
.SocksMethod
instance which value is equal the given byte.Copyright © 2015. All rights reserved.