public class OptionsHandler extends Object implements ResourceHandler
| Constructor and Description |
|---|
OptionsHandler(Http11ResponseHandler responseHandler,
ResourceHandlerHelper resourceHandlerHelper,
HandlerHelper handlerHelper,
boolean enableAuthorisation)
Creates an OptionHandler with no authorization
|
| Modifier and Type | Method and Description |
|---|---|
String[] |
getMethods() |
boolean |
isCompatible(Resource handler) |
boolean |
isEnableAuthorisation() |
void |
process(HttpManager manager,
Request request,
Response response) |
void |
processResource(HttpManager manager,
Request request,
Response response,
Resource resource) |
void |
setEnableAuthorisation(boolean enableAuthorisation) |
public OptionsHandler(Http11ResponseHandler responseHandler, ResourceHandlerHelper resourceHandlerHelper, HandlerHelper handlerHelper, boolean enableAuthorisation)
responseHandler - resourceHandlerHelper - handlerHelper - enableAuthorisation - public void process(HttpManager manager, Request request, Response response) throws NotAuthorizedException, ConflictException, BadRequestException
process in interface HandlerNotAuthorizedExceptionConflictExceptionBadRequestExceptionpublic void processResource(HttpManager manager, Request request, Response response, Resource resource) throws NotAuthorizedException, ConflictException, BadRequestException
processResource in interface ResourceHandlerNotAuthorizedExceptionConflictExceptionBadRequestExceptionpublic String[] getMethods()
getMethods in interface Handlerpublic boolean isCompatible(Resource handler)
isCompatible in interface Handlerpublic boolean isEnableAuthorisation()
public void setEnableAuthorisation(boolean enableAuthorisation)
Copyright © 2021 McEvoy Software Ltd. All rights reserved.