|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.mina.proxy.handlers.ProxyRequest
org.apache.mina.proxy.handlers.socks.SocksProxyRequest
public class SocksProxyRequest
SocksProxyRequest.java - Wrapper class for SOCKS requests.
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
byte |
getCommandCode()
Return the command code. |
String |
getHost()
Return the server host name. |
byte[] |
getIpAddress()
Returns the endpoint address resulting from the ProxyRequest.getEndpointAddress(). |
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. |
| Methods inherited from class org.apache.mina.proxy.handlers.ProxyRequest |
|---|
getEndpointAddress |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SocksProxyRequest(byte protocolVersion,
byte commandCode,
InetSocketAddress endpointAddress,
String userName)
protocolVersion - the protocol versioncommandCode - the command codeendpointAddress - the endpoint addressuserName - the user name
public SocksProxyRequest(byte commandCode,
String host,
int port,
String userName)
commandCode - the command codehost - the server host nameport - the server portuserName - the user name| Method Detail |
|---|
public 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 name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||