@Path(value="/") public class ResourceDownloadActionEndpoint extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CONTEXT_PATH |
static String |
METACARD_PARAM |
static String |
SOURCE_PARAM |
Constructor and Description |
---|
ResourceDownloadActionEndpoint(com.github.jknack.handlebars.Handlebars handlebars) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
copyToLocalSite(String sourceId,
String metacardId)
Starts an asynchronous download of a specific metacard resource to the local site.
|
public static final String CONTEXT_PATH
public static final String SOURCE_PARAM
public static final String METACARD_PARAM
public ResourceDownloadActionEndpoint(com.github.jknack.handlebars.Handlebars handlebars)
@GET public javax.ws.rs.core.Response copyToLocalSite(@FormParam(value="source") String sourceId, @FormParam(value="metacard") String metacardId) throws DownloadToLocalSiteException
sourceId
- ID of the federated source where the resource should be downloaded frommetacardId
- ID of the metacard that contains the resource to downloadDownloadToCacheOnlyException
DownloadToLocalSiteException
This work is licensed under a Creative Commons Attribution 4.0 International License.