Class RequestSizeFilter

  • All Implemented Interfaces:
    javax.servlet.Filter

    public class RequestSizeFilter
    extends java.lang.Object
    implements javax.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.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void destroy()  
      void doFilter​(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)  
      void init​(javax.servlet.FilterConfig config)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RequestSizeFilter

        public RequestSizeFilter()
    • Method Detail

      • doFilter

        public final void doFilter​(javax.servlet.ServletRequest request,
                                   javax.servlet.ServletResponse response,
                                   javax.servlet.FilterChain chain)
                            throws java.io.IOException,
                                   javax.servlet.ServletException
        Specified by:
        doFilter in interface javax.servlet.Filter
        Throws:
        java.io.IOException
        javax.servlet.ServletException
      • init

        public final void init​(javax.servlet.FilterConfig config)
        Specified by:
        init in interface javax.servlet.Filter
      • destroy

        public void destroy()
        Specified by:
        destroy in interface javax.servlet.Filter