public class DosGuardFilter extends Object implements javax.servlet.Filter
Constructor and Description |
---|
DosGuardFilter() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain) |
void |
init(javax.servlet.FilterConfig config) |
boolean |
isAllowed(String strRemoteAddr,
int iContentLength)
Checks if a client is allowed to make a request at the present time.
|
public void init(javax.servlet.FilterConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
javax.servlet.ServletException
public void destroy()
destroy
in interface javax.servlet.Filter
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
doFilter
in interface javax.servlet.Filter
IOException
javax.servlet.ServletException
public boolean isAllowed(String strRemoteAddr, int iContentLength)
strRemoteAddr
- the IP address of the clientiContentLength
- the size of the requestCopyright © 2020 City of Paris. All rights reserved.