org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation
Class DefaultWindowHandler

java.lang.Object
  extended by org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.DefaultWindowHandler
All Implemented Interfaces:
Serializable, WindowHandler
Direct Known Subclasses:
ClientSideWindowHandler

@ApplicationScoped
public class DefaultWindowHandler
extends Object
implements WindowHandler

Author:
Gerhard Petracek
See Also:
Serialized Form

Field Summary
protected  boolean useWindowAwareUrlEncoding
           
 
Constructor Summary
protected DefaultWindowHandler()
           
protected DefaultWindowHandler(WindowContextConfig config)
           
 
Method Summary
protected  String addWindowIdIfNecessary(String url, String windowId)
           
 String createWindowId()
           
 String encodeURL(String url)
           
protected  String getCurrentWindowId()
           
 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
 

Field Detail

useWindowAwareUrlEncoding

protected boolean useWindowAwareUrlEncoding
Constructor Detail

DefaultWindowHandler

protected DefaultWindowHandler()

DefaultWindowHandler

@Inject
protected DefaultWindowHandler(WindowContextConfig config)
Method Detail

encodeURL

public String encodeURL(String url)
Specified by:
encodeURL in interface WindowHandler

sendRedirect

public void sendRedirect(javax.faces.context.ExternalContext externalContext,
                         String url,
                         boolean addRequestParameter)
                  throws IOException
Specified by:
sendRedirect in interface WindowHandler
Throws:
IOException

createWindowId

public String createWindowId()
Specified by:
createWindowId in interface WindowHandler

restoreWindowId

public String restoreWindowId(javax.faces.context.ExternalContext externalContext)
Specified by:
restoreWindowId in interface WindowHandler

getCurrentWindowId

protected String getCurrentWindowId()

addWindowIdIfNecessary

protected String addWindowIdIfNecessary(String url,
                                        String windowId)


Copyright © 2010-2011 The Apache Software Foundation. All Rights Reserved.