|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bradmcevoy.http.http11.OptionsHandler
public class OptionsHandler
Support the OPTIONS http method. Note that windows 7 appears to require un-authenticated access to OPTIONS requests, so this handler now supports configurable selection of allowing un-authenticated access.
| Constructor Summary | |
|---|---|
OptionsHandler(Http11ResponseHandler responseHandler)
Creates an OptionHandler with no authorisation |
|
OptionsHandler(Http11ResponseHandler responseHandler,
HandlerHelper handlerHelper)
Creates an OptionHandler with no authorisation Note that the handlerHelper is redundant, but this constructor is kept for backwards compatibility |
|
OptionsHandler(Http11ResponseHandler responseHandler,
HandlerHelper handlerHelper,
boolean enableAuthorisation)
Allows the choice of enabling authorisation. |
|
| Method Summary | |
|---|---|
java.lang.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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OptionsHandler(Http11ResponseHandler responseHandler)
responseHandler -
public OptionsHandler(Http11ResponseHandler responseHandler,
HandlerHelper handlerHelper)
responseHandler -
public OptionsHandler(Http11ResponseHandler responseHandler,
HandlerHelper handlerHelper,
boolean enableAuthorisation)
responseHandler - handlerHelper - - redundant if enableAuthorisation is falseenableAuthorisation - - if false OPTIONS requests will never request authentication| Method Detail |
|---|
public void process(HttpManager manager,
Request request,
Response response)
throws NotAuthorizedException,
ConflictException,
BadRequestException
process in interface HandlerNotAuthorizedException
ConflictException
BadRequestException
public void processResource(HttpManager manager,
Request request,
Response response,
Resource resource)
throws NotAuthorizedException,
ConflictException,
BadRequestException
processResource in interface ResourceHandlerNotAuthorizedException
ConflictException
BadRequestExceptionpublic java.lang.String[] getMethods()
getMethods in interface Handlerpublic boolean isCompatible(Resource handler)
isCompatible in interface Handlerpublic boolean isEnableAuthorisation()
public void setEnableAuthorisation(boolean enableAuthorisation)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||