Package io.milton.http.json
Class MoveJsonResource
java.lang.Object
io.milton.http.json.JsonResource
io.milton.http.json.MoveJsonResource
- All Implemented Interfaces:
DigestResource,GetableResource,PostableResource,Resource
Forwards the POST request to the move method on the wrapped
resource
- Author:
- brad
-
Field Summary
Fields inherited from class io.milton.http.json.JsonResource
CONTENT_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionMoveJsonResource(String host, MoveableResource 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
-
MoveJsonResource
public MoveJsonResource(String host, MoveableResource 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
-