Package org.apache.myfaces.tobago.config
Klasse TobagoConfig
java.lang.Object
org.apache.myfaces.tobago.config.TobagoConfig
-
Feldübersicht
Felder -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungTobagoConfig(javax.servlet.ServletContext servletContext, String... alternative) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidaddAvailableTheme(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()
-
Felddetails
-
TOBAGO_CONFIG
- Siehe auch:
-
-
Konstruktordetails
-
TobagoConfig
- Parameter:
servletContext- From the container. If null, the WEB-INF/tobago-config.xml will be ignored.alternative- Alternative tobago-config-files, only needed for testing.
-
-
Methodendetails
-
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
-