com.webobjects.appserver
Class WORedirect
java.lang.Object
|
+--com.webobjects.appserver.WOElement
|
+--com.webobjects.appserver.WOComponent
|
+--com.webobjects.appserver.WORedirect
- All Implemented Interfaces:
- Cloneable, NSKeyValueCoding, NSKeyValueCoding.ErrorHandling, NSKeyValueCodingAdditions, NSValidation, Serializable, WOActionResults
- public class WORedirect
- extends WOComponent
WORedirect is a subclass of WOComponent that may be used to force the user's
browser to redirect to another URL. You should only return this component
as a response to an action method and never use it in an declarations file
directly. This component can be useful, for example, if you have an image
map with both static and dynamic actions.
- See Also:
- Serialized Form
Method Summary |
void |
appendToResponse(WOResponse aResponse,
WOContext aContext)
Adds the redirect to the header of the WOResponse. |
void |
setUrl(String aString)
Sets the URL to which the user's browser should be redirected. |
void |
setURL(String aString)
Deprecated. : setURL is a deprecated method use instead setUrl. |
String |
url()
Return the URL to which the user's browser should be redirected. |
Methods inherited from class com.webobjects.appserver.WOComponent |
application, awake, baseURL, bindingKeys, canAccessFieldsDirectly, canGetValueForBinding, canSetValueForBinding, clone, context, debugString, descriptionForResponse, ensureAwakeInContext, frameworkName, generateResponse, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hasBinding, hasSession, invokeAction, isCachingEnabled, isEventLoggingEnabled, isStateless, logString, name, pageWithName, parent, path, performParentAction, pullValuesFromParent, pushValuesToParent, reset, session, set_componentUnroll, set_unroll, setCachingEnabled, setValueForBinding, sleep, synchronizesVariablesWithBindings, takeValueForKey, takeValueForKeyPath, takeValuesFromRequest, template, templateWithHTMLString, templateWithName, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, validationFailedWithException, valueForBinding, valueForKey, valueForKeyPath |
WORedirect
public WORedirect(WOContext aContext)
- Creates a new WORedirect.
- Parameters:
aContext
- a WOContext object that represents the
context of the transaction
appendToResponse
public void appendToResponse(WOResponse aResponse,
WOContext aContext)
- Adds the redirect to the header of the WOResponse.
- Overrides:
appendToResponse
in class WOComponent
- Parameters:
aResponse
- the response being handledaContext
- a WOContext object that represents the
context of the transaction
setURL
public void setURL(String aString)
- Deprecated. : setURL is a deprecated method use instead setUrl.
setUrl
public void setUrl(String aString)
- Sets the URL to which the user's browser should be redirected.
- Parameters:
aString
- the URL
url
public String url()
- Return the URL to which the user's browser should be redirected.
- Returns:
- String representation of the URL
Copyright © 2003 Apple Computer, Inc.