Package io.milton.http.json
Class JsonResourceFactory
java.lang.Object
io.milton.http.json.JsonResourceFactory
- All Implemented Interfaces:
ResourceFactory
-
Constructor Summary
ConstructorsConstructorDescriptionJsonResourceFactory(ResourceFactory wrapped, EventManager eventManager, JsonPropFindHandler propFindHandler, JsonPropPatchHandler propPatchHandler) -
Method Summary
Modifier and TypeMethodDescriptiongetResource(String host, String sPath) voidsetContentTypes(List<String> contentTypes) voidsetMaxAgeSecsPropFind(Long maxAgeSecsPropFind) wrapResource(String host, Resource wrappedResource, String method, String href)
-
Constructor Details
-
JsonResourceFactory
public JsonResourceFactory(ResourceFactory wrapped, EventManager eventManager, JsonPropFindHandler propFindHandler, JsonPropPatchHandler propPatchHandler)
-
-
Method Details
-
getResource
public Resource getResource(String host, String sPath) throws NotAuthorizedException, BadRequestException - Specified by:
getResourcein interfaceResourceFactory- Throws:
NotAuthorizedExceptionBadRequestException
-
wrapResource
-
getPropFindHandler
-
getPropPatchHandler
-
getEventManager
-
getMaxAgeSecsPropFind
-
setMaxAgeSecsPropFind
-
getContentTypes
-
setContentTypes
-