public class SocksProxyRequest extends ProxyRequest
| Constructor | Description |
|---|---|
SocksProxyRequest(byte protocolVersion,
byte commandCode,
InetSocketAddress endpointAddress,
String userName) |
Constructor used when building a SOCKS4 request.
|
SocksProxyRequest(byte commandCode,
String host,
int port,
String userName) |
Constructor used when building a SOCKS4a request.
|
| Modifier and Type | Method | Description |
|---|---|---|
byte |
getCommandCode() |
Return the command code.
|
String |
getHost() |
Return the server host name.
|
byte[] |
getIpAddress() |
|
String |
getPassword() |
Return the user password.
|
byte[] |
getPort() |
Return the server port as a byte array.
|
byte |
getProtocolVersion() |
Return the protocol version.
|
String |
getServiceKerberosName() |
Return the Kerberos service name.
|
String |
getUserName() |
Return the user name.
|
void |
setPassword(String password) |
Set the user password
|
void |
setServiceKerberosName(String serviceKerberosName) |
Set the Kerberos service name.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEndpointAddresspublic SocksProxyRequest(byte protocolVersion,
byte commandCode,
InetSocketAddress endpointAddress,
String userName)
protocolVersion - the protocol versioncommandCode - the command codeendpointAddress - the endpoint addressuserName - the user namepublic byte[] getIpAddress()
ProxyRequest.getEndpointAddress().
If not set, it will return the SocksProxyConstants.FAKE_IP constant
value which will be ignored in a SOCKS v4 request.public byte[] getPort()
public byte getCommandCode()
public byte getProtocolVersion()
public String getUserName()
public final String getHost()
public String getPassword()
public void setPassword(String password)
password - the user password valuepublic String getServiceKerberosName()
public void setServiceKerberosName(String serviceKerberosName)
serviceKerberosName - the Kerberos service nameCopyright © 2004–2018 Apache MINA Project. All rights reserved.