Class PutFilter

  • All Implemented Interfaces:
    javax.servlet.Filter

    @Deprecated
    public class PutFilter
    extends java.lang.Object
    implements javax.servlet.Filter
    Deprecated.
    PutFilter A Filter that handles PUT, DELETE and MOVE methods. Files are hidden during PUT operations, so that 404's result. The following init parameters pay be used:
    • baseURI - The file URI of the document root for put content.
    • delAllowed - boolean, if true DELETE and MOVE methods are supported.
    • putAtomic - boolean, if true PUT files are written to a temp location and moved into place.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String __DELETE
      Deprecated.
       
      static java.lang.String __MOVE
      Deprecated.
       
      static java.lang.String __OPTIONS
      Deprecated.
       
      static java.lang.String __PUT
      Deprecated.
       
      private java.lang.String _baseURI
      Deprecated.
       
      private javax.servlet.ServletContext _context
      Deprecated.
       
      private boolean _delAllowed
      Deprecated.
       
      private java.util.concurrent.ConcurrentMap<java.lang.String,​java.lang.String> _hidden
      Deprecated.
       
      (package private) java.util.Set<java.lang.String> _operations
      Deprecated.
       
      private boolean _putAtomic
      Deprecated.
       
      private java.io.File _tmpdir
      Deprecated.
       
    • Constructor Summary

      Constructors 
      Constructor Description
      PutFilter()
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void destroy()
      Deprecated.
       
      void doFilter​(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res, javax.servlet.FilterChain chain)
      Deprecated.
       
      private boolean getInitBoolean​(javax.servlet.FilterConfig config, java.lang.String name)
      Deprecated.
       
      void handleDelete​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String pathInContext, java.io.File file)
      Deprecated.
       
      void handleMove​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String pathInContext, java.io.File file)
      Deprecated.
       
      void handleOptions​(javax.servlet.FilterChain chain, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Deprecated.
       
      void handlePut​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String pathInContext, java.io.File file)
      Deprecated.
       
      void init​(javax.servlet.FilterConfig config)
      Deprecated.
       
      private boolean isHidden​(java.lang.String pathInContext)
      Deprecated.
       
      protected boolean passConditionalHeaders​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.io.File file)
      Deprecated.
       
      • Methods inherited from class java.lang.Object

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

      • _operations

        java.util.Set<java.lang.String> _operations
        Deprecated.
      • _hidden

        private java.util.concurrent.ConcurrentMap<java.lang.String,​java.lang.String> _hidden
        Deprecated.
      • _context

        private javax.servlet.ServletContext _context
        Deprecated.
      • _baseURI

        private java.lang.String _baseURI
        Deprecated.
      • _delAllowed

        private boolean _delAllowed
        Deprecated.
      • _putAtomic

        private boolean _putAtomic
        Deprecated.
      • _tmpdir

        private java.io.File _tmpdir
        Deprecated.
    • Constructor Detail

      • PutFilter

        public PutFilter()
        Deprecated.
    • Method Detail

      • init

        public void init​(javax.servlet.FilterConfig config)
                  throws javax.servlet.ServletException
        Deprecated.
        Specified by:
        init in interface javax.servlet.Filter
        Throws:
        javax.servlet.ServletException
      • getInitBoolean

        private boolean getInitBoolean​(javax.servlet.FilterConfig config,
                                       java.lang.String name)
        Deprecated.
      • doFilter

        public void doFilter​(javax.servlet.ServletRequest req,
                             javax.servlet.ServletResponse res,
                             javax.servlet.FilterChain chain)
                      throws java.io.IOException,
                             javax.servlet.ServletException
        Deprecated.
        Specified by:
        doFilter in interface javax.servlet.Filter
        Throws:
        java.io.IOException
        javax.servlet.ServletException
      • isHidden

        private boolean isHidden​(java.lang.String pathInContext)
        Deprecated.
      • destroy

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

        public void handlePut​(javax.servlet.http.HttpServletRequest request,
                              javax.servlet.http.HttpServletResponse response,
                              java.lang.String pathInContext,
                              java.io.File file)
                       throws javax.servlet.ServletException,
                              java.io.IOException
        Deprecated.
        Throws:
        javax.servlet.ServletException
        java.io.IOException
      • handleDelete

        public void handleDelete​(javax.servlet.http.HttpServletRequest request,
                                 javax.servlet.http.HttpServletResponse response,
                                 java.lang.String pathInContext,
                                 java.io.File file)
                          throws javax.servlet.ServletException,
                                 java.io.IOException
        Deprecated.
        Throws:
        javax.servlet.ServletException
        java.io.IOException
      • handleMove

        public void handleMove​(javax.servlet.http.HttpServletRequest request,
                               javax.servlet.http.HttpServletResponse response,
                               java.lang.String pathInContext,
                               java.io.File file)
                        throws javax.servlet.ServletException,
                               java.io.IOException,
                               java.net.URISyntaxException
        Deprecated.
        Throws:
        javax.servlet.ServletException
        java.io.IOException
        java.net.URISyntaxException
      • handleOptions

        public void handleOptions​(javax.servlet.FilterChain chain,
                                  javax.servlet.http.HttpServletRequest request,
                                  javax.servlet.http.HttpServletResponse response)
                           throws java.io.IOException,
                                  javax.servlet.ServletException
        Deprecated.
        Throws:
        java.io.IOException
        javax.servlet.ServletException
      • passConditionalHeaders

        protected boolean passConditionalHeaders​(javax.servlet.http.HttpServletRequest request,
                                                 javax.servlet.http.HttpServletResponse response,
                                                 java.io.File file)
                                          throws java.io.IOException
        Deprecated.
        Throws:
        java.io.IOException