Class TobagoConfig

java.lang.Object
org.apache.myfaces.tobago.config.TobagoConfig

public class TobagoConfig extends Object
  • Field Details

  • Constructor Details

    • 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 Details

    • 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()
    • getTheme

      public Theme getTheme(String name)
    • 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)
    • getAvailableThemes

      public Map<String,ThemeImpl> 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

      public ContentSecurityPolicy getContentSecurityPolicy()
    • isSetNosniffHeader

      public boolean isSetNosniffHeader()
    • setSetNosniffHeader

      public void setSetNosniffHeader(boolean setNosniffHeader)
    • getSecurityAnnotation

      public SecurityAnnotation getSecurityAnnotation()
    • 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)
    • getMimeTypes

      public Map<String,String> getMimeTypes()
    • toString

      public String toString()
      Overrides:
      toString in class Object