Class ResourceDownloadActionEndpoint
java.lang.Object
org.codice.ddf.catalog.download.action.ResourceDownloadActionEndpoint
REST endpoint class used to manage metacard product downloads.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionResourceDownloadActionEndpoint(com.github.jknack.handlebars.Handlebars handlebars) -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.ResponsecopyToLocalSite(String sourceId, String metacardId) Starts an asynchronous download of a specific metacard resource to the local site.
-
Field Details
-
CONTEXT_PATH
- See Also:
-
SOURCE_PARAM
- See Also:
-
METACARD_PARAM
- See Also:
-
-
Constructor Details
-
ResourceDownloadActionEndpoint
public ResourceDownloadActionEndpoint(com.github.jknack.handlebars.Handlebars handlebars)
-
-
Method Details
-
copyToLocalSite
@GET public javax.ws.rs.core.Response copyToLocalSite(@FormParam("source") String sourceId, @FormParam("metacard") String metacardId) throws org.codice.ddf.catalog.resource.download.DownloadToLocalSiteException Starts an asynchronous download of a specific metacard resource to the local site.- Parameters:
sourceId- ID of the federated source where the resource should be downloaded frommetacardId- ID of the metacard that contains the resource to download- Returns:
- response object containing successful start of download message
- Throws:
DownloadToCacheOnlyExceptionorg.codice.ddf.catalog.resource.download.DownloadToLocalSiteException
-