| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private final List | |
| private final Log | log
Our logger |
| private static final String | PLAIN_TEXT_MIME_TYPE
text/plain MIME type: this is the MIME type we return when a |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | doFilter(final ServletRequest
The request to process request, final ServletResponse The response associated with the request response, final FilterChain Provides access to the next filter in the chain for this filter to pass the request and response
to for further processing chain)Implements jakarta. The |
| private List | |
| public String | |
| public String | |
| public Log | |
| private boolean | |
| protected boolean | isConfigProblemFatal()
Overrides org. 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. |
| private void | |
| public void | |
| public void |
| allow | back to summary |
|---|---|
| private final List<NetMask> allow The list of allowed | |
| deny | back to summary |
|---|---|
| private final List<NetMask> deny The list of denied | |
| log | back to summary |
|---|---|
| private final Log log Our logger | |
| PLAIN_TEXT_MIME_TYPE | back to summary |
|---|---|
| private static final String PLAIN_TEXT_MIME_TYPE text/plain MIME type: this is the MIME type we return when a | |
| RemoteCIDRFilter | back to summary |
|---|---|
| public RemoteCIDRFilter() | |
| doFilter | back to summary |
|---|---|
| public void doFilter(final ServletRequest request, final ServletResponse response, final FilterChain chain) throws IOException, ServletException Implements jakarta. Doc from jakarta. The
A typical implementation of this method would follow the following pattern:-
| |
| fillFromInput | back to summary |
|---|---|
| private List Fill a | |
| getAllow | back to summary |
|---|---|
| public String getAllow() Return a string representation of the
| |
| getDeny | back to summary |
|---|---|
| public String getDeny() Return a string representation of the
| |
| getLogger | back to summary |
|---|---|
| public Log getLogger() Implements abstract org.
| |
| isAllowed | back to summary |
|---|---|
| private boolean isAllowed(final String property) Test if a remote's IP address is allowed to proceed.
| |
| isConfigProblemFatal | back to summary |
|---|---|
| protected boolean isConfigProblemFatal() Overrides org. Doc from org. 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.
| |
| sendErrorWhenNotHttp | back to summary |
|---|---|
| private void sendErrorWhenNotHttp(ServletResponse response) throws IOException | |
| setAllow | back to summary |
|---|---|
| public void setAllow(final String input) Fill the #allow list with the list of netmasks provided as an argument, if any. Calls #fillFromInput.
| |
| setDeny | back to summary |
|---|---|
| public void setDeny(final String input) Fill the #deny list with the list of netmasks provided as an argument, if any. Calls #fillFromInput.
| |