Package org.duracloud.durastore.rest
Class AuxRest
java.lang.Object
org.duracloud.durastore.rest.BaseRest
org.duracloud.durastore.rest.AuxRest
Provides auxilliary functions via REST
- Author:
- Bill Branan
-
Field Summary
Fields inherited from class org.duracloud.durastore.rest.BaseRest
APP_NAME, APPLICATION_XML, CONTENT_MIMETYPE_HEADER, COPY_SOURCE_HEADER, COPY_SOURCE_STORE_HEADER, DEFAULT_MIME, HEADER_PREFIX, HTML, RANGE_HEADER, SPACE_ACL_HEADER, TEXT_PLAIN, XML -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.ResponsegetCookies(String token) Adds new cookies to the response headers based on the provided token.protected voidsetStringDataStoreFactory(StringDataStoreFactory stringDataStoreFactory) Methods inherited from class org.duracloud.durastore.rest.BaseRest
getAccountId, getSpaceACLs, getSubdomain, getUserProperties, getUserProperties, responseBad, responseBad, responseBad, responseBadRequest, responseNotFound, responseNotFound, responseOk, responseOk, responseOk, responseOkStream, responseOkXml, responseOkXmlStream
-
Constructor Details
-
AuxRest
public AuxRest()
-
-
Method Details
-
setStringDataStoreFactory
-
getCookies
@Path("/cookies") @GET public javax.ws.rs.core.Response getCookies(@QueryParam("token") String token) Adds new cookies to the response headers based on the provided token. The response body contains an HTML based redirect pointing to the redirect URL passed to the /durastore/task/get-signed-cookies (GetHlsSingedCookiesUrlTaskRunner) endpoint.- Returns:
- 200 response with XML file listing stores
-