public final class HttpTunnelingSocketChannelConfig extends java.lang.Object implements SocketChannelConfig
ChannelConfig of a client-side HTTP tunneling
 SocketChannel.  A SocketChannel created by
 HttpTunnelingClientSocketChannelFactory will return an instance of
 this configuration type for SocketChannel.getConfig().
 SocketChannelConfig,
 HttpTunnelingSocketChannelConfig allows the following options in
 the option map:
 | Name | Associated setter method | 
|---|---|
| "sslContext" | setSslContext(SSLContext) | 
| "enabledSslCiperSuites" | setEnabledSslCipherSuites(String[]) | 
| "enabledSslProtocols" | setEnabledSslProtocols(String[]) | 
| "enableSslSessionCreation" | setEnableSslSessionCreation(boolean) | 
| 限定符和类型 | 方法和说明 | 
|---|---|
| ChannelBufferFactory | getBufferFactory()Returns the default  ChannelBufferFactoryused to create a newChannelBuffer. | 
| int | getConnectTimeoutMillis()Returns the connect timeout of the channel in milliseconds. | 
| java.lang.String[] | getEnabledSslCipherSuites()Returns the cipher suites enabled for use on an  SSLEngine. | 
| java.lang.String[] | getEnabledSslProtocols()Returns the protocol versions enabled for use on an  SSLEngine. | 
| ChannelPipelineFactory | getPipelineFactory()Returns the  ChannelPipelineFactorywhich will be used when
 a child channel is created. | 
| int | getReceiveBufferSize()Gets the  StandardSocketOptions.SO_RCVBUFoption. | 
| int | getSendBufferSize()Gets the  StandardSocketOptions.SO_SNDBUFoption. | 
| java.lang.String | getServerName()Returns the host name of the HTTP server. | 
| java.lang.String | getServerPath()Returns the path where the  HttpTunnelingServletis mapped to. | 
| int | getSoLinger()Gets the  StandardSocketOptions.SO_LINGERoption. | 
| javax.net.ssl.SSLContext | getSslContext()Returns the  SSLContextwhich is used to establish an HTTPS
 connection. | 
| int | getTrafficClass()Gets the  StandardSocketOptions.IP_TOSoption. | 
| boolean | isEnableSslSessionCreation()Returns  trueif newSSLSessions may be established by
 anSSLEngine. | 
| boolean | isKeepAlive()Gets the  StandardSocketOptions.SO_KEEPALIVEoption. | 
| boolean | isReuseAddress()Gets the  StandardSocketOptions.SO_REUSEADDRoption. | 
| boolean | isTcpNoDelay()Gets the  StandardSocketOptions.TCP_NODELAYoption. | 
| void | setBufferFactory(ChannelBufferFactory bufferFactory)Sets the default  ChannelBufferFactoryused to create a newChannelBuffer. | 
| void | setConnectTimeoutMillis(int connectTimeoutMillis)Sets the connect timeout of the channel in milliseconds. | 
| void | setEnabledSslCipherSuites(java.lang.String[] suites)Sets the cipher suites enabled for use on an  SSLEngine. | 
| void | setEnabledSslProtocols(java.lang.String[] protocols)Sets the protocol versions enabled for use on an  SSLEngine. | 
| void | setEnableSslSessionCreation(boolean flag)Sets whether new  SSLSessions may be established by anSSLEngine. | 
| void | setKeepAlive(boolean keepAlive)Sets the  StandardSocketOptions.SO_KEEPALIVEoption. | 
| boolean | setOption(java.lang.String key,
         java.lang.Object value)Sets a configuration property with the specified name and value. | 
| void | setOptions(java.util.Map<java.lang.String,java.lang.Object> options)Sets the configuration properties from the specified  Map. | 
| void | setPerformancePreferences(int connectionTime,
                         int latency,
                         int bandwidth)Sets the performance preferences as specified in
  Socket.setPerformancePreferences(int, int, int). | 
