Class HttpProxyOptions


  • public class HttpProxyOptions
    extends java.lang.Object
    This class provides access to Http proxy configuration options
    • Constructor Detail

      • HttpProxyOptions

        public HttpProxyOptions()
        Creates a new set of proxy options
        Throws:
        CrtRuntimeException - If the system is unable to allocate space for a http proxy options instance
    • Method Detail

      • setConnectionType

        public void setConnectionType​(HttpProxyOptions.HttpProxyConnectionType connectionType)
        Sets the proxy connection type
        Parameters:
        connectionType - what kind of connection to establish
      • setHost

        public void setHost​(java.lang.String host)
        Sets the proxy host to connect through
        Parameters:
        host - proxy to connect through
      • getHost

        public java.lang.String getHost()
        Returns:
        the proxy host to connect through
      • setPort

        public void setPort​(int port)
        Sets the proxy port to connect through. For 32bit values exceeding Integer.MAX_VALUE use two's complement (i.e. -1 == 0xFFFFFFFF).
        Parameters:
        port - proxy port to connect through
      • getPort

        public int getPort()
        Returns:
        the proxy port to connect through. Note that two's complement is used for 32bit values exceeding Integer.MAX_VALUE (i.e. -1 == 0xFFFFFFFF).
      • setAuthorizationType

        public void setAuthorizationType​(HttpProxyOptions.HttpProxyAuthorizationType authorizationType)
        Sets the proxy authorization type
        Parameters:
        authorizationType - what kind of authentication, if any, to use
      • setAuthorizationUsername

        public void setAuthorizationUsername​(java.lang.String username)
        Sets the username to use for authorization; only applicable to basic authentication
        Parameters:
        username - username to use with basic authentication
      • getAuthorizationUsername

        public java.lang.String getAuthorizationUsername()
        Returns:
        the username to use for authorization
      • setAuthorizationPassword

        public void setAuthorizationPassword​(java.lang.String password)
        Sets the password to use for authorization; only applicable to basic authentication
        Parameters:
        password - password to use with basic authentication
      • getAuthorizationPassword

        public java.lang.String getAuthorizationPassword()
        Returns:
        the password to use for authorization
      • setTlsContext

        public void setTlsContext​(TlsContext tlsContext)
        Sets the tls context for the proxy connection
        Parameters:
        tlsContext - tls context for the proxy connection
      • getTlsContext

        public TlsContext getTlsContext()
        Returns:
        the tls context for the proxy connection