public abstract class AbstractSendTransport
extends io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.FullHttpRequest>
| Modifier and Type | Field and Description |
|---|---|
protected SockJsConfig |
config |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSendTransport(SockJsConfig config) |
| Modifier and Type | Method and Description |
|---|---|
void |
messageReceived(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.FullHttpRequest request) |
abstract 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.
|
protected void |
respond(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.HttpVersion httpVersion,
io.netty.handler.codec.http.HttpResponseStatus status,
String message) |
acceptInboundMessage, channelReadprotected final SockJsConfig config
protected AbstractSendTransport(SockJsConfig config)
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>Exceptionpublic abstract void respond(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.FullHttpRequest request)
throws Exception
ctx - the current ChannelHandlerContext.request - the http request.Exception - if a failure occurs while trying to respond.protected void respond(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.HttpVersion httpVersion,
io.netty.handler.codec.http.HttpResponseStatus status,
String message)
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.