Class AbstractXsltTransformer
java.lang.Object
ddf.catalog.services.xsltlistener.AbstractXsltTransformer
- Direct Known Subclasses:
XsltMetacardTransformer,XsltResponseQueueTransformer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinit(String mimeString, InputStream xslStream) Sets the templates and mimeType used to perform a transform.voidRetrieves the xslt file from the incoming bundle.
-
Field Details
-
DEFAULT_MIME_TYPE
protected static final javax.activation.MimeType DEFAULT_MIME_TYPE -
MIME_TYPE_HEADER_NAME
- See Also:
-
templates
-
mimeType
protected javax.activation.MimeType mimeType -
context
protected org.osgi.framework.BundleContext context
-
-
Constructor Details
-
AbstractXsltTransformer
public AbstractXsltTransformer() -
AbstractXsltTransformer
-
-
Method Details
-
init
Retrieves the xslt file from the incoming bundle. Also gets the mime type from the bundle header.- Parameters:
bundle- Incoming bundle that contains an xsl filexslFile- The xsl file name
-
init
Sets the templates and mimeType used to perform a transform. This method can also be used in a non-OSGi environment to setup the transformer. NOTE: When using in a non-OSGi environment, some transformers may not work.- Parameters:
mimeString- String value of the mimeType to be returned.xslStream- Full, absolute path of the xsl file.- Throws:
TransformerConfigurationException
-