java.lang.Object
org.eclipse.jetty.servlets.PutFilter
- All Implemented Interfaces:
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Deprecated.voiddoFilter(jakarta.servlet.ServletRequest req, jakarta.servlet.ServletResponse res, jakarta.servlet.FilterChain chain) Deprecated.voidhandleDelete(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String pathInContext, File file) Deprecated.voidhandleMove(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String pathInContext, File file) Deprecated.voidhandleOptions(jakarta.servlet.FilterChain chain, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Deprecated.voidhandlePut(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String pathInContext, File file) Deprecated.voidinit(jakarta.servlet.FilterConfig config) Deprecated.protected booleanpassConditionalHeaders(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, File file) Deprecated.
-
Field Details
-
__PUT
Deprecated.- See Also:
-
__DELETE
Deprecated.- See Also:
-
__MOVE
Deprecated.- See Also:
-
__OPTIONS
Deprecated.- See Also:
-
-
Constructor Details
-
PutFilter
public PutFilter()Deprecated.
-
-
Method Details
-
init
public void init(jakarta.servlet.FilterConfig config) throws jakarta.servlet.ServletException Deprecated.- Specified by:
initin interfacejakarta.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:
doFilterin interfacejakarta.servlet.Filter- Throws:
IOExceptionjakarta.servlet.ServletException
-
destroy
public void destroy()Deprecated.- Specified by:
destroyin interfacejakarta.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.ServletExceptionIOException
-
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.ServletExceptionIOException
-
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.ServletExceptionIOExceptionURISyntaxException
-
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:
IOExceptionjakarta.servlet.ServletException
-
passConditionalHeaders
protected boolean passConditionalHeaders(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, File file) throws IOException Deprecated.- Throws:
IOException
-