|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.templateutil.processor.HTTPState
public class HTTPState
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 used through out the HTML Client as a "cookie" that contains the current "state" of the HTML Template Processing. In particular, all of the information required by the Factories that drive the processing of an HTML Template. Some of these factories are
There is also additional information that is available through the HTTPState object. The name/values pairs on the URL query string are available in the Properties object returned from the method getQueryData. Similarly, the name values pairs of the HTTP POST are available from the Properties object returned from the method getPostData.
If the URL goes throught the wt.enterprise.URLProcessor class, all of these values are set for by URLProcessor. If you go through any other class, there is not any guarentee.
There are also some convenience methods available from this class. Some, but not all, of these methods are :
| 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. |
void |
copyContextInto(ContextHolder contextHolder)
Deprecated. |
void |
copyStateFrom(HTTPState httpState)
Deprecated. |
Properties |
getFormData()
Deprecated. |
Hashtable |
getFormDataMultivalue()
Deprecated. |
Properties |
getQueryData()
Deprecated. |
HTTPRequest |
getRequestObj()
Deprecated. Returns the current wt.httpgw.HTTPRequest object for the current request from the client. |
Vector |
getResponseExceptions()
Deprecated. |
Vector |
getResponseFooters()
Deprecated. |
Vector |
getResponseHeaders()
Deprecated. |
Vector |
getResponseMessages()
Deprecated. |
HTTPResponse |
getResponseObj()
Deprecated. Returns the current wt.httpgw.HTTPResponse object for the current request from the client. |
String |
getResponseString()
Deprecated. |
int |
getStatus()
Deprecated. |
int |
getUpdateCount()
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 |
setFormDataMultivalue(Hashtable a_FormDataMultivalue)
Deprecated. |
void |
setQueryData(Properties a_QueryData)
Deprecated. |
void |
setRequestObj(HTTPRequest a_request)
Deprecated. Sets wt.httpgw.HTTPResponse object for the current request. |
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 |
setResponseObj(HTTPResponse a_response)
Deprecated. Sets wt.httpgw.HTTPResponse object for the current request. |
void |
setResponseString(String a_ResponseString)
Deprecated. |
void |
setStatus(int a_Status)
Deprecated. |
void |
setUpdateCount(int a_UpdateCount)
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void setContextAction(String a_ContextAction)
setContextAction in interface ContextHoldera_ContextAction - public void setContextObj(Object a_ContextObj)
setContextObj in interface ContextHoldera_ContextObj - public void setContextClassName(String a_ContextClassName)
setContextClassName in interface ContextHoldera_ContextClassName - public 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 Hashtable getFormDataMultivalue()
public void setFormDataMultivalue(Hashtable a_FormDataMultivalue)
a_FormDataMultivalue - public Properties getQueryData()
getQueryData in interface ContextHolderpublic void setQueryData(Properties a_QueryData)
setQueryData in interface ContextHoldera_QueryData - public int getUpdateCount()
public void setUpdateCount(int a_UpdateCount)
a_UpdateCount - public void copyContextInto(ContextHolder contextHolder)
contextHolder - public void copyStateFrom(HTTPState httpState)
httpState - 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 - public HTTPRequest getRequestObj()
public void setRequestObj(HTTPRequest a_request)
This should not be reset in general.
Supported API: true
HTTPRequest - public HTTPResponse getResponseObj()
public void setResponseObj(HTTPResponse a_response)
This should not be reset in general.
Supported API: true
HTTPResponse -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||