|
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
io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.FullHttpRequest>
org.jboss.aerogear.io.netty.handler.codec.sockjs.transport.AbstractSendTransport
org.jboss.aerogear.io.netty.handler.codec.sockjs.transport.XhrSendTransport
public class XhrSendTransport
XMLHttpRequest (XHR) streaming transport is a transport where a persistent connection is maintained between the server and the client, over which the server can send HTTP chunks. This handler is responsible the send part the xhr-polling transport, which is sending data to the target SockJS service.
XhrPollingTransport| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler |
|---|
io.netty.channel.ChannelHandler.Sharable, io.netty.channel.ChannelHandler.Skip |
| Field Summary |
|---|
| Fields inherited from class org.jboss.aerogear.io.netty.handler.codec.sockjs.transport.AbstractSendTransport |
|---|
config |
| Constructor Summary | |
|---|---|
XhrSendTransport(SockJsConfig config)
|
|
| Method Summary | |
|---|---|
void |
respond(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.FullHttpRequest request)
Allows concrete subclasses to very how they will respond after a message has been sent to the target SockJS service. |
String |
toString()
|
| Methods inherited from class org.jboss.aerogear.io.netty.handler.codec.sockjs.transport.AbstractSendTransport |
|---|
messageReceived, respond |
| Methods inherited from class io.netty.channel.SimpleChannelInboundHandler |
|---|
acceptInboundMessage, channelRead |
| Methods inherited from class io.netty.channel.ChannelHandlerAdapter |
|---|
bind, channelActive, channelInactive, channelReadComplete, channelRegistered, channelWritabilityChanged, close, connect, disconnect, exceptionCaught, flush, handlerAdded, handlerRemoved, isSharable, read, userEventTriggered, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public XhrSendTransport(SockJsConfig config)
| Method Detail |
|---|
public void respond(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.FullHttpRequest request)
throws Exception
AbstractSendTransport
respond in class AbstractSendTransportctx - the current ChannelHandlerContext.request - the http request.
Exception - if a failure occurs while trying to respond.public String toString()
toString in class Object
|
AeroGear Netty SockJS Codec 0.11.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||