Package org.apache.myfaces.tobago.config
Class TobagoConfig
- java.lang.Object
-
- org.apache.myfaces.tobago.config.TobagoConfig
-
public class TobagoConfig extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
TOBAGO_CONFIG
-
Constructor Summary
Constructors Constructor Description TobagoConfig(jakarta.servlet.ServletContext servletContext, String... alternative)
-
Method Summary
-
-
-
Field Detail
-
TOBAGO_CONFIG
public static final String TOBAGO_CONFIG
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TobagoConfig
public TobagoConfig(jakarta.servlet.ServletContext servletContext, String... alternative)
- 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 Detail
-
getInstance
public static TobagoConfig getInstance(jakarta.faces.context.FacesContext facesContext)
-
getInstance
public static TobagoConfig getInstance(jakarta.servlet.ServletContext servletContext)
-
lock
public void lock()
Lock the configuration, so it cannot be modified any more.
-
addSupportedThemeName
public void addSupportedThemeName(String name)
-
setDefaultThemeName
public void setDefaultThemeName(String defaultThemeName)
-
getDefaultThemeName
public String getDefaultThemeName()
-
setDefaultTheme
public void setDefaultTheme(Theme defaultTheme)
-
getDefaultTheme
public Theme getDefaultTheme()
-
addAvailableTheme
public void addAvailableTheme(ThemeImpl availableTheme)
-
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
public ContentSecurityPolicy getContentSecurityPolicy()
-
isSetNosniffHeader
public boolean isSetNosniffHeader()
-
setSetNosniffHeader
public void setSetNosniffHeader(boolean setNosniffHeader)
-
getSecurityAnnotation
public SecurityAnnotation getSecurityAnnotation()
-
setSecurityAnnotation
public void setSecurityAnnotation(SecurityAnnotation securityAnnotation)
-
getSanitizer
public Sanitizer getSanitizer()
-
setSanitizer
public void setSanitizer(Sanitizer sanitizer)
-
isDecodeLineFeed
public boolean isDecodeLineFeed()
-
setDecodeLineFeed
public void setDecodeLineFeed(boolean decodeLineFeed)
-
isEnableTobagoExceptionHandler
public boolean isEnableTobagoExceptionHandler()
-
setEnableTobagoExceptionHandler
public void setEnableTobagoExceptionHandler(boolean enableTobagoExceptionHandler)
-
-