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:
13: public class DefaultDeleteHandler extends AbstractHandler {
14:
15: /**
16: * THIS HANDLER CURRENTLY NOT IN USE! <br>
17: * Services requests which use the HTTP DELETE method.
18: *
19: * @param request The request being serviced.
20: * @param response The servlet response.
21: * @throws ServletException If an application error occurs.
22: * @throws IOException If an IO error occurs while handling the request.
23: */
24:
25: public void service(HttpServletRequest request,
26: HttpServletResponse response) throws ServletException,
27: IOException {
28: /*
29: * NOTE: This is dummy implementation that introduces only the list of possible
30: * response statuses.
31: */
32: response.setStatus(HttpServletResponse.SC_NOT_FOUND);
33: response.setStatus(HttpServletResponse.SC_OK);
34: response.flushBuffer();
35: }
36:
37: }
|