This is all stored under this class, rather than using individual attachments, as this approach has significant performance advantages.
The ServletInitialHandler also pushed this information to the CURRENT
thread local, which allows it to be access even if the request or response have been
wrapped with non-compliant wrapper classes.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| public static final AttachmentKey | |
| private static final ThreadLocal | |
| private ServletChain | |
| private ServletContextImpl | |
| private final Deployment | |
| private DispatcherType | |
| private int | |
| private String | |
| private static final RuntimePermission | |
| private final HttpServletRequestImpl | |
| private final HttpServletResponseImpl | |
| private final ServletPathMatch | |
| private String | |
| private List | |
| private boolean | runningInsideHandler
If this is true the request is running inside the context of ServletInitialHandler |
| private ServletPathMatch | |
| private ServletRequest | |
| private ServletResponse | |
| private HttpSessionImpl | |
| private static final RuntimePermission | |
| private TransportGuaranteeType |
| Access | Constructor and Description |
|---|---|
| public | ServletRequestContext(final Deployment deployment, final HttpServletRequestImpl originalRequest, final HttpServletResponseImpl originalResponse, final ServletPathMatch originalServletPathMatch)
|
| Modifier and Type | Method and Description |
|---|---|
| public static void | |
| public static ServletRequestContext | Returns: The currentServletRequestContext based on the calling thread, or null if unavailableGets the current threads |
| public boolean | |
| public ServletChain | |
| public ServletContextImpl | |
| public Deployment | |
| public DispatcherType | |
| public int | |
| public String | |
| public HttpServerExchange | |
| public HttpServletRequestImpl | |
| public HttpServletResponseImpl | |
| public ServletPathMatch | |
| public String | |
| public List | |
| public ServletPathMatch | |
| public ServletRequest | |
| public ServletResponse | |
| public HttpSessionImpl | |
| public TransportGuaranteeType | |
| public boolean | |
| public boolean | |
| public static ServletRequestContext | Returns: The currentServletRequestContext based on the calling threadGets the |
| public void | |
| public static void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void |
| asyncSupported | back to summary |
|---|---|
| private boolean asyncSupported | |
| ATTACHMENT_KEY | back to summary |
|---|---|
| public static final AttachmentKey<ServletRequestContext> ATTACHMENT_KEY | |
| CURRENT | back to summary |
|---|---|
| private static final ThreadLocal<ServletRequestContext> CURRENT | |
| currentServlet | back to summary |
|---|---|
| private ServletChain currentServlet | |
| currentServletContext | back to summary |
|---|---|
| private ServletContextImpl currentServletContext | |
| deployment | back to summary |
|---|---|
| private final Deployment deployment | |
| dispatcherType | back to summary |
|---|---|
| private DispatcherType dispatcherType | |
| errorCode | back to summary |
|---|---|
| private int errorCode | |
| errorMessage | back to summary |
|---|---|
| private String errorMessage | |
| GET_CURRENT_REQUEST | back to summary |
|---|---|
| private static final RuntimePermission GET_CURRENT_REQUEST | |
| originalRequest | back to summary |
|---|---|
| private final HttpServletRequestImpl originalRequest | |
| originalResponse | back to summary |
|---|---|
| private final HttpServletResponseImpl originalResponse | |
| originalServletPathMatch | back to summary |
|---|---|
| private final ServletPathMatch originalServletPathMatch | |
| overridenSessionId | back to summary |
|---|---|
| private String overridenSessionId | |
| requiredConstrains | back to summary |
|---|---|
| private List<SingleConstraintMatch> requiredConstrains | |
| runningInsideHandler | back to summary |
|---|---|
| private boolean runningInsideHandler If this is true the request is running inside the context of ServletInitialHandler | |
| servletPathMatch | back to summary |
|---|---|
| private ServletPathMatch servletPathMatch | |
| servletRequest | back to summary |
|---|---|
| private ServletRequest servletRequest | |
| servletResponse | back to summary |
|---|---|
| private ServletResponse servletResponse | |
| session | back to summary |
|---|---|
| private HttpSessionImpl session | |
| SET_CURRENT_REQUEST | back to summary |
|---|---|
| private static final RuntimePermission SET_CURRENT_REQUEST | |
| transportGuarenteeType | back to summary |
|---|---|
| private TransportGuaranteeType transportGuarenteeType | |
| ServletRequestContext | back to summary |
|---|---|
| public ServletRequestContext(final Deployment deployment, final HttpServletRequestImpl originalRequest, final HttpServletResponseImpl originalResponse, final ServletPathMatch originalServletPathMatch) | |
| clearCurrentServletAttachments | back to summary |
|---|---|
| public static void clearCurrentServletAttachments() | |
| current | back to summary |
|---|---|
| public static ServletRequestContext current() Gets the current threads
| |
| displayStackTraces | back to summary |
|---|---|
| public boolean displayStackTraces() | |
| getCurrentServlet | back to summary |
|---|---|
| public ServletChain getCurrentServlet() | |
| getCurrentServletContext | back to summary |
|---|---|
| public ServletContextImpl getCurrentServletContext() | |
| getDeployment | back to summary |
|---|---|
| public Deployment getDeployment() | |
| getDispatcherType | back to summary |
|---|---|
| public DispatcherType getDispatcherType() | |
| getErrorCode | back to summary |
|---|---|
| public int getErrorCode() | |
| getErrorMessage | back to summary |
|---|---|
| public String getErrorMessage() | |
| getExchange | back to summary |
|---|---|
| public HttpServerExchange getExchange() | |
| getOriginalRequest | back to summary |
|---|---|
| public HttpServletRequestImpl getOriginalRequest() | |
| getOriginalResponse | back to summary |
|---|---|
| public HttpServletResponseImpl getOriginalResponse() | |
| getOriginalServletPathMatch | back to summary |
|---|---|
| public ServletPathMatch getOriginalServletPathMatch() | |
| getOverridenSessionId | back to summary |
|---|---|
| public String getOverridenSessionId() | |
| getRequiredConstrains | back to summary |
|---|---|
| public List | |
| getServletPathMatch | back to summary |
|---|---|
| public ServletPathMatch getServletPathMatch() | |
| getServletRequest | back to summary |
|---|---|
| public ServletRequest getServletRequest() | |
| getServletResponse | back to summary |
|---|---|
| public ServletResponse getServletResponse() | |
| getSession | back to summary |
|---|---|
| public HttpSessionImpl getSession() | |
| getTransportGuarenteeType | back to summary |
|---|---|
| public TransportGuaranteeType getTransportGuarenteeType() | |
| isAsyncSupported | back to summary |
|---|---|
| public boolean isAsyncSupported() | |
| isRunningInsideHandler | back to summary |
|---|---|
| public boolean isRunningInsideHandler() | |
| requireCurrent | back to summary |
|---|---|
| public static ServletRequestContext requireCurrent() Gets the
| |
| setAsyncSupported | back to summary |
|---|---|
| public void setAsyncSupported(boolean asyncSupported) | |
| setCurrentRequestContext | back to summary |
|---|---|
| public static void setCurrentRequestContext(ServletRequestContext servletRequestContext) | |
| setCurrentServlet | back to summary |
|---|---|
| public void setCurrentServlet(ServletChain currentServlet) | |
| setCurrentServletContext | back to summary |
|---|---|
| public void setCurrentServletContext(ServletContextImpl currentServletContext) | |
| setDispatcherType | back to summary |
|---|---|
| public void setDispatcherType(DispatcherType dispatcherType) | |
| setError | back to summary |
|---|---|
| public void setError(int sc, String msg) | |
| setOverridenSessionId | back to summary |
|---|---|
| public void setOverridenSessionId(String overridenSessionId) | |
| setRequiredConstrains | back to summary |
|---|---|
| public void setRequiredConstrains(List<SingleConstraintMatch> requiredConstrains) | |
| setRunningInsideHandler | back to summary |
|---|---|
| public void setRunningInsideHandler(boolean runningInsideHandler) | |
| setServletPathMatch | back to summary |
|---|---|
| public void setServletPathMatch(ServletPathMatch servletPathMatch) | |
| setServletRequest | back to summary |
|---|---|
| public void setServletRequest(ServletRequest servletRequest) | |
| setServletResponse | back to summary |
|---|---|
| public void setServletResponse(ServletResponse servletResponse) | |
| setSession | back to summary |
|---|---|
| public void setSession(final HttpSessionImpl session) | |
| setTransportGuarenteeType | back to summary |
|---|---|
| public void setTransportGuarenteeType(TransportGuaranteeType transportGuarenteeType) | |