public abstract class AbstractAtomTransformer extends Object implements ddf.catalog.transform.MetacardTransformer, ddf.catalog.transform.QueryResponseTransformer
| Constructor and Description |
|---|
AbstractAtomTransformer(org.codice.ddf.configuration.impl.ConfigurationWatcherImpl config,
ddf.action.ActionProvider viewMetacard,
ddf.action.ActionProvider metadataProvider,
ddf.action.ActionProvider resourceProvider,
ddf.action.ActionProvider thumbnailProvider,
MimeType thumbnailMime,
MimeType viewMime) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
addEntryElements(org.apache.abdera.model.Entry entry,
net.di2e.ecdr.commons.CDRMetacard metacard,
Map<String,Serializable> properties) |
abstract void |
addFeedElements(org.apache.abdera.model.Feed feed,
ddf.catalog.operation.SourceResponse response,
Map<String,Serializable> properties) |
protected void |
addLinksToEntry(org.apache.abdera.model.Entry entry,
net.di2e.ecdr.commons.CDRMetacard metacard,
String format) |
protected void |
addLinksToFeed(org.apache.abdera.model.Feed feed,
Map<String,Serializable> properties) |
protected void |
addLocation(org.apache.abdera.model.Entry entry,
ddf.catalog.data.Metacard metacard,
boolean useGmlEncoding) |
protected void |
addStatus(ddf.catalog.operation.SourceResponse response,
org.apache.abdera.model.Feed feed,
List<ddf.catalog.data.Result> results,
Map<String,Serializable> properties) |
protected org.codice.ddf.configuration.impl.ConfigurationWatcherImpl |
getConfigurationWatcherImpl() |
protected org.apache.abdera.model.Entry |
getMetacardEntry(net.di2e.ecdr.commons.CDRMetacard metacard,
Map<String,Serializable> properties) |
protected ddf.action.ActionProvider |
getResourceActionProvider() |
protected ddf.action.ActionProvider |
getThumbnailActionProvider() |
protected MimeType |
getThumbnailMimeType() |
protected ddf.action.ActionProvider |
getViewMetacardActionProvider() |
protected MimeType |
getViewMimeType() |
protected boolean |
isFalse(Boolean includeStatus) |
protected boolean |
isTransform41() |
protected boolean |
isTransform50() |
protected void |
setFeedTitle(org.apache.abdera.model.Feed feed,
Map<String,Serializable> properties) |
void |
setUseGMLEncoding(boolean shouldUseGMLEncoding)
Specifies if GML encoding should be used for location data.
|
ddf.catalog.data.BinaryContent |
transform(ddf.catalog.data.Metacard metacard,
Map<String,Serializable> properties) |
ddf.catalog.data.BinaryContent |
transform(ddf.catalog.operation.SourceResponse response,
Map<String,Serializable> properties) |
protected boolean |
useGmlEncoding(Map<String,Serializable> properties)
This method inspects the properties to determine if there is a property
that specifies the GeoRSS format.
|
public AbstractAtomTransformer(org.codice.ddf.configuration.impl.ConfigurationWatcherImpl config,
ddf.action.ActionProvider viewMetacard,
ddf.action.ActionProvider metadataProvider,
ddf.action.ActionProvider resourceProvider,
ddf.action.ActionProvider thumbnailProvider,
MimeType thumbnailMime,
MimeType viewMime)
public abstract void addFeedElements(org.apache.abdera.model.Feed feed,
ddf.catalog.operation.SourceResponse response,
Map<String,Serializable> properties)
public abstract void addEntryElements(org.apache.abdera.model.Entry entry,
net.di2e.ecdr.commons.CDRMetacard metacard,
Map<String,Serializable> properties)
public void setUseGMLEncoding(boolean shouldUseGMLEncoding)
shouldUseGMLEncoding - true (default) will return locations as GeoRSS-GML; false will
return locations as GeoRSS-Simplepublic ddf.catalog.data.BinaryContent transform(ddf.catalog.operation.SourceResponse response,
Map<String,Serializable> properties)
throws ddf.catalog.transform.CatalogTransformerException
transform in interface ddf.catalog.transform.QueryResponseTransformerddf.catalog.transform.CatalogTransformerExceptionprotected void addStatus(ddf.catalog.operation.SourceResponse response,
org.apache.abdera.model.Feed feed,
List<ddf.catalog.data.Result> results,
Map<String,Serializable> properties)
protected boolean isFalse(Boolean includeStatus)
public ddf.catalog.data.BinaryContent transform(ddf.catalog.data.Metacard metacard,
Map<String,Serializable> properties)
throws ddf.catalog.transform.CatalogTransformerException
transform in interface ddf.catalog.transform.MetacardTransformerddf.catalog.transform.CatalogTransformerExceptionprotected ddf.action.ActionProvider getViewMetacardActionProvider()
protected ddf.action.ActionProvider getThumbnailActionProvider()
protected ddf.action.ActionProvider getResourceActionProvider()
protected org.codice.ddf.configuration.impl.ConfigurationWatcherImpl getConfigurationWatcherImpl()
protected MimeType getThumbnailMimeType()
protected MimeType getViewMimeType()
protected boolean isTransform41()
protected boolean isTransform50()
protected org.apache.abdera.model.Entry getMetacardEntry(net.di2e.ecdr.commons.CDRMetacard metacard,
Map<String,Serializable> properties)
protected boolean useGmlEncoding(Map<String,Serializable> properties)
properties - that were passed into the transformerprotected void addLinksToEntry(org.apache.abdera.model.Entry entry,
net.di2e.ecdr.commons.CDRMetacard metacard,
String format)
protected void addLocation(org.apache.abdera.model.Entry entry,
ddf.catalog.data.Metacard metacard,
boolean useGmlEncoding)
protected void addLinksToFeed(org.apache.abdera.model.Feed feed,
Map<String,Serializable> properties)
protected void setFeedTitle(org.apache.abdera.model.Feed feed,
Map<String,Serializable> properties)
Copyright © 2014 Cohesive Integrations, LLC. All rights reserved.