public class StrictHttpFirewall extends java.lang.Object implements HttpFirewall
HttpFirewall
that rejects any suspicious requests
with a RequestRejectedException
.Constructor and Description |
---|
StrictHttpFirewall() |
Modifier and Type | Method and Description |
---|---|
FirewalledRequest |
getFirewalledRequest(javax.servlet.http.HttpServletRequest request)
Provides the request object which will be passed through the filter chain.
|
javax.servlet.http.HttpServletResponse |
getFirewalledResponse(javax.servlet.http.HttpServletResponse response)
Provides the response which will be passed through the filter chain.
|
void |
setAllowBackSlash(boolean allowBackSlash) |
void |
setAllowSemicolon(boolean allowSemicolon) |
void |
setAllowUrlEncodedPercent(boolean allowUrlEncodedPercent) |
void |
setAllowUrlEncodedPeriod(boolean allowUrlEncodedPeriod) |
void |
setAllowUrlEncodedSlash(boolean allowUrlEncodedSlash) |
public void setAllowSemicolon(boolean allowSemicolon)
allowSemicolon
- public void setAllowUrlEncodedSlash(boolean allowUrlEncodedSlash)
public void setAllowUrlEncodedPeriod(boolean allowUrlEncodedPeriod)
public void setAllowBackSlash(boolean allowBackSlash)
public void setAllowUrlEncodedPercent(boolean allowUrlEncodedPercent)
public FirewalledRequest getFirewalledRequest(javax.servlet.http.HttpServletRequest request) throws RequestRejectedException
HttpFirewall
getFirewalledRequest
in interface HttpFirewall
RequestRejectedException
- if the request should be rejected immediatelypublic javax.servlet.http.HttpServletResponse getFirewalledResponse(javax.servlet.http.HttpServletResponse response)
HttpFirewall
getFirewalledResponse
in interface HttpFirewall
response
- the original response