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

java.lang.Object
  extended by org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.DefaultClientConfig
All Implemented Interfaces:
Serializable, ClientConfig

@SessionScoped
public class DefaultClientConfig
extends Object
implements ClientConfig

Contains information about whether the user has JavaScript enabled on his client, etc. It also contains the windowhandler html which gets sent to the browser to detect the current windowId. This allows the 'customisation' of this html file to e.g. adopt the background colour to avoid screen flickering.

See Also:
Serialized Form

Field Summary
protected  String windowHandlerHtml
           
 
Fields inherited from interface org.apache.myfaces.extensions.cdi.jsf.api.config.ClientConfig
DEFAULT_WINDOW_HANDLER_HTML_FILE
 
Constructor Summary
DefaultClientConfig()
           
 
Method Summary
 String getWindowHandlerHtml()
          
 String getWindowHandlerResourceLocation()
          
 boolean isJavaScriptEnabled()
          
 void setJavaScriptEnabled(boolean javaScriptEnabled)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

windowHandlerHtml

protected String windowHandlerHtml
Constructor Detail

DefaultClientConfig

public DefaultClientConfig()
Method Detail

isJavaScriptEnabled

public boolean isJavaScriptEnabled()

Specified by:
isJavaScriptEnabled in interface ClientConfig

setJavaScriptEnabled

public void setJavaScriptEnabled(boolean javaScriptEnabled)

Specified by:
setJavaScriptEnabled in interface ClientConfig

getWindowHandlerResourceLocation

public String getWindowHandlerResourceLocation()

Specified by:
getWindowHandlerResourceLocation in interface ClientConfig

getWindowHandlerHtml

public String getWindowHandlerHtml()
                            throws IOException

Specified by:
getWindowHandlerHtml in interface ClientConfig
Throws:
IOException


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