Class ParseBlobUploadFilter

  • All Implemented Interfaces:
    javax.servlet.Filter

    public class ParseBlobUploadFilter
    extends Object
    implements javax.servlet.Filter
    ParseBlobUploadFilter is responsible for the parsing multipart/form-data or multipart/mixed requests used to make Blob upload callbacks, and storing a set of string-encoded blob keys as a servlet request attribute. This allows the BlobstoreService.getUploadedBlobs() method to return the appropriate BlobKey objects.

    This filter automatically runs on all dynamic requests in the production environment. In the DevAppServer, the equivalent work is subsumed by UploadBlobServlet.

    • Constructor Detail

      • ParseBlobUploadFilter

        public ParseBlobUploadFilter()
    • Method Detail

      • init

        public 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
      • doFilter

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