Package io.milton.http.json
Class PostJsonResource
java.lang.Object
io.milton.http.json.JsonResource
io.milton.http.json.PostJsonResource
- All Implemented Interfaces:
DigestResource,GetableResource,PostableResource,Resource
This just allows the determination of the per method handling class to be
figured out during POST or GET processing, rather then requiring that
determination to be made solely on the basis of the url
- Author:
- brad
-
Field Summary
Fields inherited from class io.milton.http.json.JsonResource
CONTENT_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionPostJsonResource(String host, String href, Resource wrappedResource, String methodParamName, JsonResourceFactory jsonResourceFactory) -
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
-
PostJsonResource
public PostJsonResource(String host, String href, Resource wrappedResource, String methodParamName, JsonResourceFactory jsonResourceFactory)
-
-
Method Details
-
applicableMethod
- Specified by:
applicableMethodin classJsonResource
-
processForm
public String processForm(Map<String, String> parameters, Map<String, throws BadRequestException, NotAuthorizedException, ConflictExceptionFileItem> files) - Specified by:
processFormin interfacePostableResource- Throws:
BadRequestExceptionNotAuthorizedExceptionConflictException
-
sendContent
public void sendContent(OutputStream out, Range range, Map<String, String> params, String contentType) throws IOException, NotAuthorizedException, BadRequestException, NotFoundException- Specified by:
sendContentin interfaceGetableResource- Throws:
IOExceptionNotAuthorizedExceptionBadRequestExceptionNotFoundException
-