public class JerseyServerHandler extends Object
ChannelInboundHandler which servers as a bridge between Netty and Jersey.| 限定符和类型 | 字段和说明 |
|---|---|
private org.glassfish.jersey.server.ApplicationHandler |
appHandler |
static AtomicReference<JerseyServerHandler> |
instanceRef |
private ProxyTlsOption |
proxyTlsOption |
| 限定符 | 构造器和说明 |
|---|---|
private |
JerseyServerHandler(String applicationName,
ProxyTlsOption httpProtocolTlsOptions) |
| 限定符和类型 | 方法和说明 |
|---|---|
io.netty.handler.codec.http.HttpResponse |
clientToProxyRequest(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.HttpRequest req) |
private org.glassfish.jersey.server.ContainerRequest |
createContainerRequest(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.HttpRequest req)
Create Jersey
ContainerRequest based on Netty HttpRequest. |
static JerseyServerHandler |
getInstance(String applicationName,
ProxyTlsOption proxyTlsOption) |
private javax.ws.rs.core.SecurityContext |
getSecurityContext() |
public static volatile AtomicReference<JerseyServerHandler> instanceRef
private volatile org.glassfish.jersey.server.ApplicationHandler appHandler
private final ProxyTlsOption proxyTlsOption
private JerseyServerHandler(String applicationName, ProxyTlsOption httpProtocolTlsOptions)
public io.netty.handler.codec.http.HttpResponse clientToProxyRequest(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.HttpRequest req)
private org.glassfish.jersey.server.ContainerRequest createContainerRequest(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.HttpRequest req)
throws URISyntaxException
ContainerRequest based on Netty HttpRequest.ctx - Netty channel context.req - Netty Http request.URISyntaxException - URISyntaxExceptionprivate javax.ws.rs.core.SecurityContext getSecurityContext()
public static JerseyServerHandler getInstance(String applicationName, ProxyTlsOption proxyTlsOption)
Copyright © 2023 Zodiac. All rights reserved.