|
AeroGear Netty SockJS Codec 0.11.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectio.netty.channel.ChannelHandlerAdapter
org.jboss.aerogear.io.netty.handler.codec.sockjs.transport.XhrPollingTransport
public class XhrPollingTransport
XMLHttpRequest (XHR) Polling is a transport where there is no open connection between
the client and the server. Instead the client will issue a new request for polling from
and sending data to the SockJS service.
This handler is responsible for handling Frames and sending the
content back to the client. These frames are generated by the SockJS session handling.
XhrSendTransport| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler |
|---|
io.netty.channel.ChannelHandler.Sharable, io.netty.channel.ChannelHandler.Skip |
| Constructor Summary | |
|---|---|
XhrPollingTransport(SockJsConfig config,
io.netty.handler.codec.http.FullHttpRequest request)
Sole constructor. |
|
| Method Summary | |
|---|---|
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause)
|
void |
write(io.netty.channel.ChannelHandlerContext ctx,
Object msg,
io.netty.channel.ChannelPromise promise)
|
| Methods inherited from class io.netty.channel.ChannelHandlerAdapter |
|---|
bind, channelActive, channelInactive, channelRead, channelReadComplete, channelRegistered, channelWritabilityChanged, close, connect, disconnect, flush, handlerAdded, handlerRemoved, isSharable, read, userEventTriggered |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XhrPollingTransport(SockJsConfig config,
io.netty.handler.codec.http.FullHttpRequest request)
config - the SockJS SockJsConfig instance.request - the FullHttpRequest which can be used get information like the HTTP version.| Method Detail |
|---|
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.ChannelHandlerAdapterException
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause)
throws Exception
exceptionCaught in interface io.netty.channel.ChannelHandlerexceptionCaught in class io.netty.channel.ChannelHandlerAdapterException
|
AeroGear Netty SockJS Codec 0.11.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||