public class ServletHttpExchange extends Object implements Recyclable, AutoCloseable
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
int |
closeStatus() |
<T> T |
getAttribute(io.netty.util.AttributeKey<T> key) |
static <T> T |
getAttribute(io.netty.channel.ChannelHandlerContext channelHandlerContext,
io.netty.util.AttributeKey<T> key) |
io.netty.channel.ChannelHandlerContext |
getChannelHandlerContext() |
static ServletHttpExchange |
getHttpExchange(io.netty.channel.ChannelHandlerContext channelHandlerContext) |
ServletHttpSession |
getHttpSession() |
static ServletHttpSession |
getHttpSession(io.netty.channel.ChannelHandlerContext channelHandlerContext)
Get httpSession from the properties bound in the pipe
|
InetSocketAddress |
getLocalAddress() |
long |
getPendingWriteBytes() |
InetSocketAddress |
getRemoteAddress() |
ServletHttpServletRequest |
getRequest() |
ServletHttpServletResponse |
getResponse() |
InetSocketAddress |
getServerAddress() |
ServletContext |
getServletContext() |
static boolean |
isChannelActive(io.netty.channel.ChannelHandlerContext channelHandlerContext)
Whether the pipe is active
|
boolean |
isHttpKeepAlive() |
static ServletHttpExchange |
newInstance(ServletContext servletContext,
io.netty.channel.ChannelHandlerContext context,
io.netty.handler.codec.http.HttpRequest httpRequest) |
void |
recycle()
Recycle servlet object
|
<T> void |
setAttribute(io.netty.util.AttributeKey<T> key,
T value) |
static <T> void |
setAttribute(io.netty.channel.ChannelHandlerContext context,
io.netty.util.AttributeKey<T> key,
T value) |
static void |
setHttpExchange(io.netty.channel.ChannelHandlerContext channelHandlerContext,
ServletHttpExchange httpExchange) |
static void |
setHttpSession(io.netty.channel.ChannelHandlerContext channelHandlerContext,
ServletHttpSession httpSession)
Bind httpSession to the pipe property
|
void |
setHttpSession(ServletHttpSession httpSession) |
void |
touch(Object hit) |
recyclepublic static final int CLOSE_NO
public static final int CLOSE_ING
public static final int CLOSE_YES
public static ServletHttpExchange newInstance(ServletContext servletContext, io.netty.channel.ChannelHandlerContext context, io.netty.handler.codec.http.HttpRequest httpRequest)
public static ServletHttpSession getHttpSession(io.netty.channel.ChannelHandlerContext channelHandlerContext)
channelHandlerContext - channelHandlerContextpublic static void setHttpSession(io.netty.channel.ChannelHandlerContext channelHandlerContext,
ServletHttpSession httpSession)
channelHandlerContext - channelHandlerContexthttpSession - httpSessionpublic static boolean isChannelActive(io.netty.channel.ChannelHandlerContext channelHandlerContext)
channelHandlerContext - channelHandlerContextpublic static ServletHttpExchange getHttpExchange(io.netty.channel.ChannelHandlerContext channelHandlerContext)
public static void setHttpExchange(io.netty.channel.ChannelHandlerContext channelHandlerContext,
ServletHttpExchange httpExchange)
public ServletHttpSession getHttpSession()
public void setHttpSession(ServletHttpSession httpSession)
public boolean isHttpKeepAlive()
public ServletHttpServletRequest getRequest()
public void touch(Object hit)
public ServletContext getServletContext()
public ServletHttpServletResponse getResponse()
public io.netty.channel.ChannelHandlerContext getChannelHandlerContext()
public InetSocketAddress getServerAddress()
public InetSocketAddress getLocalAddress()
public InetSocketAddress getRemoteAddress()
public long getPendingWriteBytes()
public static <T> T getAttribute(io.netty.channel.ChannelHandlerContext channelHandlerContext,
io.netty.util.AttributeKey<T> key)
public static <T> void setAttribute(io.netty.channel.ChannelHandlerContext context,
io.netty.util.AttributeKey<T> key,
T value)
public <T> T getAttribute(io.netty.util.AttributeKey<T> key)
public <T> void setAttribute(io.netty.util.AttributeKey<T> key,
T value)
public void recycle()
recycle 在接口中 Recyclablepublic void close()
close 在接口中 AutoCloseablepublic int closeStatus()
Copyright © 2021. All rights reserved.