@ChannelHandler.Sharable
public class NettyHttpContainer
extends io.netty.channel.ChannelHandlerAdapter
implements org.glassfish.jersey.server.spi.Container
| Modifier and Type | Field and Description |
|---|---|
private org.glassfish.jersey.server.ApplicationHandler |
appHandler |
private javax.ws.rs.core.Application |
application |
private String |
baseUri |
private org.glassfish.jersey.server.ResourceConfig |
config |
static javax.ws.rs.core.SecurityContext |
NO_SECURITY_CONTEXT |
static String |
PROPERTY_BASE_URI |
| Constructor and Description |
|---|
NettyHttpContainer(javax.ws.rs.core.Application application) |
| Modifier and Type | Method and Description |
|---|---|
void |
channelRead(io.netty.channel.ChannelHandlerContext ctx,
Object msg) |
org.glassfish.jersey.server.ApplicationHandler |
getApplicationHandler() |
private String |
getBaseUri(io.netty.handler.codec.http.HttpRequest request) |
org.glassfish.jersey.server.ResourceConfig |
getConfiguration() |
void |
reload() |
void |
reload(org.glassfish.jersey.server.ResourceConfig configuration) |
public static final javax.ws.rs.core.SecurityContext NO_SECURITY_CONTEXT
public static final String PROPERTY_BASE_URI
private javax.ws.rs.core.Application application
private String baseUri
private org.glassfish.jersey.server.ApplicationHandler appHandler
private final org.glassfish.jersey.server.ResourceConfig config
public NettyHttpContainer(javax.ws.rs.core.Application application)
public void channelRead(io.netty.channel.ChannelHandlerContext ctx,
Object msg)
throws Exception
Exceptionprivate String getBaseUri(io.netty.handler.codec.http.HttpRequest request)
public org.glassfish.jersey.server.ResourceConfig getConfiguration()
getConfiguration in interface org.glassfish.jersey.server.spi.Containerpublic org.glassfish.jersey.server.ApplicationHandler getApplicationHandler()
getApplicationHandler in interface org.glassfish.jersey.server.spi.Containerpublic void reload()
reload in interface org.glassfish.jersey.server.spi.Containerpublic void reload(org.glassfish.jersey.server.ResourceConfig configuration)
reload in interface org.glassfish.jersey.server.spi.Container