public final class RemoteHostFilter extends RequestFilter
RequestFilter
that filters
based on the remote client's host name.allow, allows, denies, deny
sm
Constructor and Description |
---|
RemoteHostFilter() |
Modifier and Type | Method and Description |
---|---|
void |
doFilter(ServletRequest request,
ServletResponse response,
FilterChain chain)
Extract the desired request property, and pass it (along with the
specified request and response objects and associated filter chain) to
the protected
process() method to perform the actual
filtering. |
void |
doFilterEvent(HttpEvent event,
HttpEventFilterChain chain)
Extract the desired request property, and pass it (along with the comet
event and filter chain) to the protected
process() method
to perform the actual filtering. |
getAllow, getDeny, precalculate, process, processCometEvent, setAllow, setDeny
destroy, init
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws java.io.IOException, ServletException
process()
method to perform the actual
filtering.doFilter
in class RequestFilter
request
- The servlet request to be processedresponse
- The servlet response to be createdchain
- The filter chain for this requestjava.io.IOException
- if an input/output error occursServletException
- if a servlet error occurspublic void doFilterEvent(HttpEvent event, HttpEventFilterChain chain) throws java.io.IOException, ServletException
process()
method
to perform the actual filtering.event
- The comet event to be processedchain
- The filter chain for this eventjava.io.IOException
- if an input/output error occursServletException
- if a servlet error occurs