oracle.clex.process
Class CreateXSLTransformationPage

java.lang.Object
  |
  +--oracle.cle.process.Process
        |
        +--oracle.cle.process.GenericProcess
              |
              +--oracle.cle.process.ParentProcess
                    |
                    +--oracle.clex.process.CreatePage
                          |
                          +--oracle.clex.process.CreateGenericTextPage
                                |
                                +--oracle.clex.process.CreateXSLTransformationPage
All Implemented Interfaces:
Child, java.lang.Cloneable, PageConstants, Parent, ProcessConstants, java.io.Serializable, State

public abstract class CreateXSLTransformationPage
extends CreateGenericTextPage

JAXP-compliant version of deprecated CreateXSLTransformPage. Creates a String using an XML document generated from the buildDocument() method to be implemented in subclasses and the XSL specified during the construction of the process.

See Also:
Serialized Form

Field Summary
protected  boolean lookupPage
           
protected  java.lang.String pageLocationKey
           
protected  java.lang.String xsltFileURLString
          The file URL where the XSLT for this process is located
 
Fields inherited from class oracle.cle.process.GenericProcess
parent
 
Fields inherited from class oracle.cle.process.Process
condition, DEBUG, endState, FAILURE, name, processes, service, stateMachine, SUCCESS, TRANSITION_CONDITION_FAILURE, TRANSITION_CONDITION_SUCCESS
 
Fields inherited from interface oracle.cle.process.ProcessConstants
ALLINFO, BINARYSIZE, CONNECTION_PROVIDER_DTD_NAME, CONNECTION_PROVIDER_VALIDATION_PROPERTY, CONTENTTYPE, CURRENTPAGEID, CURRENTSERVICE, ERRORMESSAGE, GENERICBINARYRESULT, GENERICTEXTRESULT, GETINFO_CHECK_ALL, GETINFO_CHECK_CONTROLLERONLY, GETINFO_CHECK_SERVICEONLY, HTML, HTMLRESULT, JSPRESULT, LOGOFF, NOMESSAGE, PAGEID, PDF, PDFRESULT, PRE_GROUP_DTD_NAME, PRE_GROUP_VALIDATION_PROPERTY, PROCESS_FEEDBACK, RESTART, RESULTTYPE, RULES_DTD_NAME, SERVICE_DESCRIPTOR, SERVICE_DTD_NAME, SERVICE_VALIDATION_PROPERTY, SERVICEINITIALSTATE, SERVICENAME, SESSIONID, SKIP, STACKTRACE, USER, USERROLE, WML, XML, XMLRESULT
 
Constructor Summary
CreateXSLTransformationPage()
           
CreateXSLTransformationPage(java.lang.String anXSLTFileURLString)
           
CreateXSLTransformationPage(java.lang.String aPageLocationKey, java.lang.Boolean lookup)
           
 
Method Summary
protected abstract  org.w3c.dom.Document buildDocument()
          Subclasses of CreateXSLTransformationPage must return a w3c Document to be transformed by the corresponding XSL.
 javax.xml.transform.dom.DOMSource buildDOMSource()
          Method sets the Document as a node in the jaxp DOMSource.
protected  javax.xml.transform.dom.DOMSource getDocumentFromFile(java.lang.String fileURLString)
          Uses the jaxp factory to get an instance of a jaxp-compliant xml parser, specified in the jaxp.properties file located at JAVA_HOME/lib or taken from the classpath or JAVA_HOME/lib/ext directory.
protected  java.io.InputStream getInputStream(java.lang.String aFilename)
          Returns the InputStream for the specified file.
protected  java.lang.String lookupPageLocation(java.lang.String key)
          Does the infoTable lookup for an XSL page keyed by the specified String.
protected  void postStart()
          Dummy Implementation
protected  void printPage(java.io.PrintWriter out)
          Takes the xml document and transforms it based on the xsl provided at construction.
protected  void registerInfo()
          Register all ProcessParameters and potential ProcessResults (GENERICTEXTRESULT).
protected  java.lang.String setContentType()
          Returns an empty String
protected  void setCreatePageResult(java.lang.String aString)
           
 
Methods inherited from class oracle.clex.process.CreateGenericTextPage
preStart
 
Methods inherited from class oracle.clex.process.CreatePage
buildTransitionTable, getPageId, registerProcesses, start
 
