Package io.milton.http.json
Class MkcolJsonResource
java.lang.Object
io.milton.http.json.JsonResource
io.milton.http.json.MkcolJsonResource
- All Implemented Interfaces:
DigestResource,GetableResource,PostableResource,Resource
Forwards the POST request to the createCollection method on the wrapped
resource, passin it the "name" request parameter
- Author:
- brad
-
Field Summary
Fields inherited from class io.milton.http.json.JsonResource
CONTENT_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionMkcolJsonResource(MakeCollectionableResource makeCollectionableResource, String href, EventManager eventManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidsendContent(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, getMaxAgeSeconds, 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, getContentType, getMaxAgeSecondsMethods inherited from interface io.milton.resource.Resource
authenticate, authorise, checkRedirect, getModifiedDate, getName, getRealm, getUniqueId
-
Constructor Details
-
MkcolJsonResource
public MkcolJsonResource(MakeCollectionableResource makeCollectionableResource, String href, EventManager eventManager)
-
-
Method Details
-
processForm
public String processForm(Map<String, String> parameters, Map<String, throws BadRequestException, NotAuthorizedExceptionFileItem> files) - Specified by:
processFormin interfacePostableResource- Throws:
BadRequestExceptionNotAuthorizedException
-
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
-