@Provider @PreMatching public class ReqContextFilter extends Object implements javax.servlet.Filter
Constructor and Description |
---|
ReqContextFilter(IHttpCredentialsPlugin httpCredsHandler) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
A filter which populates the request if it is null and then passes it on to the next entity in the chain.
|
void |
handle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain chain)
A method used by doFilter which populates the request if it is null and then passes it on to the next entity in the chain.
|
void |
init(javax.servlet.FilterConfig config) |
void |
populateContext(javax.servlet.http.HttpServletRequest request)
Populate the Storm RequestContext from an servlet request.
|
public ReqContextFilter(IHttpCredentialsPlugin httpCredsHandler)
public void populateContext(javax.servlet.http.HttpServletRequest request)
Populate the Storm RequestContext from an servlet request. This should be called in each handler
request
- the request to populatepublic void init(javax.servlet.FilterConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
javax.servlet.ServletException
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
A filter which populates the request if it is null and then passes it on to the next entity in the chain.
doFilter
in interface javax.servlet.Filter
request
- the request to populateresponse
- the response to populatechain
- the next chain of entities to pass the object toIOException
javax.servlet.ServletException
public void handle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
A method used by doFilter which populates the request if it is null and then passes it on to the next entity in the chain.
request
- the request to populateresponse
- the response to populatechain
- the next chain of entities to pass the object toIOException
javax.servlet.ServletException
public void destroy()
destroy
in interface javax.servlet.Filter
Copyright © 2019 The Apache Software Foundation. All rights reserved.