| org.enhydra.dm.api.handler.MethodHandler
All known Subclasses: org.enhydra.dm.api.handler.AbstractHandler,
MethodHandler | public interface MethodHandler (Code) | | author: Slobodan Vujasinovic |
Field Summary | |
final public static int | SC_FAILED_DEPENDENCY Status code (424) indicating that the method could not be performed because an
action upon which this action depends failed. | final public static int | SC_INSUFFICIENT_STORAGE Status code (507) indicating that the method could not be performed on a resource
because the server is unable to store the representation needed to successfully
complete the request. | final public static int | SC_LOCKED Status code (423) indicating that the source or destination resource of a method is
locked. | final public static int | SC_MULTISTATUS Status code (207) providing status for multiple independent operations. | final public static int | SC_PROCESSING Interim status code (102) indicating that the server has accepted the request but
has not yet completed it. | final public static int | SC_UNPROCESSABLE_ENTITY Status code (422) indicating that the server understands the content type of the
request entity, and the syntax of the request entity is correct, but the contained
instructions could not be processed. |
SC_FAILED_DEPENDENCY | final public static int SC_FAILED_DEPENDENCY(Code) | | Status code (424) indicating that the method could not be performed because an
action upon which this action depends failed.
|
SC_INSUFFICIENT_STORAGE | final public static int SC_INSUFFICIENT_STORAGE(Code) | | Status code (507) indicating that the method could not be performed on a resource
because the server is unable to store the representation needed to successfully
complete the request.
|
SC_LOCKED | final public static int SC_LOCKED(Code) | | Status code (423) indicating that the source or destination resource of a method is
locked.
|
SC_MULTISTATUS | final public static int SC_MULTISTATUS(Code) | | Status code (207) providing status for multiple independent operations.
|
SC_PROCESSING | final public static int SC_PROCESSING(Code) | | Interim status code (102) indicating that the server has accepted the request but
has not yet completed it.
|
SC_UNPROCESSABLE_ENTITY | final public static int SC_UNPROCESSABLE_ENTITY(Code) | | Status code (422) indicating that the server understands the content type of the
request entity, and the syntax of the request entity is correct, but the contained
instructions could not be processed.
|
destroy | public void destroy()(Code) | | Called by the WebDavServlet servlet to indicate that the handler is being taken out
of service. Semantics are identical to the Servlet destroy
method. This method gives the handler an opportunity to clean up any resources that
are being held. After this method has been called, the service method
will not be invoked again.
|
init | public void init(ServletConfig config, DocumentManager documentManager, DocumentStore documentStore, DesEncription desEncription, Log logger) throws ServletException(Code) | | Called by the WebDavServlet servlet to indicate that the handler is being placed
into service. Semantics are identical to the Servlet
init
method; the method is called exactly once after instantiation.
Parameters: config - a ServletConfig object containing the Davenportservlet's configuration and initialization parameters. throws: ServletException - If an error occurs during initialization. |
service | public void service(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException(Code) | | Called by the WebDavServlet servlet to allow the handler to service a request. The
WebDavServlet servlet will select an appropriate handler for a given HTTP method, and
dispatch the request accordingly.
Parameters: request - The request that is being serviced. Parameters: response - The servlet response object. throws: IOException - If an input or output exception occurs. throws: ServletException - If an exception occurs that interferes with normaloperation. |
|
|