Class RedirectObject
...?Action=CheckIn&Class=&Location=&Form=CheckInDocument&Method=processForm&oid=VR%3Awt.doc.WTDocument%3A281101
currently has a response page that presents the Properties page for that document. The problem is that if the "Reload" or "Refresh" button on the browser is clicked, an error message is returned as the object is already checked in.
With this service, the intermediate page will forward the browser to the "true" response page and the correct URL for that response page will be in the browser.
The correct usage of this service relies on the following :
- You have the following entry in service.properties
- You have the following entry in htmltemplate.properties
You will use this service, visibly,in FormTaskDelegate. You will perform the desired action in FormTaskDelegate and set the response page information in the usual way
- Set the context on the HTTPState object, i.e. the contextAction, the contextObj, the contextClassName
- Use the addToResponseHeaders and addToResponseFooters
RedirectObject redirectObject = new RedirectObject();
redirectObject.setRedirection( getState() );
The URL that is generated for the redirect page is is based on the settings for the context. The URL will be one of the following
- ../URLTemplateAction?action="contextAction"&oid="reference String to current contextObj" - if contextObj != null
- ../URLTemplateAction?action="contextAction"&class="contextClassName" - if contextClassName != null
- ../URLTemplateAction?action="contextAction" - otherwise
RedirectObject redirectObject = new RedirectObject();
Properties hiddenProperties = new Properties();
// add name/values pairs to hiddenProperties
...
//
setContextProperties( hiddenProperties );
redirectObject.setRedirection( getState() );
Should you need a different format for the queryString or if you need
to go
through a different gateway method other than URLTemplateProcessor, you
will need to use the other setRedirection methods.
Supported API: true
Extendable: false
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionprotected PropertiesDeprecated.protected StringDeprecated.protected StringDeprecated.protected voidsetFormData(Properties a_FormData) Deprecated.protected voidsetQueryString(String a_QueryString) Deprecated.setRedirection(String urlString, Properties hiddenFields) Deprecated.setRedirection(String method, Properties queryString, Properties hiddenFields) Deprecated.setRedirection(String method, Properties queryString, Properties hiddenFields, HTTPState theState) Deprecated.setRedirection(String urlString, Properties hiddenFields, HTTPState theState) Deprecated.setRedirection(HTTPState currentState) Deprecated.protected voidsetRedirectUrl(String a_RedirectUrl) Deprecated.
-
Field Details
-
REDIRECT_SERVICE_ACTION
Deprecated.
Supported API: true- See Also:
-
-
Method Details
-
getRedirectUrl
Deprecated.Gets the value of the attribute: redirectUrl.
Supported API: true- Returns:
- String
-
setRedirectUrl
Deprecated.Sets the value of the attribute: redirectUrl.
Supported API: true- Parameters:
a_RedirectUrl-
-
getQueryString
Deprecated.Gets the value of the attribute: queryString.
Supported API: true- Returns:
- String
-
setQueryString
Deprecated.Sets the value of the attribute: queryString.
Supported API: true- Parameters:
a_QueryString-
-
getFormData
Deprecated.Gets the value of the attribute: formData.
Supported API: true- Returns:
- Properties
-
setFormData
Deprecated.Sets the value of the attribute: formData.
Supported API: true- Parameters:
a_FormData-
-
setRedirection
Deprecated.
Supported API: true- Parameters:
urlString-hiddenFields-- Returns:
- HTTPState
-
setRedirection
Deprecated.
Supported API: true- Parameters:
urlString-hiddenFields-theState-- Returns:
- HTTPState
-
setRedirection
Deprecated.
Supported API: true- Parameters:
method-queryString-hiddenFields-- Returns:
- HTTPState
-
setRedirection
public HTTPState setRedirection(String method, Properties queryString, Properties hiddenFields, HTTPState theState) Deprecated.
Supported API: true- Parameters:
method-queryString-hiddenFields-theState-- Returns:
- HTTPState
-
setRedirection
Deprecated.
Supported API: true- Parameters:
currentState-- Returns:
- HTTPState
-