public class XhrStreamingTransport
extends io.netty.channel.ChannelHandlerAdapter
Frames and sending the
contents of those frames to the client.XhrSendTransport| Constructor and Description |
|---|
XhrStreamingTransport(SockJsConfig config,
io.netty.handler.codec.http.HttpRequest request)
Sole constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected io.netty.handler.codec.http.HttpResponse |
createResponse(String contentType) |
void |
write(io.netty.channel.ChannelHandlerContext ctx,
Object msg,
io.netty.channel.ChannelPromise promise) |
bind, channelActive, channelInactive, channelRead, channelReadComplete, channelRegistered, channelWritabilityChanged, close, connect, disconnect, exceptionCaught, flush, handlerAdded, handlerRemoved, isSharable, read, userEventTriggeredpublic XhrStreamingTransport(SockJsConfig config, io.netty.handler.codec.http.HttpRequest request)
config - the SockJS SockJsConfig instance.request - the HttpRequest which can be used get information like the HTTP version.public void write(io.netty.channel.ChannelHandlerContext ctx,
Object msg,
io.netty.channel.ChannelPromise promise)
throws Exception
write in interface io.netty.channel.ChannelHandlerwrite in class io.netty.channel.ChannelHandlerAdapterExceptionprotected io.netty.handler.codec.http.HttpResponse createResponse(String contentType)
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.