01: /**
02: *
03: */package org.enhydra.dm.handler;
04:
05: import java.io.IOException;
06:
07: import javax.servlet.ServletException;
08: import javax.servlet.http.HttpServletRequest;
09: import javax.servlet.http.HttpServletResponse;
10:
11: import org.enhydra.dm.api.handler.AbstractHandler;
12: import org.enhydra.dm.util.EnhydraDMConstants;
13:
14: public class DefaultProppatchHandler extends AbstractHandler {
15:
16: /**
17: * THIS HANDLER CURRENTLY NOT IN USE! <br>
18: * Services requests which use the WebDAV PROPPATCH method.
19: *
20: * @param request The request being serviced.
21: * @param response The servlet response.
22: * @throws SerlvetException If an application error occurs.
23: * @throws IOException If an IO error occurs while handling the request.
24: */
25:
26: public void service(HttpServletRequest request,
27: HttpServletResponse response) throws ServletException,
28: IOException {
29: /*
30: * NOTE: This is dummy implementation that introduces only the list of possible
31: * response statuses.
32: */
33: response.setHeader(EnhydraDMConstants.HEAD_ALLOW,
34: getAllowedMethods());
35: }
36:
37: }
|