@Controller public class RESTAdlib extends RESTService
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ADLIB_GET_CONTENT |
protected java.lang.Boolean |
decryptPassword |
protected java.lang.String |
downloadKey |
protected java.lang.String |
superuserPassword |
protected java.lang.String |
superuserUsername |
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 |
---|
RESTAdlib() |
Modifier and Type | Method and Description |
---|---|
void |
delayedGetContent(java.lang.String id,
java.lang.String fileExtensions,
java.lang.String key,
java.lang.String cookieTicket,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
void |
setDecryptPassword(java.lang.String value)
Set if the superuser password is encrypted or not
|
void |
setKey(java.lang.String value)
Set the downloadKey that will be decrypted
|
void |
setSuperuserPassword(java.lang.String value)
Set the superuser password to be used if there is an invalid ticket.
|
void |
setSuperuserUsername(java.lang.String value)
Set the superuser username to be used if there is an invalid ticket.
|
void |
transformationComplete(java.lang.String objectId,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
contentNotProcessed, contentNotReady, genericException, notAuth, notFoundException, notSupported, objectLocked, ocConflict, ocConflict, ocForbidden, ocRuntimeException, resolveTicket
public static final java.lang.String ADLIB_GET_CONTENT
protected java.lang.String superuserUsername
protected java.lang.String superuserPassword
protected java.lang.Boolean decryptPassword
protected java.lang.String downloadKey
@Value(value="${adlib.superuser.user.name}") public void setSuperuserUsername(java.lang.String value)
types
- the list of types@Value(value="${adlib.superuser.user.pass}") public void setSuperuserPassword(java.lang.String value)
types
- the list of types@Value(value="${adlib.superuser.user.pass.encrypted}") public void setDecryptPassword(java.lang.String value)
types
- the list of types@Value(value="${adlib.openContent.downloadKey}") public void setKey(java.lang.String value)
types
- the list of types@RequestMapping(value="/adlib/transformationComplete", method=PUT) public void transformationComplete(@RequestParam(value="objectId",required=false) java.lang.String objectId, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
@RequestMapping(value="/adlib/content", method=GET) public void delayedGetContent(@RequestParam(value="id",required=false) java.lang.String id, @RequestParam(value="contentType[]",required=false) java.lang.String fileExtensions, @RequestParam(value="key",required=true) java.lang.String key, @CookieValue(value="ticket",required=false) java.lang.String cookieTicket, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)