Package com.levigo.jadice.server.xml
Class XSLFOFormatterNode
- java.lang.Object
-
- com.levigo.jadice.server.internal.NodeInternal
-
- com.levigo.jadice.server.Node
-
- com.levigo.jadice.server.xml.XSLFOFormatterNode
-
public class XSLFOFormatterNode extends Node
ANode
that uses a XSL-FO processor (Apache FOP) to render an XML input stream.Its worker respects
PageCountLimit
s.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.levigo.jadice.server.Node
Node.Cardinality
-
-
Constructor Summary
Constructors Constructor Description XSLFOFormatterNode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Serializable>
getParameters()
Return the parameters that will be included in the XSL:FO stylesheet.URI
getStyleSheet()
Get the location of the style sheet.String
getTargetMimeType()
Get current target mime type.String
getWorkerClassName()
Return the node's associatedcom.levigo.jadice.server.core.NodeWorker
full qualified class's name.void
setParameters(Map<String,Serializable> parameters)
Set parameters that will be included in the XSL:FO stylesheetvoid
setStyleSheet(URI location)
Set the location of style sheet for conversion.void
setTargetMimeType(String targetMimeType)
Set render type, seeorg.apache.fop.apps.MimeConstants
for valid mime types.protected void
validateConfiguration()
-
Methods inherited from class com.levigo.jadice.server.Node
addTransportReceiver, appendSuccessor, apply, equals, getInputCardinality, getJob, getOutputCardinality, getPredecessors, getSubsidiaryNodes, getSuccessors, getTransportSender, getUUID, hashCode, initialize, prependPredecessor, remove
-
-
-
-
Method Detail
-
getTargetMimeType
public String getTargetMimeType()
Get current target mime type. Default is "application/pdf".- Returns:
- Target mime type
-
setTargetMimeType
public void setTargetMimeType(String targetMimeType)
Set render type, seeorg.apache.fop.apps.MimeConstants
for valid mime types.- Parameters:
targetMimeType
- the target MIME type
-
getStyleSheet
public URI getStyleSheet()
Get the location of the style sheet.- Returns:
- the location of the style sheet
-
setStyleSheet
public void setStyleSheet(URI location)
Set the location of style sheet for conversion.- Parameters:
location
- the style sheet's location
-
getParameters
public Map<String,Serializable> getParameters()
Return the parameters that will be included in the XSL:FO stylesheet.- Returns:
- parameters to include in the stylesheet
- See Also:
Transformer.setParameter(String, Object)
-
setParameters
public void setParameters(Map<String,Serializable> parameters)
Set parameters that will be included in the XSL:FO stylesheet- Parameters:
parameters
- values that will be includes in the stylesheet- See Also:
Transformer.setParameter(String, Object)
-
getWorkerClassName
public String getWorkerClassName()
Description copied from class:Node
Return the node's associatedcom.levigo.jadice.server.core.NodeWorker
full qualified class's name. By default, the worker class name is- The same as the node name with the trailing "Node" replaced by "Worker" if the node name ends in "Node"
- The node class name with an appended "Worker" otherwise.
This behavior can be overridden in concrete subclasses.
- Overrides:
getWorkerClassName
in classNode
- Returns:
- the full qualified class name of the worker of this node.
-
validateConfiguration
protected void validateConfiguration() throws ConfigurationException
- Overrides:
validateConfiguration
in classNode
- Throws:
ConfigurationException
-
-