com.bradmcevoy.http.http11
Class PutHandler
java.lang.Object
com.bradmcevoy.http.http11.PutHandler
- All Implemented Interfaces:
- Handler
public class PutHandler
- extends java.lang.Object
- implements Handler
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PutHandler
public PutHandler(Http11ResponseHandler responseHandler,
HandlerHelper handlerHelper)
PutHandler
public PutHandler(Http11ResponseHandler responseHandler,
HandlerHelper handlerHelper,
PutHelper putHelper)
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 NotAuthorizedException,
ConflictException,
BadRequestException
- Specified by:
process in interface Handler
- Throws:
NotAuthorizedException
ConflictException
BadRequestException
processExistingResource
public void processExistingResource(HttpManager manager,
Request request,
Response response,
Resource resource)
throws NotAuthorizedException,
BadRequestException,
ConflictException
- Throws:
NotAuthorizedException
BadRequestException
ConflictException
Copyright © 2011. All Rights Reserved.