org.enhydra.shark.toolagent
Class XSLTToolAgent
java.lang.Object
org.enhydra.shark.toolagent.AbstractToolAgent
org.enhydra.shark.toolagent.XSLTToolAgent
- All Implemented Interfaces:
- ToolAgent
- public class XSLTToolAgent
- extends AbstractToolAgent
XPILDToHTMLAndPDFTool takes the XPIL for the current process and using given XSLT
converts such XPIL to FO, and afterwards (using internal XSLT) to HTML and PDF
documents which are placed in the variables with the given names.
- Author:
- Sasa Bojanic, Svjetlana Milidrag
Fields inherited from class org.enhydra.shark.toolagent.AbstractToolAgent |
APP_MODE_EXT_ATTR_NAME, APP_NAME_EXT_ATTR_NAME, appInfo, appMode, appName, assId, COMMA_SEPARATOR_STR, cus, extAttributes, handle, parameters, procInstId, SEMICOLON_SEPARATOR_STR, shandle, status, tashandle, toolInfo, wmci |
Methods inherited from class org.enhydra.shark.toolagent.AbstractToolAgent |
configure, connect, copyParams, disconnect, getInfo, getParameterByName, getParameterString, getParameterStringArray, getReturnParameters, readParamsFromExtAttributes, requestAppStatus, terminateApp |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SCRIPT_EXT_ATTR_NAME
public static final java.lang.String SCRIPT_EXT_ATTR_NAME
- See Also:
- Constant Field Values
TRANSFORMER_NAME
public static final java.lang.String TRANSFORMER_NAME
- See Also:
- Constant Field Values
TRANSFORMER_PATH
public static final java.lang.String TRANSFORMER_PATH
- See Also:
- Constant Field Values
TRANSFORMER_NODE
public static final java.lang.String TRANSFORMER_NODE
- See Also:
- Constant Field Values
TRANSFORMER_SCRIPT
public static final java.lang.String TRANSFORMER_SCRIPT
- See Also:
- Constant Field Values
SOURCE
public static final java.lang.String SOURCE
- See Also:
- Constant Field Values
RESULT
public static final java.lang.String RESULT
- See Also:
- Constant Field Values
RESULT_TYPE
public static final java.lang.String RESULT_TYPE
- See Also:
- Constant Field Values
bout
protected java.io.ByteArrayOutputStream bout
sw
protected java.io.StringWriter sw
outParamType
protected java.lang.String outParamType
XSLTToolAgent
public XSLTToolAgent()
invokeApplication
public void invokeApplication(WMSessionHandle _shandle,
long _handle,
WMEntity _appInfo,
WMEntity _toolInfo,
java.lang.String _applicationName,
java.lang.String _procInstId,
java.lang.String _assId,
AppParameter[] _parameters,
java.lang.Integer _appMode)
throws ApplicationNotStarted,
ApplicationNotDefined,
ApplicationBusy,
ToolAgentGeneralException
- Specified by:
invokeApplication
in interface ToolAgent
- Overrides:
invokeApplication
in class AbstractToolAgent
- Throws:
ApplicationNotStarted
ApplicationNotDefined
ApplicationBusy
ToolAgentGeneralException
initParameters
protected void initParameters(javax.xml.transform.Transformer xsltTrans)
throws java.lang.Exception
- Throws:
java.lang.Exception
initResult
protected javax.xml.transform.Result initResult(AppParameter param)
throws java.lang.Exception
- Throws:
java.lang.Exception
initSource
protected javax.xml.transform.Source initSource()
throws java.lang.Exception
- Throws:
java.lang.Exception
initTransformer
protected javax.xml.transform.Transformer initTransformer()
throws java.lang.Exception
- Throws:
java.lang.Exception
getTransformerByName
protected javax.xml.transform.Transformer getTransformerByName(java.lang.String name)
throws java.lang.Exception
- Throws:
java.lang.Exception
getTransformerByPath
protected javax.xml.transform.Transformer getTransformerByPath(java.lang.String path)
throws java.lang.Exception
- Throws:
java.lang.Exception
getTransformerByNode
protected javax.xml.transform.Transformer getTransformerByNode(org.w3c.dom.Node node)
throws java.lang.Exception
- Throws:
java.lang.Exception
getTransformerByScript
protected javax.xml.transform.Transformer getTransformerByScript(java.lang.String script)
throws java.lang.Exception
- Throws:
java.lang.Exception
getTransformerByExtendedAttribute
protected javax.xml.transform.Transformer getTransformerByExtendedAttribute()
throws java.lang.Exception
- Throws:
java.lang.Exception