public class ERXRedirect extends WOComponent
WOComponent._EventLoggingEnabler, WOComponent.EventNSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.UtilityNSKeyValueCoding._BooleanFieldBinding, NSKeyValueCoding._BooleanMethodBinding, NSKeyValueCoding._FieldBinding, NSKeyValueCoding._ForwardingBinding, NSKeyValueCoding._KeyBinding, NSKeyValueCoding._KeyBindingCreation, NSKeyValueCoding._MethodBinding, NSKeyValueCoding._NumberFieldBinding, NSKeyValueCoding._NumberMethodBinding, NSKeyValueCoding._ReflectionKeyBindingCreation, NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.MapImplementation, NSKeyValueCoding.Null<T>, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.ValueAccessorNSValidation._MethodBinding, NSValidation._ValidationBinding, NSValidation.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException_Extension, _IsEventLoggingEnabled, _keyAssociations_CLASS_CLASS, _KeyPathSeparatorChar, KeyPathSeparatorNullValue_CLASS| Constructor and Description |
|---|
ERXRedirect(WOContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendToResponse(WOResponse response,
WOContext context) |
protected NSDictionary<java.lang.String,java.lang.Object> |
directActionQueryParameters() |
protected java.lang.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(java.lang.String directActionClass)
Sets the direct action class to redirect to.
|
void |
setDirectActionName(java.lang.String directActionName)
The direct action name to redirect to.
|
void |
setIncludeSessionID(boolean includeSessionID)
Sets whether or not a direct action URL should contain the session ID.
|
void |
setQueryParameters(NSDictionary<java.lang.String,? extends java.lang.Object> queryParameters)
Sets the query parameters for this redirect.
|
void |
setRequestHandlerKey(java.lang.String requestHandlerKey)
Sets the request handler key to redirect to.
|
void |
setRequestHandlerPath(java.lang.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(java.lang.String url)
Sets the URL to redirect to.
|
__valueForBinding, _associationWithName, _awakeInContext, _childTemplate, _cleanUpStatelessComponent, _componentDefinition, _componentUnroll, _isPage, _setContext, _setIsPage, _setParent, _setSubcomponent, _sleepInContext, _subcomponentForElementWithID, _templateNameForClass, _unroll, 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, pathURL, performParentAction, pullValuesFromParent, pushValuesToParent, reset, session, set_componentUnroll, set_unroll, setCachingEnabled, setValueForBinding, setVariableValueForName, sleep, synchronizesVariablesWithBindings, takeValueForKey, takeValueForKeyPath, takeValuesFromRequest, template, templateWithHTMLString, templateWithHTMLString, templateWithHTMLString, templateWithName, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, validationFailedWithException, valueForBinding, valueForBooleanBinding, valueForIntegerBinding, valueForKey, valueForKeyPath, valueForNSArrayBindings, valueForNSDictionaryBindings, valueForNumberBinding, valueForStringBinding, variableValueForName, variableWithNamepublic ERXRedirect(WOContext context)
public void setSecure(boolean secure)
secure - whether or not a secure URL should be generated
生成される URL がセキュリティー URL であるかどうかをセットします
URL を直接でセットする時には使用されません。secure - - セキュリティー URL を生成するかどうか
public void setIncludeSessionID(boolean includeSessionID)
false to maintain backward compatibility.includeSessionID - whether or not a sessionID should be includedpublic void setRequestHandlerKey(java.lang.String requestHandlerKey)
requestHandlerKey - the redirected request handler key
リダイレクト先のリダイレクト・リクエスト・ハンドラーをセットします
requestHandlerPath も同時にセットすることrequestHandlerKey - - リダイレクト・リクエスト・ハンドラー
public void setRequestHandlerPath(java.lang.String requestHandlerPath)
requestHandlerPath - the request handler path to redirect to
リダイレクト先のリクエスト・ハンドラー・パスをセットします
requestHandlerKey も同時にセットすることrequestHandlerPath - - リクエスト・ハンドラー・パス
public void setDirectActionClass(java.lang.String directActionClass)
directActionClass - the direct action class to redirect to
リダイレクト先のダイレクトアクション・クラスをセットします
directActionName も同時にセットすることdirectActionClass - - ダイレクトアクション・クラス
public void setDirectActionName(java.lang.String directActionName)
directActionName - the direct action name
リダイレクト先のダイレクトアクション名をセットしますdirectActionName - - ダイレクトアクション名
public void setUrl(java.lang.String url)
url - the URL to redirect to
リダイレクト先の URL をセットしますurl - - リダイレクト先の URL
public void setComponentToPage()
public void setComponent(WOComponent component)
component - the component instance to redirect to
リダイレクト先のコンポーネント・インスタンスをセットします。
このコンポーネントはカレント・コンテクストのページとして置き換わり、
コンテクスト ID のリクエストがリダイレクトするコンポーネントを戻すカレント・コンテクストへの URL が生成されます。
リダイレクト・コンポーネントをセットすることでコンポーネントは一般ページ・キャシュ(Ajax ページ・キャシュではなく)
に登録され、このリクエストでの Ajax キャシュは使用禁止されます。結果としてコンポーネントへのリダイレクトは
(ハイパーリンクと同じく)バックトラック・キャシュを作成します。component - - リダイレクト先のコンポーネント・インスタンス
public void setQueryParameters(NSDictionary<java.lang.String,? extends java.lang.Object> queryParameters)
queryParameters - the query parameters for this redirect
リダイレクトのクエリー・パラメータをセットしますqueryParameters - - リダイレクトのクエリー・パラメータ
protected java.lang.String queryParametersString()
protected NSDictionary<java.lang.String,java.lang.Object> directActionQueryParameters()
public void appendToResponse(WOResponse response, WOContext context)
appendToResponse in class WOComponentCopyright © 2002 – 2022 Project Wonder.