public class NettyHelper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
RESPONSE_HANDLER_NAME |
Constructor and Description |
---|
NettyHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
awaitUninterruptibly(org.jboss.netty.channel.ChannelFuture future,
Long timeout)
Utility method for awaiting with or without timeout (timeout == null or <=0 implies not timeout)
|
static void |
clearResponseHandler(org.jboss.netty.channel.Channel channel) |
static org.jboss.netty.channel.ChannelPipelineFactory |
getChannelPipelineFactory() |
static org.jboss.netty.channel.ChannelPipelineFactory |
getChannelPipelineFactory(org.jboss.netty.handler.ssl.SslHandler sslHandler) |
static String |
getFirstHeaderAsString(Map<String,Object> headers,
String name) |
static void |
setResponseHandler(org.jboss.netty.channel.Channel channel,
WSResponseHandler responseHandler) |
public static final String RESPONSE_HANDLER_NAME
public static org.jboss.netty.channel.ChannelPipelineFactory getChannelPipelineFactory()
public static org.jboss.netty.channel.ChannelPipelineFactory getChannelPipelineFactory(org.jboss.netty.handler.ssl.SslHandler sslHandler)
public static void setResponseHandler(org.jboss.netty.channel.Channel channel, WSResponseHandler responseHandler)
public static void clearResponseHandler(org.jboss.netty.channel.Channel channel)
public static void awaitUninterruptibly(org.jboss.netty.channel.ChannelFuture future, Long timeout) throws WSTimeoutException
future
- timeout
- WSTimeoutException
Copyright © 2012 JBoss, by Red Hat. All Rights Reserved.