Class SocksProxyRequest


  • public class SocksProxyRequest
    extends ProxyRequest
    SocksProxyRequest.java - Wrapper class for SOCKS requests.
    Since:
    MINA 2.0.0-M3
    Author:
    Apache MINA Project
    • Constructor Summary

      Constructors 
      Constructor Description
      SocksProxyRequest​(byte protocolVersion, byte commandCode, java.net.InetSocketAddress endpointAddress, java.lang.String userName)
      Constructor used when building a SOCKS4 request.
      SocksProxyRequest​(byte commandCode, java.lang.String host, int port, java.lang.String userName)
      Constructor used when building a SOCKS4a request.
    • Constructor Detail

      • SocksProxyRequest

        public SocksProxyRequest​(byte protocolVersion,
                                 byte commandCode,
                                 java.net.InetSocketAddress endpointAddress,
                                 java.lang.String userName)
        Constructor used when building a SOCKS4 request.
        Parameters:
        protocolVersion - the protocol version
        commandCode - the command code
        endpointAddress - the endpoint address
        userName - the user name
      • SocksProxyRequest

        public SocksProxyRequest​(byte commandCode,
                                 java.lang.String host,
                                 int port,
                                 java.lang.String userName)
        Constructor used when building a SOCKS4a request.
        Parameters:
        commandCode - the command code
        host - the server host name
        port - the server port
        userName - the user name
    • Method Detail

      • getPort

        public byte[] getPort()
        Return the server port as a byte array.
        Returns:
        the server port
      • getCommandCode

        public byte getCommandCode()
        Return the command code.
        Returns:
        the command code
      • getProtocolVersion

        public byte getProtocolVersion()
        Return the protocol version.
        Returns:
        the protocol version
      • getUserName

        public java.lang.String getUserName()
        Return the user name.
        Returns:
        the user name
      • getHost

        public final java.lang.String getHost()
        Return the server host name.
        Returns:
        the server host name
      • getPassword

        public java.lang.String getPassword()
        Return the user password.
        Returns:
        the user password
      • setPassword

        public void setPassword​(java.lang.String password)
        Set the user password
        Parameters:
        password - the user password value
      • getServiceKerberosName

        public java.lang.String getServiceKerberosName()
        Return the Kerberos service name.
        Returns:
        the Kerberos service name
      • setServiceKerberosName

        public void setServiceKerberosName​(java.lang.String serviceKerberosName)
        Set the Kerberos service name.
        Parameters:
        serviceKerberosName - the Kerberos service name