@Controller public class RESTLicense extends RESTService
CHUNKSIZE, HEADER_ACCEPT_LANGUAGE, HEADER_ACCEPT_RANGES, HEADER_CACHE_CONTROL, HEADER_CONTENT_DISPOSITION, HEADER_CONTENT_LANGUAGE, HEADER_CONTENT_LENGTH, HEADER_CONTENT_RANGE, HEADER_CONTENT_TYPE, HEADER_ETAG, HEADER_IF_MODIFIED_SINCE, HEADER_LAST_MODIFIED, HEADER_LOCATION, HEADER_RANGE, HEADER_USER_AGENT, MULTIPART_BYTERANGES_BOUNDRY, MULTIPART_BYTERANGES_BOUNDRY_END, MULTIPART_BYTERANGES_BOUNDRY_SEP, MULTIPART_BYTERANGES_HEADER
Constructor and Description |
---|
RESTLicense() |
Modifier and Type | Method and Description |
---|---|
OCMSLicenseInfo |
getLicenseDetails() |
java.lang.String |
revalidateLicense(java.lang.String paramTicket,
java.lang.String cookieTicket) |
void |
validateLicense(java.lang.String floatingLicense,
java.lang.String textLicense,
boolean isAdminUpload) |
contentNotProcessed, contentNotReady, genericException, notAuth, notFoundException, notSupported, objectLocked, ocConflict, ocConflict, ocForbidden, ocRuntimeException, resolveTicket
@RequestMapping(value="/license/validateLicense", method=POST) @ResponseBody public void validateLicense(@RequestParam(value="floatingLicense",required=false) java.lang.String floatingLicense, @RequestParam(value="textLicense",required=false) java.lang.String textLicense, @RequestParam(value="isAdminUpload",required=true) boolean isAdminUpload) throws org.json.JSONException
org.json.JSONException
@RequestMapping(value="/license/getLicenseDetails", method=GET) @ResponseBody public OCMSLicenseInfo getLicenseDetails() throws org.json.JSONException
org.json.JSONException
@RequestMapping(value="/license/revalidateLicense", method=POST) @ResponseBody public java.lang.String revalidateLicense(@RequestParam(value="ticket",required=false) java.lang.String paramTicket, @CookieValue(value="ticket",required=false) java.lang.String cookieTicket)