oracle.clex.process
Class CreateHTMLPage

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.CreateTagReplacementPage
                                      |
                                      +--oracle.clex.process.CreateHTMLPage
All Implemented Interfaces:
Child, java.lang.Cloneable, PageConstants, Parent, ProcessConstants, java.io.Serializable, State
Direct Known Subclasses:
CreatePopulatedHTMLPage

public class CreateHTMLPage
extends CreateTagReplacementPage

This class extends CreateTagReplacementPage to provide special processing for HTML pages.

This class uses the funtionality of CreateTagReplacementPage with the following added feature(s):
1) A PageID tag is automatically inserted after each form tag that is detected.

See Also:
Serialized Form

Fields inherited from class oracle.clex.process.CreateTagReplacementPage
className, filename, htmlDynamicLine, htmlInputBufferLine, htmlInputBufferNextLine, lookupPage, matchString, pageLocationKey, url, valueProvider, valueProviderInstance, valueStr, wrbStr, wrbSubStr
 
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
CreateHTMLPage()
          Default constructor
CreateHTMLPage(java.lang.String aFileURLString)
          Constructor with aFileURLString parameter.
CreateHTMLPage(java.lang.String aPageLocationKey, boolean lookup)
          Constructor with aPageLocationKey and lookup parameter .
CreateHTMLPage(java.lang.String aFileURLString, java.lang.String aClassName)
          Constructor with aFileURLString and aClassName parameters.
CreateHTMLPage(java.lang.String aPageLocationKey, java.lang.String aClassName, boolean lookup)
          Constructor with aPageLocationKey, aClassName and lookup parameters.
 
Method Summary
protected  HTMLString getPageIDTag()
           
static void main(java.lang.String[] args)
          Main method for testing this class.
protected  java.lang.String postProcessLine(java.lang.String aString)
          Appends the oracle.clex.process.PageConstants.PAGEID
protected  void registerInfo()
          This method registers the result(GENERICTEXTRESULT) info parameters.
protected  java.lang.String setContentType()
          Content type set to ContentTypes.TEXTHTML
protected  void setCreatePageResult(java.lang.String aString)
          Sets the output string
 
Methods inherited from class oracle.clex.process.CreateTagReplacementPage
getInputStream, handleTag, init, postStart, preStart, printPage, setService
 
Methods inherited from class oracle.clex.process.CreatePage
buildTransitionTable, getPageId, lookupPageLocation, 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, 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
 

Constructor Detail

CreateHTMLPage

public CreateHTMLPage()
Default constructor

CreateHTMLPage

public CreateHTMLPage(java.lang.String aFileURLString)
Constructor with aFileURLString parameter. Assumption is made that the HTML file will not contain any WRB tag. In case, a WRB tag is found and no class parameter was passed, the printHTMLPage method sets state condition to failure.
Parameters:
aFileURLString - URL string containing the HTML file name

CreateHTMLPage

public CreateHTMLPage(java.lang.String aFileURLString,
                      java.lang.String aClassName)
Constructor with aFileURLString and aClassName parameters. From the aClassName actual class is created and assigned to valueProvider class object.
Parameters:
aFileURLString - URL string containing the HTML file name

CreateHTMLPage

public CreateHTMLPage(java.lang.String aPageLocationKey,
                      java.lang.String aClassName,
                      boolean lookup)
Constructor with aPageLocationKey, aClassName and lookup parameters. From the aClassName actual class is created and assigned to valueProvider class object. The aPageLocationKey is the key used to lookup the HTML Page location if lookup is true. Otherwise, the HTML file is looked up as a resource in the applications classpath(if no protocol specified) or via a URL (if a protocol is specified).
Parameters:
aPageLocationKey - properties key to use for lookup of the HTML page
aClassName - Name of the child class
lookup - lookup HTML location if this is true

CreateHTMLPage

public CreateHTMLPage(java.lang.String aPageLocationKey,
                      boolean lookup)
Constructor with aPageLocationKey and lookup parameter . The aPageLocationKey is the key used to lookup the HTML Page location if lookup is true. Otherwise, the HTML file is looked up as a resource in the applications classpath(if no protocol specified) or via a URL (if a protocol is specified).
Parameters:
aPageLocationKey - properties key to use for lookup of the HTML page
lookup - lookup HTML location if this is true
Method Detail

postProcessLine

protected java.lang.String postProcessLine(java.lang.String aString)
Appends the oracle.clex.process.PageConstants.PAGEID
Overrides:
postProcessLine in class CreateTagReplacementPage

getPageIDTag

protected HTMLString getPageIDTag()

registerInfo

protected void registerInfo()
This method registers the result(GENERICTEXTRESULT) info parameters.
Overrides:
registerInfo in class CreateTagReplacementPage

main

public static void main(java.lang.String[] args)
Main method for testing this class.

setCreatePageResult

protected void setCreatePageResult(java.lang.String aString)
Sets the output string
Overrides:
setCreatePageResult in class CreatePage

setContentType

protected java.lang.String setContentType()
Content type set to ContentTypes.TEXTHTML
Overrides:
setContentType in class CreateGenericTextPage


Copyright © 2003 ORACLE Corp. All Rights Reserved.