|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.templateutil.processor.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 | |
private static String |
CLASSNAME
Deprecated. |
private String |
contextAction
Deprecated. |
private String |
contextClassName
Deprecated. |
private String[] |
contextMask
Deprecated. |
private Object |
contextObj
Deprecated. |
private Properties |
contextProperties
Deprecated. |
(package private) ServletSessionCookieManager |
cookieManager
Deprecated. |
private String |
currenPage
Deprecated. |
private String |
editMask
Deprecated. |
static long |
EXTERNALIZATION_VERSION_UID
Deprecated. |
private Properties |
formData
Deprecated. |
private Hashtable |
formDataMultivalue
Deprecated. |
protected static long |
OLD_FORMAT_VERSION_UID
Deprecated. |
static String |
ORIGINAL_CONTEXT_ACTION
Deprecated. |
private static String |
PAGE
Deprecated. |
private WTPreferences |
pagePreferences
Deprecated. |
private Properties |
queryData
Deprecated. |
private HTTPRequest |
requestObj
Deprecated. |
private static String |
RESOURCE
Deprecated. |
private Vector |
responseExceptions
Deprecated. |
private Vector |
responseFooters
Deprecated. |
private Vector |
responseHeaders
Deprecated. |
private Vector |
responseMessages
Deprecated. |
private HTTPResponse |
responseObj
Deprecated. |
private String |
responseString
Deprecated. |
(package private) static long |
serialVersionUID
Deprecated. |
private HTTPState |
state
Deprecated. |
private int |
status
Deprecated. |
private int |
updateCount
Deprecated. |
private boolean |
url_state
Deprecated. |
private URLFactory |
urlFactory
Deprecated. |
private WTPreferences |
userPreferences
Deprecated. |
private static String |
WEBAPP
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 | |
HTTPState()
Deprecated. |
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. |
ServletSessionCookie |
createServletSessionCookie(String id)
Deprecated. |
String |
getContextAction()
Deprecated. Gets the value of the attribute: contextAction. |
String |
getContextClassName()
Deprecated. Gets the value of the attribute: contextClassName. |
String[] |
getContextMask()
Deprecated. |
Object |
getContextObj()
Deprecated. Gets the value of the attribute: contextObj. |
Properties |
getContextProperties()
Deprecated. Gets the value of the attribute: contextProperties. |
ServletSessionCookieManager |
getCookieManager()
Deprecated. |
String |
getCurrentPage()
Deprecated. |
String |
getEditMask()
Deprecated. |
Properties |
getFormData()
Deprecated. |
Hashtable |
getFormDataMultivalue()
Deprecated. |
WTPreferences |
getPagePreferences()
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. |
ServletSessionCookie |
getServletSessionCookie(String id)
Deprecated. |
private HTTPState |
getState()
Deprecated. |
int |
getStatus()
Deprecated. |
int |
getUpdateCount()
Deprecated. |
URLFactory |
getURLFactory()
Deprecated. |
Preferences |
getUserPreferences()
Deprecated. |
boolean |
isFullyQualifiedURLFactory()
Deprecated. |
void |
readExternal(ObjectInput input)
Deprecated. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Deprecated. Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(HTTPState thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Deprecated. |
void |
refreshPreferences()
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 |
setCookieManager(ServletSessionCookieManager cookieManager)
Deprecated. |
void |
setCurrentPage(String currentPage)
Deprecated. |
void |
setFormData(Properties a_FormData)
Deprecated. |
void |
setFormDataMultivalue(Hashtable a_FormDataMultivalue)
Deprecated. |
void |
setFullyQualifiedURLFactory(boolean state)
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. |
private void |
setState(HTTPState a_state)
Deprecated. |
void |
setStatus(int a_Status)
Deprecated. |
void |
setUpdateCount(int a_UpdateCount)
Deprecated. |
void |
setURLFactory(URLFactory urlFactory)
Deprecated. |
void |
updateServletSession()
Deprecated. |
void |
writeExternal(ObjectOutput output)
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 state
private String contextAction
private Object contextObj
private String contextClassName
private Properties contextProperties
private Vector responseExceptions
private Vector responseFooters
private Vector responseHeaders
private Vector responseMessages
private String responseString
private int status
private Properties formData
private Hashtable formDataMultivalue
private Properties queryData
private int updateCount
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private static final String PAGE
private HTTPRequest requestObj
private HTTPResponse responseObj
private String currenPage
private WTPreferences pagePreferences
private WTPreferences userPreferences
private String[] contextMask
private String editMask
private URLFactory urlFactory
private static String WEBAPP
private boolean url_state
public static final String ORIGINAL_CONTEXT_ACTION
ServletSessionCookieManager cookieManager
Constructor Detail |
public HTTPState()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(HTTPState thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
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()
The context class name refers to the class of that should be used by the factories when generating the page from an HTML Template.
This method is called by the factories if there is not a context object.
This field is not required and should be set to null if it
is not to be used by the Factories.
Supported API: false
getContextClassName
in interface ContextHolder
public void setContextClassName(String a_ContextClassName)
setContextClassName
in interface ContextHolder
a_ContextClassName
- public Properties getContextProperties()
This field is a Convenience field for the processing of an HTML
template. If there is information for generating a single page
that should be passed between
different template processors(sub-template processing) or between
a FormTaskDelegate and a template processor (generating a response
page) and is not either data from the query string or the Post data,
then the contextProperties is the place to do this.
Supported API: false
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 Hashtable getFormDataMultivalue()
public void setFormDataMultivalue(Hashtable a_FormDataMultivalue)
a_FormDataMultivalue
- public Properties getQueryData()
getQueryData
in interface ContextHolder
public void setQueryData(Properties a_QueryData)
setQueryData
in interface ContextHolder
a_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 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
- private HTTPState getState()
private void setState(HTTPState a_state)
public HTTPRequest getRequestObj()
public void setRequestObj(HTTPRequest a_request)
This should not be reset in general.
Supported API: true
public HTTPResponse getResponseObj()
public void setResponseObj(HTTPResponse a_response)
This should not be reset in general.
Supported API: true
public void setCookieManager(ServletSessionCookieManager cookieManager)
public ServletSessionCookieManager getCookieManager()
public ServletSessionCookie getServletSessionCookie(String id)
public ServletSessionCookie createServletSessionCookie(String id)
public void updateServletSession()
public void setCurrentPage(String currentPage)
public String getCurrentPage()
public Preferences getUserPreferences()
public String[] getContextMask()
public String getEditMask()
public WTPreferences getPagePreferences()
public void refreshPreferences()
public void setFullyQualifiedURLFactory(boolean state)
public boolean isFullyQualifiedURLFactory()
public void setURLFactory(URLFactory urlFactory)
public URLFactory getURLFactory()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |