public final class RemoteCIDRFilter extends FilterBase
sm| Constructor | Description |
|---|---|
RemoteCIDRFilter() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain) |
|
java.lang.String |
getAllow() |
Return a string representation of the
NetMask list in #allow. |
java.lang.String |
getDeny() |
Return a string representation of the
NetMask list in #deny. |
Log |
getLogger() |
|
protected boolean |
isConfigProblemFatal() |
Determines if an exception when calling a setter or an unknown
configuration attribute triggers the failure of the this filter which in
turn will prevent the web application from starting.
|
void |
setAllow(java.lang.String input) |
Fill the #allow list with the list of netmasks provided as an argument,
if any.
|
void |
setDeny(java.lang.String input) |
Fill the #deny list with the list of netmasks provided as an argument, if
any.
|
initpublic java.lang.String getAllow()
NetMask list in #allow.public void setAllow(java.lang.String input)
input - The list of netmasks, as a comma separated stringjava.lang.IllegalArgumentException - One or more netmasks are invalidpublic java.lang.String getDeny()
NetMask list in #deny.public void setDeny(java.lang.String input)
input - The list of netmasks, as a comma separated stringjava.lang.IllegalArgumentException - One or more netmasks are invalidprotected boolean isConfigProblemFatal()
FilterBaseisConfigProblemFatal in class FilterBasetrue if a problem should trigger the failure of this
filter, else falsepublic void doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
throws java.io.IOException,
javax.servlet.ServletException
java.io.IOExceptionjavax.servlet.ServletExceptionpublic Log getLogger()
getLogger in class FilterBaseCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.