|
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.handler.SockJsHandler
public class SockJsHandler
This handler is the main entry point for SockJS HTTP Request. It is responsible for inspecting the request uri and adding ChannelHandlers for different transport protocols that SockJS support. Once this has been done this handler will be removed from the channel pipeline.
| Nested Class Summary | |
|---|---|
static class |
SockJsHandler.MatchingSessionPath
|
static class |
SockJsHandler.NonSupportedPath
|
static interface |
SockJsHandler.PathParams
Represents HTTP path parameters in SockJS. |
| Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler |
|---|
io.netty.channel.ChannelHandler.Sharable, io.netty.channel.ChannelHandler.Skip |
| Constructor Summary | |
|---|---|
SockJsHandler(SockJsServiceFactory... factories)
Sole constructor which takes one or more SockJSServiceFactory. |
|
| Method Summary | |
|---|---|
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause)
|
void |
messageReceived(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.FullHttpRequest request)
|
| 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, flush, handlerAdded, handlerRemoved, isSharable, read, userEventTriggered, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SockJsHandler(SockJsServiceFactory... factories)
SockJSServiceFactory. These factories will
later be used by the server to create the SockJS services that will be exposed by this server
factories - one or more SockJsServiceFactorys.| Method Detail |
|---|
public void messageReceived(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.FullHttpRequest request)
throws Exception
messageReceived in class io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.FullHttpRequest>Exception
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 | |||||||||