Class HttpTunnelingSocketChannelConfig

    • Field Detail

      • serverName

        private volatile java.lang.String serverName
      • serverPath

        private volatile java.lang.String serverPath
      • sslContext

        private volatile javax.net.ssl.SSLContext sslContext
      • enabledSslCipherSuites

        private volatile java.lang.String[] enabledSslCipherSuites
      • enabledSslProtocols

        private volatile java.lang.String[] enabledSslProtocols
      • enableSslSessionCreation

        private volatile boolean enableSslSessionCreation
    • Method Detail

      • getServerName

        public java.lang.String getServerName()
        Returns the host name of the HTTP server. If null, the "Host" header is not sent by the HTTP tunneling client.
      • setServerName

        public void setServerName​(java.lang.String serverName)
        Sets the host name of the HTTP server. If null, the "Host" header is not sent by the HTTP tunneling client.
      • getServerPath

        public java.lang.String getServerPath()
        Returns the path where the HttpTunnelingServlet is mapped to. The default value is "/netty-tunnel".
      • setServerPath

        public void setServerPath​(java.lang.String serverPath)
        Sets the path where the HttpTunnelingServlet is mapped to. The default value is "/netty-tunnel".
      • getSslContext

        public javax.net.ssl.SSLContext getSslContext()
        Returns the SSLContext which is used to establish an HTTPS connection. If null, a plain-text HTTP connection is established.
      • setSslContext

        public void setSslContext​(javax.net.ssl.SSLContext sslContext)
        Sets the SSLContext which is used to establish an HTTPS connection. If null, a plain-text HTTP connection is established.
      • getEnabledSslCipherSuites

        public java.lang.String[] getEnabledSslCipherSuites()
        Returns the cipher suites enabled for use on an SSLEngine. If null, the default value will be used.
        See Also:
        SSLEngine.getEnabledCipherSuites()
      • setEnabledSslCipherSuites

        public void setEnabledSslCipherSuites​(java.lang.String[] suites)
        Sets the cipher suites enabled for use on an SSLEngine. If null, the default value will be used.
        See Also:
        SSLEngine.setEnabledCipherSuites(String[])
      • getEnabledSslProtocols

        public java.lang.String[] getEnabledSslProtocols()
        Returns the protocol versions enabled for use on an SSLEngine.
        See Also:
        SSLEngine.getEnabledProtocols()
      • setEnabledSslProtocols

        public void setEnabledSslProtocols​(java.lang.String[] protocols)
        Sets the protocol versions enabled for use on an SSLEngine.
        See Also:
        SSLEngine.setEnabledProtocols(String[])
      • isEnableSslSessionCreation

        public boolean isEnableSslSessionCreation()
        Returns true if new SSLSessions may be established by an SSLEngine.
        See Also:
        SSLEngine.getEnableSessionCreation()
      • setEnableSslSessionCreation

        public void setEnableSslSessionCreation​(boolean flag)
        Sets whether new SSLSessions may be established by an SSLEngine.
        See Also:
        SSLEngine.setEnableSessionCreation(boolean)
      • setOptions

        public void setOptions​(java.util.Map<java.lang.String,​java.lang.Object> options)
        Description copied from interface: ChannelConfig
        Sets the configuration properties from the specified Map.
        Specified by:
        setOptions in interface ChannelConfig
      • setOption

        public boolean setOption​(java.lang.String key,
                                 java.lang.Object value)
        Description copied from interface: ChannelConfig
        Sets a configuration property with the specified name and value. To override this method properly, you must call the super class:
         public boolean setOption(String name, Object value) {
             if (super.setOption(name, value)) {
                 return true;
             }
        
             if (name.equals("additionalOption")) {
                 ....
                 return true;
             }
        
             return false;
         }
         
        Specified by:
        setOption in interface ChannelConfig
        Returns:
        true if and only if the property has been set
      • setPerformancePreferences

        public void setPerformancePreferences​(int connectionTime,
                                              int latency,
                                              int bandwidth)
        Description copied from interface: SocketChannelConfig
        Sets the performance preferences as specified in Socket.setPerformancePreferences(int, int, int).
        Specified by:
        setPerformancePreferences in interface SocketChannelConfig
      • getConnectTimeoutMillis

        public int getConnectTimeoutMillis()
        Description copied from interface: ChannelConfig
        Returns the connect timeout of the channel in milliseconds. If the Channel does not support connect operation, this property is not used at all, and therefore will be ignored.
        Specified by:
        getConnectTimeoutMillis in interface ChannelConfig
        Returns:
        the connect timeout in milliseconds. 0 if disabled.
      • setConnectTimeoutMillis

        public void setConnectTimeoutMillis​(int connectTimeoutMillis)
        Description copied from interface: ChannelConfig
        Sets the connect timeout of the channel in milliseconds. If the Channel does not support connect operation, this property is not used at all, and therefore will be ignored.
        Specified by:
        setConnectTimeoutMillis in interface ChannelConfig
        Parameters:
        connectTimeoutMillis - the connect timeout in milliseconds. 0 to disable.