| void | setPipelineFactory(ChannelPipelineFactory pipelineFactory)Sets the  ChannelPipelineFactorywhich will be used when
 a child channel is created. | 
| void | setReceiveBufferSize(int receiveBufferSize)Sets the  StandardSocketOptions.SO_RCVBUFoption. | 
| void | setReuseAddress(boolean reuseAddress)Sets the  StandardSocketOptions.SO_REUSEADDRoption. | 
| void | setSendBufferSize(int sendBufferSize)Sets the  StandardSocketOptions.SO_SNDBUFoption. | 
| void | setServerName(java.lang.String serverName)Sets the host name of the HTTP server. | 
| void | setServerPath(java.lang.String serverPath)Sets the path where the  HttpTunnelingServletis mapped to. | 
| void | setSoLinger(int soLinger)Sets the  StandardSocketOptions.SO_LINGERoption. | 
| void | setSslContext(javax.net.ssl.SSLContext sslContext)Sets the  SSLContextwhich is used to establish an HTTPS connection. | 
| void | setTcpNoDelay(boolean tcpNoDelay)Sets the  StandardSocketOptions.TCP_NODELAYoption. | 
| void | setTrafficClass(int trafficClass)Sets the  StandardSocketOptions.IP_TOSoption. | 
public java.lang.String getServerName()
null, the
 "Host" header is not sent by the HTTP tunneling client.public void setServerName(java.lang.String serverName)
null, the
 "Host" header is not sent by the HTTP tunneling client.public java.lang.String getServerPath()
HttpTunnelingServlet is mapped to.
 The default value is "/netty-tunnel".public void setServerPath(java.lang.String serverPath)
HttpTunnelingServlet is mapped to.
 The default value is "/netty-tunnel".public javax.net.ssl.SSLContext getSslContext()
SSLContext which is used to establish an HTTPS
 connection.  If null, a plain-text HTTP connection is established.public void setSslContext(javax.net.ssl.SSLContext sslContext)
SSLContext which is used to establish an HTTPS connection.
 If null, a plain-text HTTP connection is established.public java.lang.String[] getEnabledSslCipherSuites()
SSLEngine.
 If null, the default value will be used.SSLEngine.getEnabledCipherSuites()public void setEnabledSslCipherSuites(java.lang.String[] suites)
SSLEngine.
 If null, the default value will be used.SSLEngine.setEnabledCipherSuites(String[])public java.lang.String[] getEnabledSslProtocols()
SSLEngine.SSLEngine.getEnabledProtocols()public void setEnabledSslProtocols(java.lang.String[] protocols)
SSLEngine.SSLEngine.setEnabledProtocols(String[])public boolean isEnableSslSessionCreation()
true if new SSLSessions may be established by
 an SSLEngine.SSLEngine.getEnableSessionCreation()public void setEnableSslSessionCreation(boolean flag)
SSLSessions may be established by an
 SSLEngine.SSLEngine.setEnableSessionCreation(boolean)public void setOptions(java.util.Map<java.lang.String,java.lang.Object> options)
ChannelConfigMap.setOptions 在接口中 ChannelConfigpublic boolean setOption(java.lang.String key,
                java.lang.Object value)
ChannelConfig
 public boolean setOption(String name, Object value) {
     if (super.setOption(name, value)) {
         return true;
     }
     if (name.equals("additionalOption")) {
         ....
         return true;
     }
     return false;
 }
 setOption 在接口中 ChannelConfigtrue if and only if the property has been setpublic int getReceiveBufferSize()
