public class WGAFilter
extends java.lang.Object
implements javax.servlet.Filter
| Modifier and Type | Class and Description |
|---|---|
static class |
WGAFilter.FilterRequestOccasion |
class |
WGAFilter.FinalCharacterEncodingResponseWrapper
wrapper for HttpServletResponse
- ignores all calls to setCharacterEncoding
- replace parameter charset=
|
class |
WGAFilter.RequestWrapper
a wrapper for WGA requests
- supports decoding of url parameters (parameters of the querystring) in the correct encoding
- supports setting defaults for url parameters if they are empty (not submitted)
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
REQATTRIB_ORIGINAL_QUERYSTRING |
static java.lang.String |
REQATTRIB_ORIGINAL_URI |
static java.lang.String |
REQATTRIB_ORIGINAL_URL |
static java.lang.String |
REQATTRIB_REQUEST_WRAPPER |
static java.lang.String |
REQATTRIB_RESPONSE_WRAPPER |
static long |
REQUEST_LENGTH_NOTIFICATION_THRESHOLD |
static java.lang.String |
SESATTRIB_MOCK_CERT |
| Constructor and Description |
|---|
WGAFilter() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain) |
java.util.Map<javax.servlet.ServletRequest,WGARequestInformation> |
getCurrentRequests() |
void |
init(javax.servlet.FilterConfig arg0) |
void |
initFilterChain() |
void |
mockX509Cert(javax.servlet.http.HttpServletRequest request) |
void |
setupFilterChain() |
public static final java.lang.String REQATTRIB_ORIGINAL_URI
public static final java.lang.String REQATTRIB_ORIGINAL_URL
public static final java.lang.String REQATTRIB_ORIGINAL_QUERYSTRING
public static final java.lang.String REQATTRIB_REQUEST_WRAPPER
public static final java.lang.String REQATTRIB_RESPONSE_WRAPPER
public static final java.lang.String SESATTRIB_MOCK_CERT
public static final long REQUEST_LENGTH_NOTIFICATION_THRESHOLD
public void init(javax.servlet.FilterConfig arg0)
throws javax.servlet.ServletException
init in interface javax.servlet.Filterjavax.servlet.ServletExceptionpublic void setupFilterChain()
public void doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
throws java.io.IOException,
javax.servlet.ServletException
doFilter in interface javax.servlet.Filterjava.io.IOExceptionjavax.servlet.ServletExceptionpublic void mockX509Cert(javax.servlet.http.HttpServletRequest request)
public void destroy()
destroy in interface javax.servlet.Filterpublic java.util.Map<javax.servlet.ServletRequest,WGARequestInformation> getCurrentRequests()
public void initFilterChain()