Package org.apache.myfaces.tobago.config
Class TobagoConfig
java.lang.Object
org.apache.myfaces.tobago.config.TobagoConfig
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionTobagoConfig(javax.servlet.ServletContext servletContext, String... alternative) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddAvailableTheme(ThemeImpl availableTheme) voidaddSupportedThemeName(String name) static TobagoConfiggetInstance(javax.faces.context.FacesContext facesContext) static TobagoConfiggetInstance(javax.servlet.ServletContext servletContext) getThemeIfExists(String name) booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidlock()Lock the configuration, so it cannot be modified any more.voidsetCheckSessionSecret(boolean checkSessionSecret) voidsetCreateSessionSecret(boolean createSessionSecret) voidsetDecodeLineFeed(boolean decodeLineFeed) voidsetDefaultTheme(Theme defaultTheme) voidsetDefaultThemeName(String defaultThemeName) voidsetEnableTobagoExceptionHandler(boolean enableTobagoExceptionHandler) voidsetPreventFrameAttacks(boolean preventFrameAttacks) voidsetSanitizer(Sanitizer sanitizer) voidsetSecurityAnnotation(SecurityAnnotation securityAnnotation) voidsetSetNosniffHeader(boolean setNosniffHeader) voidsetThemeCookie(boolean themeCookie) voidsetThemeSession(boolean themeSession) toString()
- 
Field Details- 
TOBAGO_CONFIG- See Also:
 
 
- 
- 
Constructor Details- 
TobagoConfig- Parameters:
- servletContext- From the container. If null, the WEB-INF/tobago-config.xml will be ignored.
- alternative- Alternative tobago-config-files, only needed for testing.
 
 
- 
- 
Method Details- 
getInstance
- 
getInstance
- 
lockpublic void lock()Lock the configuration, so it cannot be modified any more.
- 
addSupportedThemeName
- 
getSupportedThemeNames
- 
getTheme
- 
getThemeIfExists
- 
setDefaultThemeName
- 
getDefaultThemeName
- 
getSupportedThemes
- 
setDefaultTheme
- 
getDefaultTheme
- 
addAvailableTheme
- 
getAvailableThemes
- 
isThemeCookiepublic boolean isThemeCookie()
- 
setThemeCookiepublic void setThemeCookie(boolean themeCookie) 
- 
isThemeSessionpublic boolean isThemeSession()
- 
setThemeSessionpublic void setThemeSession(boolean themeSession) 
- 
isCreateSessionSecretpublic boolean isCreateSessionSecret()
- 
setCreateSessionSecretpublic void setCreateSessionSecret(boolean createSessionSecret) 
- 
isCheckSessionSecretpublic boolean isCheckSessionSecret()
- 
setCheckSessionSecretpublic void setCheckSessionSecret(boolean checkSessionSecret) 
- 
isPreventFrameAttackspublic boolean isPreventFrameAttacks()
- 
setPreventFrameAttackspublic void setPreventFrameAttacks(boolean preventFrameAttacks) 
- 
getContentSecurityPolicy
- 
isSetNosniffHeaderpublic boolean isSetNosniffHeader()
- 
setSetNosniffHeaderpublic void setSetNosniffHeader(boolean setNosniffHeader) 
- 
getSecurityAnnotation
- 
setSecurityAnnotation
- 
getDefaultValidatorInfo
- 
getSanitizer
- 
setSanitizer
- 
isDecodeLineFeedpublic boolean isDecodeLineFeed()
- 
setDecodeLineFeedpublic void setDecodeLineFeed(boolean decodeLineFeed) 
- 
isEnableTobagoExceptionHandlerpublic boolean isEnableTobagoExceptionHandler()
- 
setEnableTobagoExceptionHandlerpublic void setEnableTobagoExceptionHandler(boolean enableTobagoExceptionHandler) 
- 
getMimeTypes
- 
toString
 
-