Methods inherited from class oracle.cle.process.ParentProcess
addTransition, clone, doSkip, getChildren, getEndStates, getInitialState, getSkipable, isReady, processParameters, processResults, registerProcess, setInitialState, setSkipable, skip
 
Methods inherited from class oracle.cle.process.GenericProcess
getBooleanInfo, getFloatInfo, getInfo, getInfo, getInfo, getInfoValue, getInfoValue, getInfoValueFromController, getInfoValueFromService, getIntegerInfo, getParameterNamed, getParameters, getParent, getParents, getResultNamed, getResults, getSessionId, getStringInfo, processParameters, processResults, registerBooleanParameter, registerBooleanResult, registerIntegerParameter, registerIntegerResult, registerParameter, registerProcessInfo, registerResult, registerStringArrayParameter, registerStringArrayResult, registerStringParameter, registerStringParameter, registerStringResult, registerStringResult, retrieveStringParameter, runTest, setParent, setResult, setResult, setResult
 
Methods inherited from class oracle.cle.process.Process
addCondition, addProcess, cloneProcess, debug, generateFailureCondition, generateSuccessCondition, getClassname, getCondition, getConditions, getIconName, getImageName, getName, getProcesses, getProcessNamed, getStateMachine, hashCode, isEndState, removeCondition, removeCondition, reportException, returnCondition, setCondition, setCondition, setEndState, setName, setService, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface oracle.cle.process.Parent
getInfo, getName, getParents
 
Methods inherited from interface oracle.cle.process.Child
getParameters, getParent, getParents, getResults, setParent
 

Field Detail

xsltFileURLString

protected java.lang.String xsltFileURLString
The file URL where the XSLT for this process is located

lookupPage

protected boolean lookupPage

pageLocationKey

protected java.lang.String pageLocationKey
Constructor Detail

CreateXSLTransformationPage

public CreateXSLTransformationPage()

CreateXSLTransformationPage

public CreateXSLTransformationPage(java.lang.String anXSLTFileURLString)

CreateXSLTransformationPage

public CreateXSLTransformationPage(java.lang.String aPageLocationKey,
                                   java.lang.Boolean lookup)
Method Detail

registerInfo

protected void registerInfo()
Register all ProcessParameters and potential ProcessResults (GENERICTEXTRESULT).
Overrides:
registerInfo in class CreateGenericTextPage

buildDOMSource

public javax.xml.transform.dom.DOMSource buildDOMSource()
                                                 throws XSLTransformException
Method sets the Document as a node in the jaxp DOMSource.

buildDocument

protected abstract org.w3c.dom.Document buildDocument()
Subclasses of CreateXSLTransformationPage must return a w3c Document to be transformed by the corresponding XSL.

getDocumentFromFile

protected javax.xml.transform.dom.DOMSource getDocumentFromFile(java.lang.String fileURLString)
Uses the jaxp factory to get an instance of a jaxp-compliant xml parser, specified in the jaxp.properties file located at JAVA_HOME/lib or taken from the classpath or JAVA_HOME/lib/ext directory. If not specified, jaxp will use the Apache parser as a default. Method then parses the document and returns a DOMSource object.

printPage

protected void printPage(java.io.PrintWriter out)
Takes the xml document and transforms it based on the xsl provided at construction.
Overrides:
printPage in class CreatePage

lookupPageLocation

protected java.lang.String lookupPageLocation(java.lang.String key)
                                       throws java.lang.Exception
Does the infoTable lookup for an XSL page keyed by the specified String.
Overrides:
lookupPageLocation in class CreatePage
Throws:
java.lang.Exception -  

setCreatePageResult

protected void setCreatePageResult(java.lang.String aString)
Overrides:
setCreatePageResult in class CreatePage

setContentType

protected java.lang.String setContentType()
Returns an empty String
Overrides:
setContentType in class CreateGenericTextPage

postStart

protected void postStart()
Dummy Implementation
Overrides:
postStart in class CreatePage

getInputStream

protected final java.io.InputStream getInputStream(java.lang.String aFilename)
                                            throws java.lang.Exception
Returns the InputStream for the specified file. The file can be looked up as a resource with file name specified at root of classpath (no protocol) or via a URL if a protocol is given. Invokes CLEUtil.getInputStream(String, Class)
Returns:
java.io.InputStream


Copyright © 2003 ORACLE Corp. All Rights Reserved.