|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.templateutil.processor.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 | |
private static String |
CLASSNAME
Deprecated. |
private static String |
RESOURCE
Deprecated. |
private HTTPState |
theState
Deprecated. |
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 |
Constructor Summary | |
FormTaskDelegate()
Deprecated. |
Method Summary | |
void |
addToResponseExceptions(Exception newException)
Deprecated. |
void |
addToResponseFooters(LocalizableMessage newFooter)
Deprecated. |
void |
addToResponseHeaders(LocalizableMessage newHeader)
Deprecated. |
void |
addToResponseMessages(LocalizableMessage newMessage)
Deprecated. |
void |
deleteFormDataFromSession(String formName)
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. |
HTTPState |
getState()
Deprecated. |
int |
getStatus()
Deprecated. |
abstract void |
processAction(ContentHTTPStream contentStream)
Deprecated. |
void |
saveFormDataInSession(String formName,
Properties formData)
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 |
setState(HTTPState a_State)
Deprecated. |
void |
setStatus(int a_Status)
Deprecated. |
void |
switchPages(String nextContextAction,
Object nextContextObj,
String nextContextClass)
Deprecated. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private HTTPState theState
Constructor Detail |
public FormTaskDelegate()
Method Detail |
public HTTPState getState()
public void setState(HTTPState a_State)
a_State
- public abstract void processAction(ContentHTTPStream contentStream) throws Exception
Use the addToResponse
methods to pass back messages on the status/results of the action.
Supported API: true
contentStream
-
Exception
public String getContextAction()
getContextAction
in interface ContextHolder
public void setContextAction(String a_ContextAction)
setContextAction
in interface ContextHolder
a_ContextAction
- public Object getContextObj()
getContextObj
in interface ContextHolder
public void setContextObj(Object a_ContextObj)
setContextObj
in interface ContextHolder
a_ContextObj
- public String getContextClassName()
getContextClassName
in interface ContextHolder
public void setContextClassName(String a_ContextClassName)
setContextClassName
in interface ContextHolder
a_ContextClassName
- public Properties getContextProperties()
getContextProperties
in interface ContextHolder
public void setContextProperties(Properties a_ContextProperties)
setContextProperties
in interface ContextHolder
a_ContextProperties
- public Vector getResponseExceptions()
getResponseExceptions
in interface ContextHolder
public void setResponseExceptions(Vector a_ResponseExceptions)
setResponseExceptions
in interface ContextHolder
a_ResponseExceptions
- public Vector getResponseFooters()
getResponseFooters
in interface ContextHolder
public void setResponseFooters(Vector a_ResponseFooters)
setResponseFooters
in interface ContextHolder
a_ResponseFooters
- public Vector getResponseHeaders()
getResponseHeaders
in interface ContextHolder
public void setResponseHeaders(Vector a_ResponseHeaders)
setResponseHeaders
in interface ContextHolder
a_ResponseHeaders
- public Vector getResponseMessages()
getResponseMessages
in interface ContextHolder
public void setResponseMessages(Vector a_ResponseMessages)
setResponseMessages
in interface ContextHolder
a_ResponseMessages
- public String getResponseString()
getResponseString
in interface ContextHolder
public void setResponseString(String a_ResponseString)
setResponseString
in interface ContextHolder
a_ResponseString
- public int getStatus()
getStatus
in interface ContextHolder
public void setStatus(int a_Status)
setStatus
in interface ContextHolder
a_Status
- public Properties getFormData()
getFormData
in interface ContextHolder
public void setFormData(Properties a_FormData)
setFormData
in interface ContextHolder
a_FormData
- public Properties getQueryData()
getQueryData
in interface ContextHolder
public void setQueryData(Properties a_QueryData)
setQueryData
in interface ContextHolder
a_QueryData
- public void addToResponseExceptions(Exception newException)
showResponseExceptions
Supported API: true
addToResponseExceptions
in interface ContextHolder
newException
- public void addToResponseMessages(LocalizableMessage newMessage)
showResponseMessages
Supported API: true
addToResponseMessages
in interface ContextHolder
newMessage
- public void addToResponseHeaders(LocalizableMessage newHeader)
showResponseHeaders
Supported API: true
addToResponseHeaders
in interface ContextHolder
newHeader
- public void addToResponseFooters(LocalizableMessage newFooter)
showResponseFooters
Supported API: true
addToResponseFooters
in interface ContextHolder
newFooter
- public void saveFormDataInSession(String formName, Properties formData)
NOTE: This method should not be used for entity create update/forms that can
contain nonmodeled attributes. Instead, use the method
saveEntityFormDataInSession() in com.ptc.core.HTMLtemplateutil.server.processors.EntityTaskDelegate
for such forms.
Supported API: false
formName
- key used to identify the form data in session contextformData
- form data to be savedpublic void deleteFormDataFromSession(String formName)
formName
- key used to identify the form data in session contextpublic void switchPages(String nextContextAction, Object nextContextObj, String nextContextClass) throws WTException
nextContextAction
- the name of the action for the next URL. Required.nextContextObj
- the object for the next URL. Optional.nextContextClass
- the class name for the next URL. Optional.
nextContextObj and nextContextClass are mutually exclusive.
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |