Package io.milton.http
Class WellKnownResourceFactory
java.lang.Object
io.milton.http.WellKnownResourceFactory
- All Implemented Interfaces:
ResourceFactory
Used the decorator pattern to add support for .wellknown paths to a custom
resource factory.
By integrating this into your application it will "overlay" some additional
synthetic resources (ie url's) on your application
This is required for iCal5+ support for caldav
http://tools.ietf.org/html/draft-daboo-srv-caldav-10#page-5
http://tools.ietf.org/html/rfc5785
http://hueniverse.com/2010/04/rfc-5785-defining-well-known-uris/
- Author:
- brad
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceLocates a resource for a .well-known/XXX path -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidgetResource(String host, String sPath) voidsetWellKnownHandlers(List<WellKnownResourceFactory.WellKnownHandler> wellKnownHandlers)
-
Field Details
-
URI_PREFIX
- See Also:
-
-
Constructor Details
-
WellKnownResourceFactory
-
-
Method Details
-
setWellKnownHandlers
-
getWellKnownHandlers
-
getResource
public Resource getResource(String host, String sPath) throws NotAuthorizedException, BadRequestException - Specified by:
getResourcein interfaceResourceFactory- Throws:
NotAuthorizedExceptionBadRequestException
-
addHandler
-