com.bradmcevoy.http.webdav
Class MkColHandler

java.lang.Object
  extended by com.bradmcevoy.http.webdav.MkColHandler
All Implemented Interfaces:
Handler

public class MkColHandler
extends java.lang.Object
implements Handler


Nested Class Summary
static interface MkColHandler.CollectionResourceCreator
           
 
Constructor Summary
MkColHandler(WebDavResponseHandler responseHandler, HandlerHelper handlerHelper)
           
 
Method Summary
 java.lang.String[] getMethods()
           
 boolean isCompatible(Resource handler)
           
 void process(HttpManager manager, Request request, Response response)
           
 void process(HttpManager manager, Request request, Response response, MkColHandler.CollectionResourceCreator creator)
           
protected  void processMakeCol(HttpManager manager, Request request, Response response, CollectionResource resource, java.lang.String newName, MkColHandler.CollectionResourceCreator creator)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MkColHandler

public MkColHandler(WebDavResponseHandler responseHandler,
                    HandlerHelper handlerHelper)
Method Detail

getMethods

public java.lang.String[] getMethods()
Specified by:
getMethods in interface Handler
Returns:
- the http methods supported by this handler. Must be all upper case.

isCompatible

public boolean isCompatible(Resource handler)
Specified by:
isCompatible in interface Handler
Returns:
- true if the given resource is compatible with this method

process

public void process(HttpManager manager,
                    Request request,
                    Response response)
             throws ConflictException,
                    NotAuthorizedException,
                    BadRequestException
Specified by:
process in interface Handler
Throws:
ConflictException
NotAuthorizedException
BadRequestException

process

public void process(HttpManager manager,
                    Request request,
                    Response response,
                    MkColHandler.CollectionResourceCreator creator)
             throws ConflictException,
                    NotAuthorizedException,
                    BadRequestException,
                    java.io.IOException
Throws:
ConflictException
NotAuthorizedException
BadRequestException
java.io.IOException

processMakeCol

protected void processMakeCol(HttpManager manager,
                              Request request,
                              Response response,
                              CollectionResource resource,
                              java.lang.String newName,
                              MkColHandler.CollectionResourceCreator creator)
                       throws ConflictException,
                              NotAuthorizedException,
                              BadRequestException,
                              java.io.IOException
Throws:
ConflictException
NotAuthorizedException
BadRequestException
java.io.IOException


Copyright © 2011. All Rights Reserved.