public abstract class AbstractXsltTransformer extends Object
Modifier and Type | Field and Description |
---|---|
protected org.osgi.framework.BundleContext |
context |
protected static MimeType |
DEFAULT_MIME_TYPE |
protected static String |
MIME_TYPE_HEADER_NAME |
protected MimeType |
mimeType |
protected Templates |
templates |
Constructor and Description |
---|
AbstractXsltTransformer() |
AbstractXsltTransformer(org.osgi.framework.Bundle bundle,
String xslFile) |
Modifier and Type | Method and Description |
---|---|
void |
init(org.osgi.framework.Bundle bundle,
String xslFile)
Retrieves the xslt file from the incoming bundle.
|
void |
init(String mimeString,
InputStream xslStream)
Sets the templates and mimeType used to perform a transform.
|
protected static final MimeType DEFAULT_MIME_TYPE
protected static final String MIME_TYPE_HEADER_NAME
protected Templates templates
protected MimeType mimeType
protected org.osgi.framework.BundleContext context
public AbstractXsltTransformer()
public AbstractXsltTransformer(org.osgi.framework.Bundle bundle, String xslFile)
public void init(org.osgi.framework.Bundle bundle, String xslFile)
bundle
- Incoming bundle that contains an xsl filexslFile
- The xsl file namepublic void init(String mimeString, InputStream xslStream)
mimeString
- String value of the mimeType to be returned.xslStream
- Full, absolute path of the xsl file.This work is licensed under a Creative Commons Attribution 4.0 International License.