public class CmsRewriteAliasMatcher extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
CmsRewriteAliasMatcher.RewriteResult
The result of a match operation.
|
Constructor and Description |
---|
CmsRewriteAliasMatcher(java.util.Collection<CmsRewriteAlias> aliases)
Creates a new matcher instance for the given list of rewrite aliases.
|
Modifier and Type | Method and Description |
---|---|
CmsRewriteAliasMatcher.RewriteResult |
match(java.lang.String path)
Tries to rewrite a given path, and either returns the rewrite result or null if no
rewrite alias matched the path.
|
public CmsRewriteAliasMatcher(java.util.Collection<CmsRewriteAlias> aliases)
aliases
- the list of rewrite aliases to be used for matchingpublic CmsRewriteAliasMatcher.RewriteResult match(java.lang.String path)
path
- the path to match