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)
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)
toString()
-
Field Details
-
TOBAGO_CONFIG
- See Also:
- Constant Field Values
-
-
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
-
setDefaultThemeName
-
getDefaultThemeName
-
getSupportedThemes
-
setDefaultTheme
-
getDefaultTheme
-
addAvailableTheme
-
getAvailableThemes
-
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
-