org.apache.myfaces.extensions.cdi.jsf2.impl.scope.conversation
Class ServerSideWindowHandler

java.lang.Object
  extended by org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.DefaultWindowHandler
      extended by 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

Field Summary
 
Fields inherited from class org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.DefaultWindowHandler
useWindowAwareUrlEncoding
 
Constructor Summary
protected ServerSideWindowHandler()
           
protected ServerSideWindowHandler(WindowContextConfig config)
           
 
Method Summary
 String restoreWindowId(javax.faces.context.ExternalContext externalContext)
           
 void sendRedirect(javax.faces.context.ExternalContext externalContext, String url, boolean addRequestParameter)
           
 
Methods inherited from class org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.DefaultWindowHandler
addWindowIdIfNecessary, createWindowId, encodeURL, getCurrentWindowId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerSideWindowHandler

protected ServerSideWindowHandler()

ServerSideWindowHandler

@Inject
protected ServerSideWindowHandler(WindowContextConfig config)
Method Detail

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.