Package io.milton.http.json
Class CopyJsonResource
java.lang.Object
io.milton.http.json.JsonResource
io.milton.http.json.CopyJsonResource
- All Implemented Interfaces:
DigestResource,GetableResource,PostableResource,Resource
Forwards the POST request to the copy method on the wrapped
resource, looking up destination collection and name from the "destination" request parameter
- Author:
- brad
-
Field Summary
Fields inherited from class io.milton.http.json.JsonResource
CONTENT_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionCopyJsonResource(String host, CopyableResource copyableResource, ResourceFactory resourceFactory) -
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
-
CopyJsonResource
public CopyJsonResource(String host, CopyableResource copyableResource, ResourceFactory resourceFactory)
-
-
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
-