SocketChannelConfigStandardSocketOptions.SO_RCVBUF option.getReceiveBufferSize 在接口中 SocketChannelConfigpublic int getSendBufferSize()
SocketChannelConfigStandardSocketOptions.SO_SNDBUF option.getSendBufferSize 在接口中 SocketChannelConfigpublic int getSoLinger()
SocketChannelConfigStandardSocketOptions.SO_LINGER option.getSoLinger 在接口中 SocketChannelConfigpublic int getTrafficClass()
SocketChannelConfigStandardSocketOptions.IP_TOS option.getTrafficClass 在接口中 SocketChannelConfigpublic boolean isKeepAlive()
SocketChannelConfigStandardSocketOptions.SO_KEEPALIVE option.isKeepAlive 在接口中 SocketChannelConfigpublic boolean isReuseAddress()
SocketChannelConfigStandardSocketOptions.SO_REUSEADDR option.isReuseAddress 在接口中 SocketChannelConfigpublic boolean isTcpNoDelay()
SocketChannelConfigStandardSocketOptions.TCP_NODELAY option.isTcpNoDelay 在接口中 SocketChannelConfigpublic void setKeepAlive(boolean keepAlive)
SocketChannelConfigStandardSocketOptions.SO_KEEPALIVE option.setKeepAlive 在接口中 SocketChannelConfigpublic void setPerformancePreferences(int connectionTime,
                             int latency,
                             int bandwidth)
SocketChannelConfigSocket.setPerformancePreferences(int, int, int).setPerformancePreferences 在接口中 SocketChannelConfigpublic void setReceiveBufferSize(int receiveBufferSize)
SocketChannelConfigStandardSocketOptions.SO_RCVBUF option.setReceiveBufferSize 在接口中 SocketChannelConfigpublic void setReuseAddress(boolean reuseAddress)
SocketChannelConfigStandardSocketOptions.SO_REUSEADDR option.setReuseAddress 在接口中 SocketChannelConfigpublic void setSendBufferSize(int sendBufferSize)
SocketChannelConfigStandardSocketOptions.SO_SNDBUF option.setSendBufferSize 在接口中 SocketChannelConfigpublic void setSoLinger(int soLinger)
SocketChannelConfigStandardSocketOptions.SO_LINGER option.setSoLinger 在接口中 SocketChannelConfigpublic void setTcpNoDelay(boolean tcpNoDelay)
SocketChannelConfigStandardSocketOptions.TCP_NODELAY option.setTcpNoDelay 在接口中 SocketChannelConfigpublic void setTrafficClass(int trafficClass)
SocketChannelConfigStandardSocketOptions.IP_TOS option.setTrafficClass 在接口中 SocketChannelConfigpublic ChannelBufferFactory getBufferFactory()
ChannelConfigChannelBufferFactory used to create a new
 ChannelBuffer.  The default is HeapChannelBufferFactory.
 You can specify a different factory to change the default
 ByteOrder for example.getBufferFactory 在接口中 ChannelConfigpublic int getConnectTimeoutMillis()
ChannelConfigChannel does not support connect operation, this property is not
 used at all, and therefore will be ignored.getConnectTimeoutMillis 在接口中 ChannelConfig0 if disabled.public ChannelPipelineFactory getPipelineFactory()
ChannelConfigChannelPipelineFactory which will be used when
 a child channel is created.  If the Channel does not create
 a child channel, this property is not used at all, and therefore will
 be ignored.getPipelineFactory 在接口中 ChannelConfigpublic void setBufferFactory(ChannelBufferFactory bufferFactory)
ChannelConfigChannelBufferFactory used to create a new
 ChannelBuffer.  The default is HeapChannelBufferFactory.
 You can specify a different factory to change the default
 ByteOrder for example.setBufferFactory 在接口中 ChannelConfigpublic void setConnectTimeoutMillis(int connectTimeoutMillis)
ChannelConfigChannel does not support connect operation, this property is not
 used at all, and therefore will be ignored.setConnectTimeoutMillis 在接口中 ChannelConfigconnectTimeoutMillis - the connect timeout in milliseconds.
                             0 to disable.public void setPipelineFactory(ChannelPipelineFactory pipelineFactory)
ChannelConfigChannelPipelineFactory which will be used when
 a child channel is created.  If the Channel does not create
 a child channel, this property is not used at all, and therefore will
 be ignored.setPipelineFactory 在接口中 ChannelConfig