Package io.milton.http.json
Class PropFindJsonResource
java.lang.Object
io.milton.http.json.JsonResource
io.milton.http.json.PropFindJsonResource
- All Implemented Interfaces:
DigestResource,GetableResource,Resource
-
Field Summary
Fields inherited from class io.milton.http.json.JsonResource
CONTENT_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionPropFindJsonResource(PropFindableResource wrappedResource, JsonPropFindHandler jsonPropFindHandler, String encodedUrl, Long maxAgeSecs) -
Method Summary
Modifier and TypeMethodDescriptiongetMaxAgeSeconds(Auth auth) Overridden to allow clients to specifiy the max age as a request parameter This is to allow efficient browser caching of results in cases that need it, while also permitting non-cached accessvoidsendContent(OutputStream out, Range range, Map<String, String> params, String contentType) Methods inherited from class io.milton.http.json.JsonResource
authenticate, authenticate, authorise, checkRedirect, getContentLength, getContentType, getModifiedDate, getName, getRealm, getUniqueId, getWrappedResource, isDigestAllowedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.milton.resource.GetableResource
getContentLength, getContentTypeMethods inherited from interface io.milton.resource.Resource
authenticate, authorise, checkRedirect, getModifiedDate, getName, getRealm, getUniqueId
-
Constructor Details
-
PropFindJsonResource
public PropFindJsonResource(PropFindableResource wrappedResource, JsonPropFindHandler jsonPropFindHandler, String encodedUrl, Long maxAgeSecs)
-
-
Method Details
-
sendContent
public void sendContent(OutputStream out, Range range, Map<String, String> params, String contentType) throws IOException, NotAuthorizedException, BadRequestException- Specified by:
sendContentin interfaceGetableResource- Throws:
IOExceptionNotAuthorizedExceptionBadRequestException
-
applicableMethod
- Specified by:
applicableMethodin classJsonResource
-
getMaxAgeSeconds
Overridden to allow clients to specifiy the max age as a request parameter This is to allow efficient browser caching of results in cases that need it, while also permitting non-cached access- Specified by:
getMaxAgeSecondsin interfaceGetableResource- Overrides:
getMaxAgeSecondsin classJsonResource- Parameters:
auth-- Returns:
-