Class CmsRewriteAliasMatcher

java.lang.Object
org.opencms.db.CmsRewriteAliasMatcher

public class CmsRewriteAliasMatcher extends Object
Helper class used for matching rewrite aliases to incoming request URIs.

  • Constructor Details

    • CmsRewriteAliasMatcher

      Creates a new matcher instance for the given list of rewrite aliases.

      Parameters:
      aliases - the list of rewrite aliases to be used for matching
  • Method Details

    • match

      Tries to rewrite a given path, and either returns the rewrite result or null if no rewrite alias matched the path.

      Parameters:
      path - the path to match
      Returns:
      the rewrite result or null if no rewrite alias matched