Class HTTPState
- All Implemented Interfaces:
Externalizable,Serializable,ContextHolder,Evolvable
- The TemplateProcessorFactory
- The HTMLTemplateFactory
- The FormTaskDelegateFactory
- An Action (java.lang.Object is the default object)
- An Action and an Object (the class of the object is used)
- An Action and a named class
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 :
- get/setContextProperties
- copyStateFrom
- addToResponseExceptions
- addToResponseHeaders
Supported API: true
Extendable: false
- See Also:
-
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 TypeMethodDescriptionvoidcopyContextInto(ContextHolder contextHolder) Deprecated.voidcopyStateFrom(HTTPState httpState) Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Returns the current wt.httpgw.HTTPRequest object for the current request from the client.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Returns the current wt.httpgw.HTTPResponse object for the current request from the client.Deprecated.intDeprecated.intDeprecated.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.voidsetFormDataMultivalue(Hashtable a_FormDataMultivalue) Deprecated.voidsetQueryData(Properties a_QueryData) Deprecated.voidsetRequestObj(HTTPRequest a_request) Deprecated.Sets wt.httpgw.HTTPResponse object for the current request.voidsetResponseExceptions(Vector a_ResponseExceptions) Deprecated.voidsetResponseFooters(Vector a_ResponseFooters) Deprecated.voidsetResponseHeaders(Vector a_ResponseHeaders) Deprecated.voidsetResponseMessages(Vector a_ResponseMessages) Deprecated.voidsetResponseObj(HTTPResponse a_response) Deprecated.Sets wt.httpgw.HTTPResponse object for the current request.voidsetResponseString(String a_ResponseString) Deprecated.voidsetStatus(int a_Status) Deprecated.voidsetUpdateCount(int a_UpdateCount) Deprecated.
-
Method Details
-
setContextAction
Deprecated.Sets the value of the attribute: contextAction.
Supported API: true- Specified by:
setContextActionin interfaceContextHolder- Parameters:
a_ContextAction-
-
setContextObj
Deprecated.Sets the value of the attribute: contextObj.
Supported API: true- Specified by:
setContextObjin interfaceContextHolder- Parameters:
a_ContextObj-
-
setContextClassName
Deprecated.Sets the value of the attribute: contextClassName.
Supported API: true- Specified by:
setContextClassNamein interfaceContextHolder- Parameters:
a_ContextClassName-
-
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.
Supported API: true- Specified by:
getFormDatain interfaceContextHolder- Returns:
- Properties
-
setFormData
Deprecated.Sets the value of the attribute: formData.
Supported API: true- Specified by:
setFormDatain interfaceContextHolder- Parameters:
a_FormData-
-
getFormDataMultivalue
Deprecated.Gets the value of the attribute: formDataMultivalue.
Supported API: true- Returns:
- Hashtable
-
setFormDataMultivalue
Deprecated.Sets the value of the attribute: formDataMultivalue.
Supported API: true- Parameters:
a_FormDataMultivalue-
-
getQueryData
Deprecated.Gets the value of the attribute: queryData.
Supported API: true- Specified by:
getQueryDatain interfaceContextHolder- Returns:
- Properties
-
setQueryData
Deprecated.Sets the value of the attribute: queryData.
Supported API: true- Specified by:
setQueryDatain interfaceContextHolder- Parameters:
a_QueryData-
-
getUpdateCount
public int getUpdateCount()Deprecated.Gets the value of the attribute: updateCount.
Supported API: true- Returns:
- int
-
setUpdateCount
public void setUpdateCount(int a_UpdateCount) Deprecated.Sets the value of the attribute: updateCount.
Supported API: true- Parameters:
a_UpdateCount-
-
copyContextInto
Deprecated.
Supported API: true- Parameters:
contextHolder-
-
copyStateFrom
Deprecated.
Supported API: true- Parameters:
httpState-
-
getRequestObj
Deprecated.Returns the current wt.httpgw.HTTPRequest object for the current request from the client.
Supported API: true- Returns:
- HTTPRequest
-
setRequestObj
Deprecated.Sets wt.httpgw.HTTPResponse object for the current request. This is set in wt.enterprise.URLProcessor.This should not be reset in general.
Supported API: true- Parameters:
HTTPRequest-
-
getResponseObj
Deprecated.Returns the current wt.httpgw.HTTPResponse object for the current request from the client.
Supported API: true- Returns:
- HTTPResponse
-
setResponseObj
Deprecated.Sets wt.httpgw.HTTPResponse object for the current request. This is set in wt.enterprise.URLProcessor.This should not be reset in general.
Supported API: true- Parameters:
HTTPResponse-
-