public class HTTPRequestContext extends Object
Modifier and Type | Field and Description |
---|---|
protected static ThreadLocal<HTTPRequestContext> |
TL_CONTEXT |
Modifier | Constructor and Description |
---|---|
protected |
HTTPRequestContext(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
Modifier and Type | Method and Description |
---|---|
static HTTPRequestContext |
get()
Get the current context.
|
javax.servlet.http.HttpServletRequest |
getRequest()
The request.
|
javax.servlet.http.HttpServletResponse |
getResponse()
The request.
|
protected static final ThreadLocal<HTTPRequestContext> TL_CONTEXT
protected HTTPRequestContext(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
public static HTTPRequestContext get()
public javax.servlet.http.HttpServletRequest getRequest()
public javax.servlet.http.HttpServletResponse getResponse()
Copyright © 2016. All rights reserved.