public class PutJsonResource extends JsonResource implements PostableResource
| Modifier and Type | Class and Description |
|---|---|
static class |
PutJsonResource.NewFile |
| Modifier and Type | Field and Description |
|---|---|
static String |
PARAM_AUTONAME |
static String |
PARAM_NAME |
static String |
PARAM_OVERWRITE |
CONTENT_TYPE| Constructor and Description |
|---|
PutJsonResource(PutableResource putableResource,
String href,
EventManager eventManager) |
| Modifier and Type | Method and Description |
|---|---|
Request.Method |
applicableMethod() |
String |
getContentType(String accepts) |
String |
processForm(Map<String,String> parameters,
Map<String,FileItem> files) |
void |
sendContent(OutputStream out,
Range range,
Map<String,String> params,
String contentType)
Returns a JSON representation of the newly created hrefs
|
authenticate, authenticate, authorise, checkRedirect, getContentLength, getMaxAgeSeconds, getModifiedDate, getName, getRealm, getUniqueId, getWrappedResource, isDigestAllowedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContentLength, getMaxAgeSecondsauthenticate, authorise, checkRedirect, getModifiedDate, getName, getRealm, getUniqueIdpublic static final String PARAM_AUTONAME
public static final String PARAM_NAME
public static final String PARAM_OVERWRITE
public PutJsonResource(PutableResource putableResource, String href, EventManager eventManager)
public String getContentType(String accepts)
getContentType in interface GetableResourcegetContentType in class JsonResourcepublic String processForm(Map<String,String> parameters, Map<String,FileItem> files) throws ConflictException, NotAuthorizedException, BadRequestException
processForm in interface PostableResourceConflictExceptionNotAuthorizedExceptionBadRequestExceptionpublic void sendContent(OutputStream out, Range range, Map<String,String> params, String contentType) throws IOException, NotAuthorizedException
sendContent in interface GetableResourceout - range - params - contentType - IOExceptionNotAuthorizedExceptionpublic Request.Method applicableMethod()
applicableMethod in class JsonResourceCopyright © 2021 McEvoy Software Ltd. All rights reserved.