public class NoAcceptableMethod extends AbstractSocksMethod
NoAcceptableMethod
represents a method which indicates none of the methods
listed by the client are acceptable.
When server replies this method, the client should disconnect SOCKS server and throw
SocksException
.
AbstractSocksMethod
,
SOCKS Protocol Version 5Constructor and Description |
---|
NoAcceptableMethod() |
Modifier and Type | Method and Description |
---|---|
void |
doMethod(Session session)
Do method job.
|
void |
doMethod(SocksProxy socksProxy)
Do method job.
|
int |
getByte()
method byte.
|
String |
getMethodName()
Gets method's name.
|
equals, hashCode
public final int getByte()
SocksMethod
public void doMethod(SocksProxy socksProxy) throws SocksException, IOException
SocksMethod
socksProxy
- SocksProxy instance.SocksException
- If there are any errors about SOCKS protocol.IOException
- if there are any IO errors.public void doMethod(Session session) throws SocksException, IOException
SocksMethod
session
- Session.SocksException
- TODOIOException
- TODOpublic String getMethodName()
SocksMethod
Copyright © 2015. All rights reserved.