smbdav
Class DefaultLockHandler

java.lang.Object
  extended bysmbdav.AbstractHandler
      extended bysmbdav.DefaultLockHandler
All Implemented Interfaces:
MethodHandler

public class DefaultLockHandler
extends AbstractHandler

Default implementation of a handler for requests using the WebDAV LOCK method.

Author:
Eric Glass

Field Summary
 
Fields inherited from interface smbdav.MethodHandler
SC_FAILED_DEPENDENCY, SC_INSUFFICIENT_STORAGE, SC_LOCKED, SC_MULTISTATUS, SC_PROCESSING, SC_UNPROCESSABLE_ENTITY
 
Constructor Summary
DefaultLockHandler()
           
 
Method Summary
 void init(javax.servlet.ServletConfig config)
          Initializes the method handler.
 void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, jcifs.smb.NtlmPasswordAuthentication auth)
          Services requests which use the WebDAV LOCK method.
 
Methods inherited from class smbdav.AbstractHandler
checkConditionalRequest, checkLockOwnership, createSmbFile, destroy, getFilter, getLockManager, getPrincipal, getRequestURICharset, getRequestURL, getServletConfig, getSmbFile, getSmbURL, getSmbURL, rewriteURL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultLockHandler

public DefaultLockHandler()
Method Detail

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
Description copied from class: AbstractHandler
Initializes the method handler. This implementation stores the provided ServletConfig object and makes it available via the getServletConfig method. Subclasses overriding this method should start by invoking

super.init(config);

Specified by:
init in interface MethodHandler
Overrides:
init in class AbstractHandler
Parameters:
config - a ServletConfig object containing the servlet's configuration and initialization parameters.
Throws:
javax.servlet.ServletException - If an error occurs during initialization.

service

public void service(javax.servlet.http.HttpServletRequest request,
                    javax.servlet.http.HttpServletResponse response,
                    jcifs.smb.NtlmPasswordAuthentication auth)
             throws javax.servlet.ServletException,
                    java.io.IOException
Services requests which use the WebDAV LOCK method.

Specified by:
service in interface MethodHandler
Specified by:
service in class AbstractHandler
Parameters:
request - The request being serviced.
response - The servlet response.
auth - The user's authentication information.
Throws:
javax.servlet.ServletException - If an application error occurs.
java.io.IOException - If an IO error occurs while handling the request.


Copyright © 2004 Eric Glass