@Alternative public class ServerSideWindowHandler extends DefaultWindowHandler
useWindowAwareUrlEncoding
Modifier | Constructor and Description |
---|---|
protected |
ServerSideWindowHandler() |
protected |
ServerSideWindowHandler(WindowContextConfig config) |
Modifier and Type | Method and Description |
---|---|
String |
restoreWindowId(javax.faces.context.ExternalContext externalContext)
Allows to restore the window-id depending on the window-strategy supported by the implementation
|
void |
sendRedirect(javax.faces.context.ExternalContext externalContext,
String url,
boolean addRequestParameter)
Allows to intercept redirects
|
addWindowIdIfNecessary, createWindowId, encodeURL, getCurrentWindowId
protected ServerSideWindowHandler()
@Inject protected ServerSideWindowHandler(WindowContextConfig config)
public void sendRedirect(javax.faces.context.ExternalContext externalContext, String url, boolean addRequestParameter) throws IOException
sendRedirect
in interface WindowHandler
sendRedirect
in class DefaultWindowHandler
externalContext
- current external-contexturl
- current URLaddRequestParameter
- flag which indicates if the request-parameters should be added to the URLIOException
- exception which might be thrown by the external-context during the redirectpublic String restoreWindowId(javax.faces.context.ExternalContext externalContext)
restoreWindowId
in interface WindowHandler
restoreWindowId
in class DefaultWindowHandler
externalContext
- current external-contextCopyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.