|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.templateutil.processor.FormTaskDelegate
public abstract class FormTaskDelegate
Deprecation Notice: This class is still valid for this release, however this serves as advance notice that it will be removed in the future. All user interfaces built using the Windchill HTML Template Processing client architecture will be rewritten using a different framework in an upcoming release. This class is the parent class of all classes that will be used to process an action back on the server for an HTTP Request ( URL with a query string) or an HTTP POST ( HTML page with an HTML Form in it).
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 | |
|---|---|
void |
addToResponseExceptions(Exception newException)
Deprecated. |
void |
addToResponseFooters(LocalizableMessage newFooter)
Deprecated. |
void |
addToResponseHeaders(LocalizableMessage newHeader)
Deprecated. |
void |
addToResponseMessages(LocalizableMessage newMessage)
Deprecated. |
String |
getContextAction()
Deprecated. |
String |
getContextClassName()
Deprecated. |
Object |
getContextObj()
Deprecated. |
Properties |
getContextProperties()
Deprecated. |
Properties |
getFormData()
Deprecated. |
Properties |
getQueryData()
Deprecated. |
Vector |
getResponseExceptions()
Deprecated. |
Vector |
getResponseFooters()
Deprecated. |
Vector |
getResponseHeaders()
Deprecated. |
Vector |
getResponseMessages()
Deprecated. |
String |
getResponseString()
Deprecated. |
int |
getStatus()
Deprecated. |
abstract void |
processAction(wt.content.ContentHTTPStream contentStream)
Deprecated. |
void |
setContextAction(String a_ContextAction)
Deprecated. |
void |
setContextClassName(String a_ContextClassName)
Deprecated. |
void |
setContextObj(Object a_ContextObj)
Deprecated. |
void |
setContextProperties(Properties a_ContextProperties)
Deprecated. |
void |
setFormData(Properties a_FormData)
Deprecated. |
void |
setQueryData(Properties a_QueryData)
Deprecated. |
void |
setResponseExceptions(Vector a_ResponseExceptions)
Deprecated. |
void |
setResponseFooters(Vector a_ResponseFooters)
Deprecated. |
void |
setResponseHeaders(Vector a_ResponseHeaders)
Deprecated. |
void |
setResponseMessages(Vector a_ResponseMessages)
Deprecated. |
void |
setResponseString(String a_ResponseString)
Deprecated. |
void |
setStatus(int a_Status)
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public abstract void processAction(wt.content.ContentHTTPStream contentStream)
throws Exception
Use the addToResponse
methods to pass back messages on the status/results of the action.
Supported API: true
contentStream -
Exceptionpublic String getContextAction()
getContextAction in interface ContextHolderpublic void setContextAction(String a_ContextAction)
setContextAction in interface ContextHoldera_ContextAction - public Object getContextObj()
getContextObj in interface ContextHolderpublic void setContextObj(Object a_ContextObj)
setContextObj in interface ContextHoldera_ContextObj - public String getContextClassName()
getContextClassName in interface ContextHolderpublic void setContextClassName(String a_ContextClassName)
setContextClassName in interface ContextHoldera_ContextClassName - public Properties getContextProperties()
getContextProperties in interface ContextHolderpublic void setContextProperties(Properties a_ContextProperties)
setContextProperties in interface ContextHoldera_ContextProperties - public Vector getResponseExceptions()
getResponseExceptions in interface ContextHolderpublic void setResponseExceptions(Vector a_ResponseExceptions)
setResponseExceptions in interface ContextHoldera_ResponseExceptions - public Vector getResponseFooters()
getResponseFooters in interface ContextHolderpublic void setResponseFooters(Vector a_ResponseFooters)
setResponseFooters in interface ContextHoldera_ResponseFooters - public Vector getResponseHeaders()
getResponseHeaders in interface ContextHolderpublic void setResponseHeaders(Vector a_ResponseHeaders)
setResponseHeaders in interface ContextHoldera_ResponseHeaders - public Vector getResponseMessages()
getResponseMessages in interface ContextHolderpublic void setResponseMessages(Vector a_ResponseMessages)
setResponseMessages in interface ContextHoldera_ResponseMessages - public String getResponseString()
getResponseString in interface ContextHolderpublic void setResponseString(String a_ResponseString)
setResponseString in interface ContextHoldera_ResponseString - public int getStatus()
getStatus in interface ContextHolderpublic void setStatus(int a_Status)
setStatus in interface ContextHoldera_Status - public Properties getFormData()
getFormData in interface ContextHolderpublic void setFormData(Properties a_FormData)
setFormData in interface ContextHoldera_FormData - public Properties getQueryData()
getQueryData in interface ContextHolderpublic void setQueryData(Properties a_QueryData)
setQueryData in interface ContextHoldera_QueryData - public void addToResponseExceptions(Exception newException)
showResponseExceptions
Supported API: true
addToResponseExceptions in interface ContextHoldernewException - public void addToResponseMessages(LocalizableMessage newMessage)
showResponseMessages
Supported API: true
addToResponseMessages in interface ContextHoldernewMessage - public void addToResponseHeaders(LocalizableMessage newHeader)
showResponseHeaders
Supported API: true
addToResponseHeaders in interface ContextHoldernewHeader - public void addToResponseFooters(LocalizableMessage newFooter)
showResponseFooters
Supported API: true
addToResponseFooters in interface ContextHoldernewFooter -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||