Class PutFilter
java.lang.Object
org.eclipse.jetty.servlets.PutFilter
- All Implemented Interfaces:
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
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.private StringDeprecated.private javax.servlet.ServletContextDeprecated.private booleanDeprecated.private ConcurrentMap<String, String> Deprecated.Deprecated.private booleanDeprecated.private FileDeprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Deprecated.voiddoFilter(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res, javax.servlet.FilterChain chain) Deprecated.private booleangetInitBoolean(javax.servlet.FilterConfig config, String name) Deprecated.voidhandleDelete(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String pathInContext, File file) Deprecated.voidhandleMove(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String pathInContext, File file) Deprecated.voidhandleOptions(javax.servlet.FilterChain chain, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Deprecated.voidhandlePut(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String pathInContext, File file) Deprecated.voidinit(javax.servlet.FilterConfig config) Deprecated.private booleanDeprecated.protected booleanpassConditionalHeaders(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, File file) Deprecated.
-
Field Details
-
__PUT
-
__DELETE
-
__MOVE
-
__OPTIONS
-
_operations
-
_context
private javax.servlet.ServletContext _contextDeprecated. -
_baseURI
Deprecated. -
_delAllowed
private boolean _delAllowedDeprecated. -
_putAtomic
private boolean _putAtomicDeprecated. -
_tmpdir
Deprecated.
-
-
Constructor Details
-
PutFilter
public PutFilter()Deprecated.
-
-
Method Details
-
init
public void init(javax.servlet.FilterConfig config) throws javax.servlet.ServletException Deprecated.- Specified by:
initin interfacejavax.servlet.Filter- Throws:
javax.servlet.ServletException
-
getInitBoolean
Deprecated. -
doFilter
public void doFilter(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException Deprecated.- Specified by:
doFilterin interfacejavax.servlet.Filter- Throws:
IOExceptionjavax.servlet.ServletException
-
isHidden
Deprecated. -
destroy
public void destroy()Deprecated.- Specified by:
destroyin interfacejavax.servlet.Filter
-
handlePut
public void handlePut(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String pathInContext, File file) throws javax.servlet.ServletException, IOException Deprecated.- Throws:
javax.servlet.ServletExceptionIOException
-
handleDelete
public void handleDelete(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String pathInContext, File file) throws javax.servlet.ServletException, IOException Deprecated.- Throws:
javax.servlet.ServletExceptionIOException
-
handleMove
public void handleMove(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String pathInContext, File file) throws javax.servlet.ServletException, IOException, URISyntaxException Deprecated.- Throws:
javax.servlet.ServletExceptionIOExceptionURISyntaxException
-
handleOptions
public void handleOptions(javax.servlet.FilterChain chain, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException Deprecated.- Throws:
IOExceptionjavax.servlet.ServletException
-
passConditionalHeaders
protected boolean passConditionalHeaders(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, File file) throws IOException Deprecated.- Throws:
IOException
-