|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.enterprise.BasicTemplateProcessor
wt.templateutil.processor.DefaultTemplateProcessor
wt.templateutil.processor.GenerateFormProcessor
wt.templateutil.processor.RedirectPageProcessor
public class RedirectPageProcessor
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 TemplateProcessor processes the page ReDirectTemplate.html to generate an HTML Form with a URL to the "true" response page and information in hidden fields in the HTML Form to be used to help generate the "true" response page.
The Primary goal of this service is to allow the correct URL to appear in the browser relative to the response page.
For example, if you create a document and you want the response page to be the Properties page, without redirecting the Properties page is the response page, but the URL in the browser is to the Create Action. The causes a problem is
| Field Summary | |
|---|---|
static String |
REDIRECT_EXCEPTION_KEY
Deprecated. |
static String |
REDIRECT_FOOTER_KEY
Deprecated. |
static String |
REDIRECT_HEADER_KEY
Deprecated. |
| Fields inherited from interface wt.templateutil.processor.ProcessorService |
|---|
STATE |
| 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 |
| Fields inherited from interface wt.templateutil.processor.ContextTranslator |
|---|
CONTEXT_LIST_IN, CONTEXT_LIST_OUT |
| Method Summary | |
|---|---|
void |
addHiddenFields(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. |
void |
getHiddenField(String name,
String value)
Deprecated. |
protected PrintWriter |
getOut()
Deprecated. |
HTTPState |
getState()
Deprecated. |
void |
printHiddenExceptions(Vector messages,
Properties parameters,
Locale locale,
OutputStream os,
String startsWith)
Deprecated. |
void |
printHiddenMessages(Vector messages,
Properties parameters,
Locale locale,
OutputStream os,
String startsWith)
Deprecated. |
void |
setHtmlFormAction(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. |
protected void |
setOut(PrintWriter a_Out)
Deprecated. |
void |
setState(HTTPState a_State)
Deprecated. |
void |
showRedirectExceptions(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. |
void |
showRedirectFooters(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. |
void |
showRedirectHeaders(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. |
| Methods inherited from class wt.templateutil.processor.GenerateFormProcessor |
|---|
contextualValue, listLifeCycles |
| Methods inherited from class wt.templateutil.processor.DefaultTemplateProcessor |
|---|
displayAttributeLabel, displayAttributeVal, getAttributes, getContextPropertyValue, getHtmlTemplateFactory, getPAGE_EXPIRATION, getPageExpirationResource, getTemplate, setContextPropertyValue, setNameProcessor, setPAGE_EXPIRATION, setPageExpirationResource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String REDIRECT_HEADER_KEY
public static final String REDIRECT_FOOTER_KEY
public static final String REDIRECT_EXCEPTION_KEY
| Method Detail |
|---|
protected PrintWriter getOut()
protected void setOut(PrintWriter a_Out)
a_Out -
public void setHtmlFormAction(Properties parameters,
Locale locale,
OutputStream os)
throws WTException
getRedirectUrl
method of the
RedirectObject is called for this field.
The correct usage of this call in Windchill script it :
<FORM name="redirectForm"
action=<SCRIPT LANGUAGE=Windchill><!--setHtmlFormAction--></SCRIPT>
method=POST>
The contextObj is required to be an instance of the RedirectObject
Supported API: true
parameters - locale - os -
WTException
public void addHiddenFields(Properties parameters,
Locale locale,
OutputStream os)
throws WTException
The correct usage of this call in Windchill script it :
<SCRIPT LANGUAGE=Windchill>
<!--
addHiddenFields
-->
</SCRIPT>
The contextObj is required to be an instance of the RedirectObject
Supported API: true
parameters - locale - os -
WTException
public void showRedirectHeaders(Properties parameters,
Locale locale,
OutputStream os)
throws WTException
The correct usage of this call in Windchill script it :
<SCRIPT LANGUAGE=Windchill>
<!--
useProcessorService service=wt.templateutil.RedirectPageProcessor
method=showRedirectHeaders
-->
</SCRIPT>
Supported API: true
parameters - locale - os -
WTException
public void showRedirectFooters(Properties parameters,
Locale locale,
OutputStream os)
throws WTException
The correct usage of this call in Windchill script it :
<SCRIPT LANGUAGE=Windchill>
<!--
useProcessorService service=wt.templateutil.RedirectPageProcessor
method=showRedirectFooters
-->
</SCRIPT>
Supported API: true
parameters - locale - os -
WTException
public void showRedirectExceptions(Properties parameters,
Locale locale,
OutputStream os)
throws WTException
The correct usage of this call in Windchill script it :
<SCRIPT LANGUAGE=Windchill>
<!--
useProcessorService service=wt.templateutil.RedirectPageProcessor
method=showRedirectExceptions
-->
</SCRIPT>
Supported API: true
parameters - locale - os -
WTException
public void printHiddenMessages(Vector messages,
Properties parameters,
Locale locale,
OutputStream os,
String startsWith)
<INPUT TYPE=HIDDEN NAME=" + name + " VALUE=" + value + "<
Where name = startsWith + i
and value is either the stackTrace of an Exception, the localized String of a LocalizableMessage, or simply the toString method on the object.
If the element at position i is null, nothing is printed out.
The actual printing and formatting of the Hidden Form Element is done
by getHiddenField
Supported API: true
messages - parameters - locale - os - startsWith -
public void printHiddenExceptions(Vector messages,
Properties parameters,
Locale locale,
OutputStream os,
String startsWith)
<INPUT TYPE=HIDDEN NAME=" + name + " VALUE=" + value + "<
Where name = startsWith + i
and value is either the stackTrace of an Exception, the localized String of a LocalizableMessage, or simply the toString method on the object.
If the element at position i is null, nothing is printed out.
The actual printing and formatting of the Hidden Form Element is done
by getHiddenField
Supported API: true
messages - parameters - locale - os - startsWith -
public void getHiddenField(String name,
String value)
name - value - public HTTPState getState()
getState in interface ProcessorServicepublic void setState(HTTPState a_State)
setState in interface ProcessorServicea_State -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||