Class TobagoConfig


  • public class TobagoConfig
    extends Object
    • Constructor Detail

      • TobagoConfig

        public TobagoConfig​(javax.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​(javax.faces.context.FacesContext facesContext)
      • getInstance

        public static TobagoConfig getInstance​(javax.servlet.ServletContext servletContext)
      • lock

        public void lock()
        Lock the configuration, so it cannot be modified any more.
      • addSupportedThemeName

        public void addSupportedThemeName​(String name)
      • getSupportedThemeNames

        public List<String> getSupportedThemeNames()
      • getThemeIfExists

        public Theme getThemeIfExists​(String name)
      • setDefaultThemeName

        public void setDefaultThemeName​(String defaultThemeName)
      • getDefaultThemeName

        public String getDefaultThemeName()
      • getSupportedThemes

        public List<Theme> getSupportedThemes()
      • 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)
      • isSetNosniffHeader

        public boolean isSetNosniffHeader()
      • setSetNosniffHeader

        public void setSetNosniffHeader​(boolean setNosniffHeader)
      • setSecurityAnnotation

        public void setSecurityAnnotation​(SecurityAnnotation securityAnnotation)
      • getDefaultValidatorInfo

        public Map<String,​String> getDefaultValidatorInfo()
      • 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)