public static class AJSFContext.RedirectOptionsBuilder extends Object
Constructor and Description |
---|
RedirectOptionsBuilder() |
Modifier and Type | Method and Description |
---|---|
AJSFContext.RedirectOptionsBuilder |
addParam(String key,
String value) |
AJSFContext.RedirectOptions |
build() |
static AJSFContext.RedirectOptions |
none() |
AJSFContext.RedirectOptionsBuilder |
redirectScript(String redirectScript) |
void |
subpath(String subpath) |
public AJSFContext.RedirectOptionsBuilder addParam(String key, String value)
key
- Key of the additional URL parameters to be added to the URL.value
- Value of the additional URL parameters to be added to the URL.public AJSFContext.RedirectOptionsBuilder redirectScript(String redirectScript)
redirectScript
- Perform the redirect on the client via the given custom JavaScript. Any occurrences of
#href#
are replaced with a JavaScript string literal of the URL to which to redirect.public void subpath(String subpath)
subpath
- An additional subpath after the redirect URI. Usually used for REST-like parameters. For example,
/ui/forms/1234
, with 1234
being the subpath.public AJSFContext.RedirectOptions build()
public static AJSFContext.RedirectOptions none()
Copyright © 2019 XIMA MEDIA GmbH. All rights reserved.