Class UrlRedirectClientWindow
- java.lang.Object
-
- jakarta.faces.lifecycle.ClientWindow
-
- org.apache.myfaces.lifecycle.clientwindow.UrlClientWindow
-
- org.apache.myfaces.lifecycle.clientwindow.UrlRedirectClientWindow
-
public class UrlRedirectClientWindow extends UrlClientWindow
-
-
Field Summary
-
Fields inherited from class org.apache.myfaces.lifecycle.clientwindow.UrlClientWindow
tokenGenerator
-
Fields inherited from class jakarta.faces.lifecycle.ClientWindow
CLIENT_WINDOW_MODE_PARAM_NAME, NUMBER_OF_CLIENT_WINDOWS_PARAM_NAME
-
-
Constructor Summary
Constructors Constructor Description UrlRedirectClientWindow(TokenGenerator tokenGenerator)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String
addRequestParameters(ExternalContext externalContext, String url)
protected String
constructInitialRedirectUrl(ExternalContext externalContext)
void
decode(FacesContext context)
static String
encodeURLParameterValue(String value, ExternalContext externalContext)
Encodes the given value using URLEncoder.encode() with the charset returned from ExternalContext.getResponseCharacterEncoding().-
Methods inherited from class org.apache.myfaces.lifecycle.clientwindow.UrlClientWindow
getId, getQueryURLParameters, setId
-
Methods inherited from class jakarta.faces.lifecycle.ClientWindow
disableClientWindowRenderMode, enableClientWindowRenderMode, isClientWindowRenderModeEnabled
-
-
-
-
Constructor Detail
-
UrlRedirectClientWindow
public UrlRedirectClientWindow(TokenGenerator tokenGenerator)
-
-
Method Detail
-
decode
public void decode(FacesContext context)
- Overrides:
decode
in classUrlClientWindow
-
constructInitialRedirectUrl
protected String constructInitialRedirectUrl(ExternalContext externalContext)
-
addRequestParameters
public static String addRequestParameters(ExternalContext externalContext, String url)
-
encodeURLParameterValue
public static String encodeURLParameterValue(String value, ExternalContext externalContext)
Encodes the given value using URLEncoder.encode() with the charset returned from ExternalContext.getResponseCharacterEncoding(). This is exactly how the ExternalContext impl encodes URL parameter values.- Parameters:
value
- value which should be encodedexternalContext
- current external-context- Returns:
- encoded value
-
-