public class HttpSslHandler
extends io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.FullHttpRequest>
Modifier and Type | Class and Description |
---|---|
protected static class |
HttpSslHandler.REPLACEMENT |
Modifier and Type | Field and Description |
---|---|
protected io.netty.handler.codec.http.cookie.Cookie |
admin |
protected R66Session |
authentHttp |
protected boolean |
forceClose |
protected static String |
I18NEXT |
protected String |
lang |
protected boolean |
newSession |
protected Map<String,List<String>> |
params |
protected static String |
R66SESSION |
protected static ThreadLocalRandom |
RANDOM |
protected io.netty.handler.codec.http.FullHttpRequest |
request |
protected StringBuilder |
responseContent |
protected static ConcurrentHashMap<String,R66Session> |
sessions
Session Management
|
protected boolean |
shutdown |
static String |
sLIMITROW |
protected String |
uriRequest |
Constructor and Description |
---|
HttpSslHandler() |
Modifier and Type | Method and Description |
---|---|
void |
channelActive(io.netty.channel.ChannelHandlerContext ctx) |
protected void |
channelRead0(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.FullHttpRequest msg) |
protected void |
checkSession(io.netty.channel.Channel channel) |
protected void |
clearSession() |
protected void |
closeConnection() |
protected String |
error(String mesg) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
int |
getLimitRow() |
int |
getRefresh() |
protected String |
getTrimValue(String varname) |
static String |
hashStatus() |
protected void |
langHandle(StringBuilder builder)
Applied current lang to system page
|
protected String |
logon() |
protected void |
writeResponse(io.netty.channel.ChannelHandlerContext ctx)
Write the response
|
acceptInboundMessage, channelRead
channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
protected static final ConcurrentHashMap<String,R66Session> sessions
protected static final ThreadLocalRandom RANDOM
protected R66Session authentHttp
protected io.netty.handler.codec.http.FullHttpRequest request
protected boolean newSession
protected volatile io.netty.handler.codec.http.cookie.Cookie admin
protected final StringBuilder responseContent
protected String uriRequest
protected String lang
protected boolean forceClose
protected boolean shutdown
protected static final String R66SESSION
protected static final String I18NEXT
public static final String sLIMITROW
public static String hashStatus()
protected String logon()
protected void langHandle(StringBuilder builder)
builder
- protected void clearSession()
protected void channelRead0(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http.FullHttpRequest msg) throws Exception
channelRead0
in class io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.FullHttpRequest>
Exception
protected void checkSession(io.netty.channel.Channel channel)
protected void closeConnection()
protected void writeResponse(io.netty.channel.ChannelHandlerContext ctx)
ctx
- public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause) throws Exception
exceptionCaught
in interface io.netty.channel.ChannelHandler
exceptionCaught
in interface io.netty.channel.ChannelInboundHandler
exceptionCaught
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
public void channelActive(io.netty.channel.ChannelHandlerContext ctx) throws Exception
channelActive
in interface io.netty.channel.ChannelInboundHandler
channelActive
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
public int getLimitRow()
public int getRefresh()
Copyright © 2009–2020 Waarp. All rights reserved.