Class PutFilter

java.lang.Object
org.eclipse.jetty.servlets.PutFilter
All Implemented Interfaces:
jakarta.servlet.Filter

@Deprecated public class PutFilter extends Object implements jakarta.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 final String
    Deprecated.
     
    static final String
    Deprecated.
     
    static final String
    Deprecated.
     
    static final String
    Deprecated.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Deprecated.
     
    void
    doFilter(jakarta.servlet.ServletRequest req, jakarta.servlet.ServletResponse res, jakarta.servlet.FilterChain chain)
    Deprecated.
     
    void
    handleDelete(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String pathInContext, File file)
    Deprecated.
     
    void
    handleMove(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String pathInContext, File file)
    Deprecated.
     
    void
    handleOptions(jakarta.servlet.FilterChain chain, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
    Deprecated.
     
    void
    handlePut(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String pathInContext, File file)
    Deprecated.
     
    void
    init(jakarta.servlet.FilterConfig config)
    Deprecated.
     
    protected boolean
    passConditionalHeaders(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, File file)
    Deprecated.
     

    Methods inherited from class java.lang.Object

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

  • Constructor Details

    • PutFilter

      public PutFilter()
      Deprecated.
  • Method Details

    • init

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

      public void doFilter(jakarta.servlet.ServletRequest req, jakarta.servlet.ServletResponse res, jakarta.servlet.FilterChain chain) throws IOException, jakarta.servlet.ServletException
      Deprecated.
      Specified by:
      doFilter in interface jakarta.servlet.Filter
      Throws:
      IOException
      jakarta.servlet.ServletException
    • destroy

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

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

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

      public void handleMove(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String pathInContext, File file) throws jakarta.servlet.ServletException, IOException, URISyntaxException
      Deprecated.
      Throws:
      jakarta.servlet.ServletException
      IOException
      URISyntaxException
    • handleOptions

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

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