Class ResourceDownloadActionProvider
java.lang.Object
org.codice.ddf.catalog.actions.AbstractMetacardActionProvider
org.codice.ddf.catalog.download.action.ResourceDownloadActionProvider
- All Implemented Interfaces:
ddf.action.ActionProvider
Action provider that creates
Actions used to asynchronously download resources to the
local site.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanHandleMetacard(ddf.catalog.data.Metacard metacard) Returnstrueif the resource associated with theMetacardis local; false otherwise.protected ddf.action.ActioncreateMetacardAction(String actionProviderId, String title, String description, URL url) protected URLgetMetacardActionUrl(String metacardSource, ddf.catalog.data.Metacard metacard) Methods inherited from class org.codice.ddf.catalog.actions.AbstractMetacardActionProvider
canHandle, getAction, getId, getMetacardAction, toString
-
Constructor Details
-
ResourceDownloadActionProvider
-
-
Method Details
-
canHandleMetacard
protected boolean canHandleMetacard(ddf.catalog.data.Metacard metacard) Returnstrueif the resource associated with theMetacardis local; false otherwise.- Overrides:
canHandleMetacardin classAbstractMetacardActionProvider
-
createMetacardAction
protected ddf.action.Action createMetacardAction(String actionProviderId, String title, String description, URL url) - Specified by:
createMetacardActionin classAbstractMetacardActionProvider
-
getMetacardActionUrl
protected URL getMetacardActionUrl(String metacardSource, ddf.catalog.data.Metacard metacard) throws MalformedURLException, URISyntaxException, UnsupportedEncodingException - Specified by:
getMetacardActionUrlin classAbstractMetacardActionProvider- Throws:
MalformedURLExceptionURISyntaxExceptionUnsupportedEncodingException
-