public class PutFilter extends Object implements Filter
Modifier and Type | Field and Description |
---|---|
static String |
__DELETE |
static String |
__MOVE |
static String |
__OPTIONS |
static String |
__PUT |
protected String |
_baseURI |
protected ServletContext |
_context |
protected boolean |
_delAllowed |
protected 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,
String pathInContext,
File file) |
void |
handleMove(HttpServletRequest request,
HttpServletResponse response,
String pathInContext,
File file) |
void |
handleOptions(HttpServletRequest request,
HttpServletResponse response) |
void |
handlePut(HttpServletRequest request,
HttpServletResponse response,
String pathInContext,
File file) |
void |
init(FilterConfig config) |
protected boolean |
passConditionalHeaders(HttpServletRequest request,
HttpServletResponse response,
File file) |
public static final String __PUT
public static final String __DELETE
public static final String __MOVE
public static final String __OPTIONS
protected ConcurrentMap _hidden
protected ServletContext _context
protected 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 IOException, ServletException
doFilter
in interface Filter
IOException
ServletException
public void handlePut(HttpServletRequest request, HttpServletResponse response, String pathInContext, File file) throws ServletException, IOException
ServletException
IOException
public void handleDelete(HttpServletRequest request, HttpServletResponse response, String pathInContext, File file) throws ServletException, IOException
ServletException
IOException
public void handleMove(HttpServletRequest request, HttpServletResponse response, String pathInContext, File file) throws ServletException, IOException, URISyntaxException
public void handleOptions(HttpServletRequest request, HttpServletResponse response) throws IOException
IOException
protected boolean passConditionalHeaders(HttpServletRequest request, HttpServletResponse response, File file) throws IOException
IOException
Copyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.