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 |
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(FilterChain chain,
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
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(FilterChain chain, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
IOException
ServletException
protected boolean passConditionalHeaders(HttpServletRequest request, HttpServletResponse response, File file) throws IOException
IOException
Copyright © 1995-2015 Webtide. All Rights Reserved.