public class HttpTunnelingClientSocketChannelFactory extends Object implements ClientSocketChannelFactory
SocketChannel
which connects to an
HttpTunnelingServlet
to communicate with the server application
behind the HttpTunnelingServlet
. Please refer to the
package summary for
the detailed usage.Constructor and Description |
---|
HttpTunnelingClientSocketChannelFactory(ClientSocketChannelFactory clientSocketChannelFactory)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
SocketChannel |
newChannel(ChannelPipeline pipeline)
|
void |
releaseExternalResources()
Releases the external resources that this factory depends on to function.
|
public HttpTunnelingClientSocketChannelFactory(ClientSocketChannelFactory clientSocketChannelFactory)
public SocketChannel newChannel(ChannelPipeline pipeline)
ChannelFactory
newChannel
in interface ChannelFactory
newChannel
in interface ClientSocketChannelFactory
pipeline
- the ChannelPipeline
which is going to be
attached to the new Channel
public void releaseExternalResources()
ChannelFactory
Executor
s that you specified in the factory
constructor are external resources. You can call this method to release
all external resources conveniently when the resources are not used by
this factory or any other part of your application. An unexpected
behavior will be resulted in if the resources are released when there's
an open channel which is managed by this factory.releaseExternalResources
in interface ChannelFactory
releaseExternalResources
in interface ExternalResourceReleasable
Copyright © 2008-2013 The Netty Project. All Rights Reserved.