Package org.mapfish.print.servlet
Class RequestSizeFilter
java.lang.Object
org.mapfish.print.servlet.RequestSizeFilter
- All Implemented Interfaces:
jakarta.servlet.Filter
Filter which checks the content size of requests.
This is to avoid that the server is flooded with overly huge requests.
You can tune this filter by setting the mapfish.maxContentLength (bytes) system property before starting the JVM.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
RequestSizeFilter
public RequestSizeFilter()
-
-
Method Details
-
doFilter
public final void doFilter(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain) throws IOException, jakarta.servlet.ServletException - Specified by:
doFilterin interfacejakarta.servlet.Filter- Throws:
IOExceptionjakarta.servlet.ServletException
-
init
public final void init(jakarta.servlet.FilterConfig config) - Specified by:
initin interfacejakarta.servlet.Filter
-
destroy
public void destroy()- Specified by:
destroyin interfacejakarta.servlet.Filter
-