Package org.apache.myfaces.tobago.config
Class TobagoConfig
java.lang.Object
org.apache.myfaces.tobago.config.TobagoConfig
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTobagoConfig
(javax.servlet.ServletContext servletContext, String... alternative) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAvailableTheme
(ThemeImpl availableTheme) void
addSupportedThemeName
(String name) static TobagoConfig
getInstance
(javax.faces.context.FacesContext facesContext) static TobagoConfig
getInstance
(javax.servlet.ServletContext servletContext) getThemeIfExists
(String name) boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
lock()
Lock the configuration, so it cannot be modified any more.void
setCheckSessionSecret
(boolean checkSessionSecret) void
setCreateSessionSecret
(boolean createSessionSecret) void
setDecodeLineFeed
(boolean decodeLineFeed) void
setDefaultTheme
(Theme defaultTheme) void
setDefaultThemeName
(String defaultThemeName) void
setEnableTobagoExceptionHandler
(boolean enableTobagoExceptionHandler) void
setPreventFrameAttacks
(boolean preventFrameAttacks) void
setSanitizer
(Sanitizer sanitizer) void
setSecurityAnnotation
(SecurityAnnotation securityAnnotation) void
setSetNosniffHeader
(boolean setNosniffHeader) void
setThemeCookie
(boolean themeCookie) void
setThemeSession
(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
-
lock
public void lock()Lock the configuration, so it cannot be modified any more. -
addSupportedThemeName
-
getSupportedThemeNames
-
getTheme
-
getThemeIfExists
-
setDefaultThemeName
-
getDefaultThemeName
-
getSupportedThemes
-
setDefaultTheme
-
getDefaultTheme
-
addAvailableTheme
-
getAvailableThemes
-
isThemeCookie
public boolean isThemeCookie() -
setThemeCookie
public void setThemeCookie(boolean themeCookie) -
isThemeSession
public boolean isThemeSession() -
setThemeSession
public void setThemeSession(boolean themeSession) -
isCreateSessionSecret
public boolean isCreateSessionSecret() -
setCreateSessionSecret
public void setCreateSessionSecret(boolean createSessionSecret) -
isCheckSessionSecret
public boolean isCheckSessionSecret() -
setCheckSessionSecret
public void setCheckSessionSecret(boolean checkSessionSecret) -
isPreventFrameAttacks
public boolean isPreventFrameAttacks() -
setPreventFrameAttacks
public void setPreventFrameAttacks(boolean preventFrameAttacks) -
getContentSecurityPolicy
-
isSetNosniffHeader
public boolean isSetNosniffHeader() -
setSetNosniffHeader
public void setSetNosniffHeader(boolean setNosniffHeader) -
getSecurityAnnotation
-
setSecurityAnnotation
-
getDefaultValidatorInfo
-
getSanitizer
-
setSanitizer
-
isDecodeLineFeed
public boolean isDecodeLineFeed() -
setDecodeLineFeed
public void setDecodeLineFeed(boolean decodeLineFeed) -
isEnableTobagoExceptionHandler
public boolean isEnableTobagoExceptionHandler() -
setEnableTobagoExceptionHandler
public void setEnableTobagoExceptionHandler(boolean enableTobagoExceptionHandler) -
getMimeTypes
-
toString
-