Class UrlHolder

java.lang.Object
com.tremolosecurity.config.util.UrlHolder

public class UrlHolder extends Object
Represents a single URL in Unison
  • Constructor Details

  • Method Details

    • getPattern

      public Pattern getPattern()
      Returns the regex pattern used to identify this URL
      Returns:
    • getWeight

      public int getWeight()
      Returns the weight of the URL. When two UrlHolders match a URL the higher weight UrlHolder wins
      Returns:
    • getPort

      public int getPort()
      Port of the URL this UrlHolder is tied to
      Returns:
    • isSSL

      public boolean isSSL()
      Returns true if this URL is secured using SSL/TLS
      Returns:
    • init

      public void init() throws Exception
      Initializes a URL from the XML configuration. Multiple calls perform no actions.
      Throws:
      Exception
    • getApp

      public ApplicationType getApp()
      Returns application xml configuration
      Returns:
    • getUrl

      public UrlType getUrl()
      Returns the Url configuration
      Returns:
    • getProxyURL

      public String getProxyURL(HashMap<String,String> params)
      Builds a new URL, if needed, from the components of the current URL and a proxy host
      Parameters:
      params -
      Returns:
    • getFilterChain

      public List<HttpFilter> getFilterChain()
      Returns the URL's filters
      Returns:
    • getConfig

      public ConfigManager getConfig()
      Returns the configuration system for this URL
      Returns:
    • getAzRules

      public List<AzRule> getAzRules()
      Returns the list of authorization rules for this URL
      Returns:
    • isOverrideHost

      public boolean isOverrideHost()
    • isOverrideReferer

      public boolean isOverrideReferer()
    • getLowerCasePath

      public String getLowerCasePath()
      Returns:
      the lowerCasePath