org.mortbay.servlet
public class PutFilter extends java.lang.Object implements Filter
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
__DELETE |
static java.lang.String |
__MOVE |
static java.lang.String |
__OPTIONS |
static java.lang.String |
__PUT |
protected java.lang.String |
_baseURI |
protected ServletContext |
_context |
protected boolean |
_delAllowed |
protected java.util.concurrent.ConcurrentMap |
_hidden |
Constructor and Description |
---|
PutFilter() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
void |
doFilter(ServletRequest req,
ServletResponse res,
FilterChain chain) |
void |
handleDelete(HttpServletRequest request,
HttpServletResponse response,
java.lang.String pathInContext,
java.io.File file) |
void |
handleMove(HttpServletRequest request,
HttpServletResponse response,
java.lang.String pathInContext,
java.io.File file) |
void |
handleOptions(HttpServletRequest request,
HttpServletResponse response) |
void |
handlePut(HttpServletRequest request,
HttpServletResponse response,
java.lang.String pathInContext,
java.io.File file) |
void |
init(FilterConfig config) |
protected boolean |
passConditionalHeaders(HttpServletRequest request,
HttpServletResponse response,
java.io.File file) |
public static final java.lang.String __PUT
public static final java.lang.String __DELETE
public static final java.lang.String __MOVE
public static final java.lang.String __OPTIONS
protected java.util.concurrent.ConcurrentMap _hidden
protected ServletContext _context
protected java.lang.String _baseURI
protected boolean _delAllowed
public void init(FilterConfig config) throws ServletException
init
in interface Filter
ServletException
public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws java.io.IOException, ServletException
doFilter
in interface Filter
java.io.IOException
ServletException
public void handlePut(HttpServletRequest request, HttpServletResponse response, java.lang.String pathInContext, java.io.File file) throws ServletException, java.io.IOException
ServletException
java.io.IOException
public void handleDelete(HttpServletRequest request, HttpServletResponse response, java.lang.String pathInContext, java.io.File file) throws ServletException, java.io.IOException
ServletException
java.io.IOException
public void handleMove(HttpServletRequest request, HttpServletResponse response, java.lang.String pathInContext, java.io.File file) throws ServletException, java.io.IOException, java.net.URISyntaxException
ServletException
java.io.IOException
java.net.URISyntaxException
public void handleOptions(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException
java.io.IOException
protected boolean passConditionalHeaders(HttpServletRequest request, HttpServletResponse response, java.io.File file) throws java.io.IOException
java.io.IOException
Copyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.