org.apache.myfaces.extensions.cdi.jsf2.impl.scope.conversation
Class ServerSideWindowHandler
java.lang.Object
org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.DefaultWindowHandler
org.apache.myfaces.extensions.cdi.jsf2.impl.scope.conversation.ServerSideWindowHandler
- All Implemented Interfaces:
- Serializable, WindowHandler
@Alternative
public class ServerSideWindowHandler
- extends DefaultWindowHandler
use this implementation to avoid tokens in the url.
attention: e.g. manual window refreshes aren't supported due to browser restrictions
- Author:
- Gerhard Petracek
- See Also:
- Serialized Form
Method Summary |
String |
restoreWindowId(javax.faces.context.ExternalContext externalContext)
|
void |
sendRedirect(javax.faces.context.ExternalContext externalContext,
String url,
boolean addRequestParameter)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServerSideWindowHandler
protected ServerSideWindowHandler()
ServerSideWindowHandler
@Inject
protected ServerSideWindowHandler(WindowContextConfig config)
sendRedirect
public void sendRedirect(javax.faces.context.ExternalContext externalContext,
String url,
boolean addRequestParameter)
throws IOException
- Specified by:
sendRedirect
in interface WindowHandler
- Overrides:
sendRedirect
in class DefaultWindowHandler
- Throws:
IOException
restoreWindowId
public String restoreWindowId(javax.faces.context.ExternalContext externalContext)
- Specified by:
restoreWindowId
in interface WindowHandler
- Overrides:
restoreWindowId
in class DefaultWindowHandler
Copyright © 2010 The Apache Software Foundation. All Rights Reserved.