|
Project Wonder 5.0.0.8794 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.webobjects.appserver.WOElement
com.webobjects.appserver.WOComponent
er.extensions.appserver.ERXRedirect
public class ERXRedirect
ERXComponentRedirect is like a WORedirect except that you can give it a compoennt instance to redirect to (as well as several other convenient methods of redirecting). This is useful for situations like in an Ajax request where you want to do a full page reload that points to the component that you would normally return from your action method. If your redirect is in an Ajax request, this will generate a script tag that reassigns document.location.href to the generated url.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.webobjects.appserver.WOComponent |
|---|
WOComponent._EventLoggingEnabler, WOComponent.Event |
| Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions |
|---|
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility |
| Nested classes/interfaces inherited from interface com.webobjects.foundation.NSValidation |
|---|
NSValidation._MethodBinding, NSValidation._ValidationBinding, NSValidation.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException |
| Field Summary |
|---|
| Fields inherited from class com.webobjects.appserver.WOComponent |
|---|
_Extension, _IsEventLoggingEnabled, _keyAssociations, MINUSONE |
| Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding.ErrorHandling |
|---|
_CLASS |
| Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions |
|---|
_CLASS, _KeyPathSeparatorChar, KeyPathSeparator |
| Fields inherited from interface com.webobjects.foundation.NSValidation |
|---|
_CLASS |
| Constructor Summary | |
|---|---|
ERXRedirect(WOContext context)
|
|
| Method Summary | |
|---|---|
void |
appendToResponse(WOResponse response,
WOContext context)
|
protected String |
queryParametersString()
Returns the query parameters dictionary as a string. |
void |
setComponent(WOComponent component)
Sets the component instance to redirect to. |
void |
setComponentToPage()
Sets the redirect component to be the original page that we were just on. |
void |
setDirectActionClass(String directActionClass)
Sets the direct action class to redirect to. |
void |
setDirectActionName(String directActionName)
The direct action name to redirect to. |
void |
setQueryParameters(NSDictionary<String,? extends Object> queryParameters)
Sets the query parameters for this redirect. |
void |
setRequestHandlerKey(String requestHandlerKey)
Sets the request handler key to redirect to. |
void |
setRequestHandlerPath(String requestHandlerPath)
Sets the request handler path to redirect to. |
void |
setSecure(boolean secure)
Sets whether or not a secure URL should be generated. |
void |
setUrl(String url)
Sets the URL to redirect to. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ERXRedirect(WOContext context)
| Method Detail |
|---|
public void setSecure(boolean secure)
secure - whether or not a secure URL should be generatedpublic void setRequestHandlerKey(String requestHandlerKey)
requestHandlerKey - the redirected request handler keypublic void setRequestHandlerPath(String requestHandlerPath)
requestHandlerPath - the request handler path to redirect topublic void setDirectActionClass(String directActionClass)
directActionClass - the direct action class to redirect topublic void setDirectActionName(String directActionName)
directActionName - the direct action namepublic void setUrl(String url)
url - the URL to redirect topublic void setComponentToPage()
public void setComponent(WOComponent component)
component - the component instance to redirect topublic void setQueryParameters(NSDictionary<String,? extends Object> queryParameters)
queryParameters - the query parameters for this redirectprotected String queryParametersString()
public void appendToResponse(WOResponse response,
WOContext context)
appendToResponse in class WOComponent
|
Last updated: Thu, Jan 8, 2009 12:32 PM EST | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||