Class FormTaskDelegate
- All Implemented Interfaces:
ContextHolder
- Direct Known Subclasses:
CheckoutDownloadDelegateToOtherActions,CreateWTDocumentTaskDelegate,GenWsprefFormTaskDelegate,IBADisplayUnitsFormTaskDelegate,NavigateFoldersTaskDelegate,WTDocumentTemplateFormTaskDelegate
This class implements the ContextHolder interface and is passed the current HTTPState object to allow processing of the current HTTP Request or HTTP POST, as the case may be. During processing of the current action, the HTTPState object should be modified to reflect the current state. In particular, upon exit of this method processForm the HTTPState object should reflect the state required to locate the correct TemplateProcessor subclass and the correct HTML Template to generate the desired response page. If there are any message to pass back to the response page, the addToResponse methods can be used for this.
The FormTaskDelegateFactory is used by wt.enterprise.URLProcessor to
locate the correct
FormTaskDelegate subclass based on the current state as specified in
either the query String
or the HTTP POST data.
Supported API: true
Extendable: false
-
Field Summary
Fields inherited from interface wt.templateutil.processor.ContextHolder
CONTEXT_ACTION, CONTEXT_CLASS_NAME, CONTEXT_OBJ, CONTEXT_PROPERTIES, FORM_DATA, QUERY_DATA, RESPONSE_EXCEPTIONS, RESPONSE_FOOTERS, RESPONSE_HEADERS, RESPONSE_MESSAGES, RESPONSE_STRING, STATUS -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToResponseExceptions(Exception newException) Deprecated.voidaddToResponseFooters(LocalizableMessage newFooter) Deprecated.voidaddToResponseHeaders(LocalizableMessage newHeader) Deprecated.voidaddToResponseMessages(LocalizableMessage newMessage) Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.intDeprecated.abstract voidprocessAction(wt.content.ContentHTTPStream contentStream) Deprecated.voidsetContextAction(String a_ContextAction) Deprecated.voidsetContextClassName(String a_ContextClassName) Deprecated.voidsetContextObj(Object a_ContextObj) Deprecated.voidsetContextProperties(Properties a_ContextProperties) Deprecated.voidsetFormData(Properties a_FormData) Deprecated.voidsetQueryData(Properties a_QueryData) Deprecated.voidsetResponseExceptions(Vector a_ResponseExceptions) Deprecated.voidsetResponseFooters(Vector a_ResponseFooters) Deprecated.voidsetResponseHeaders(Vector a_ResponseHeaders) Deprecated.voidsetResponseMessages(Vector a_ResponseMessages) Deprecated.voidsetResponseString(String a_ResponseString) Deprecated.voidsetStatus(int a_Status) Deprecated.
-
Method Details
-
processAction
Deprecated.Processed the desired action and then updates the state so that the desired response page can be generated.Use the addToResponse methods to pass back messages on the status/results of the action.
Supported API: true- Parameters:
contentStream-- Throws:
Exception
-
getContextAction
Deprecated.Gets the value of the attribute: contextAction; Context Action is the name of the action of the current page
Supported API: true- Specified by:
getContextActionin interfaceContextHolder- Returns:
- String
-
setContextAction
Deprecated.Sets the value of the attribute: contextAction; Context Action is the name of the action of the current page
Supported API: true- Specified by:
setContextActionin interfaceContextHolder- Parameters:
a_ContextAction-
-
getContextObj
Deprecated.Gets the value of the attribute: contextObj; Context Object is the reference object of the current page
Supported API: true- Specified by:
getContextObjin interfaceContextHolder- Returns:
- Object
-
setContextObj
Deprecated.Sets the value of the attribute: contextObj; Context Object is the reference object of the current page
Supported API: true- Specified by:
setContextObjin interfaceContextHolder- Parameters:
a_ContextObj-
-
getContextClassName
Deprecated.Gets the value of the attribute: contextClassName; Context Object Name is the name of the class of the current page
Supported API: true- Specified by:
getContextClassNamein interfaceContextHolder- Returns:
- String
-
setContextClassName
Deprecated.Sets the value of the attribute: contextClassName; Context Object Name is the name of the class of the current page
Supported API: true- Specified by:
setContextClassNamein interfaceContextHolder- Parameters:
a_ContextClassName-
-
getContextProperties
Deprecated.Gets the value of the attribute: contextProperties.
Supported API: true- Specified by:
getContextPropertiesin interfaceContextHolder- Returns:
- Properties
-
setContextProperties
Deprecated.Sets the value of the attribute: contextProperties.
Supported API: true- Specified by:
setContextPropertiesin interfaceContextHolder- Parameters:
a_ContextProperties-
-
getResponseExceptions
Deprecated.Gets the value of the attribute: responseExceptions.
Supported API: true- Specified by:
getResponseExceptionsin interfaceContextHolder- Returns:
- Vector
-
setResponseExceptions
Deprecated.Sets the value of the attribute: responseExceptions.
Supported API: true- Specified by:
setResponseExceptionsin interfaceContextHolder- Parameters:
a_ResponseExceptions-
-
getResponseHeaders
Deprecated.Gets the value of the attribute: responseHeaders.
Supported API: true- Specified by:
getResponseHeadersin interfaceContextHolder- Returns:
- Vector
-
setResponseHeaders
Deprecated.Sets the value of the attribute: responseHeaders.
Supported API: true- Specified by:
setResponseHeadersin interfaceContextHolder- Parameters:
a_ResponseHeaders-
-
getResponseMessages
Deprecated.Gets the value of the attribute: responseMessages.
Supported API: true- Specified by:
getResponseMessagesin interfaceContextHolder- Returns:
- Vector
-
setResponseMessages
Deprecated.Sets the value of the attribute: responseMessages.
Supported API: true- Specified by:
setResponseMessagesin interfaceContextHolder- Parameters:
a_ResponseMessages-
-
getResponseString
Deprecated.Gets the value of the attribute: responseString.
Supported API: true- Specified by:
getResponseStringin interfaceContextHolder- Returns:
- String
-
setResponseString
Deprecated.Sets the value of the attribute: responseString.
Supported API: true- Specified by:
setResponseStringin interfaceContextHolder- Parameters:
a_ResponseString-
-
getStatus
public int getStatus()Deprecated.Gets the value of the attribute: status.
Supported API: true- Specified by:
getStatusin interfaceContextHolder- Returns:
- int
-
setStatus
public void setStatus(int a_Status) Deprecated.Sets the value of the attribute: status.
Supported API: true- Specified by:
setStatusin interfaceContextHolder- Parameters:
a_Status-
-
getFormData
Deprecated.Gets the value of the attribute: formData; Form Data is the data present in the form of the current HTML page.
Supported API: true- Specified by:
getFormDatain interfaceContextHolder- Returns:
- Properties
-
setFormData
Deprecated.Sets the value of the attribute: formData; Form Data is the data present in the form of the current HTML page.
Supported API: true- Specified by:
setFormDatain interfaceContextHolder- Parameters:
a_FormData-
-
getQueryData
Deprecated.Gets the value of the attribute: queryData; Query Data is the information present after the "?" mark on the URL of the current page.
Supported API: true- Specified by:
getQueryDatain interfaceContextHolder- Returns:
- Properties
-
setQueryData
Deprecated.Sets the value of the attribute: queryData; Query Data is the information present after the "?" mark on the URL of the current page.
Supported API: true- Specified by:
setQueryDatain interfaceContextHolder- Parameters:
a_QueryData-
-
addToResponseExceptions
Deprecated.Adds a LocalizableMessage message to the list of stackTraces that can be presented with the Windchill Script callshowResponseExceptions
Supported API: true- Specified by:
addToResponseExceptionsin interfaceContextHolder- Parameters:
newException-
-
addToResponseMessages
Deprecated.Adds a LocalizableMessage message to the list of localizable messages that can be presented with the Windchill Script callshowResponseMessages
Supported API: true- Specified by:
addToResponseMessagesin interfaceContextHolder- Parameters:
newMessage-
-
addToResponseHeaders
Deprecated.Adds a LocalizableMessage message to the list of localizable messages that can be presented with the Windchill Script callshowResponseHeaders
Supported API: true- Specified by:
addToResponseHeadersin interfaceContextHolder- Parameters:
newHeader-
-