Class FileUploadFilter

    • Constructor Detail

      • FileUploadFilter

        public FileUploadFilter()
        Deprecated.
    • Method Detail

      • init

        public void init()
                  throws javax.servlet.ServletException
        Deprecated.
        This method is called by the server before the filter goes into service, and here it determines the file upload directory.
        Overrides:
        init in class GenericFilter
        Throws:
        javax.servlet.ServletException
        See Also:
        GenericFilter.init(FilterConfig)
      • setMaxFileSize

        public void setMaxFileSize​(long pMaxSize)
        Deprecated.
        Sets max filesize allowed for upload.
        Parameters:
        pMaxSize -
      • doFilterImpl

        public void doFilterImpl​(javax.servlet.ServletRequest pRequest,
                                 javax.servlet.ServletResponse pResponse,
                                 javax.servlet.FilterChain pChain)
                          throws java.io.IOException,
                                 javax.servlet.ServletException
        Deprecated.
        Examines the request content type, and if it is a multipart/* request, wraps the request with a HttpFileUploadRequest.
        Specified by:
        doFilterImpl in class GenericFilter
        Parameters:
        pRequest - The servlet request
        pResponse - The servlet response
        pChain - The filter chain
        Throws:
        javax.servlet.ServletException
        java.io.IOException
        See Also:
        GenericFilter.oncePerRequest, doFilter, Filter.doFilter