public class UrlPatternDelegate extends Object implements PatternDelegate
PatternDelegate
that evaluates as condition a request uri patter or a hostname pattern.Constructor and Description |
---|
UrlPatternDelegate() |
Modifier and Type | Method and Description |
---|---|
Object |
getDelegate()
Returns the delegate.
|
String |
getHost() |
String |
getOriginalUrl() |
String |
getUrl()
Returns the configured Url.
|
boolean |
match(javax.servlet.http.HttpServletRequest request)
Compares the reques with the url and host patterns.
|
void |
setDelegate(Object delegate)
Sets the delegate.
|
void |
setHost(String host)
Sets the host pattern (using
SimpleUrlPattern internally). |
void |
setOriginalUrl(String pattern) |
void |
setUrl(String pattern)
Sets the Url pattern (using
SimpleUrlPattern internally). |
String |
toString() |
public String getUrl()
public String getOriginalUrl()
public void setUrl(String pattern)
SimpleUrlPattern
internally).pattern
- url patternpublic String getHost()
public void setHost(String host)
SimpleUrlPattern
internally).host
- host patternpublic void setOriginalUrl(String pattern)
public boolean match(javax.servlet.http.HttpServletRequest request)
match
in interface PatternDelegate
request
- HttpServletRequesttrue
if the pattern matches the configured host (if set) and url (if set)public void setDelegate(Object delegate)
delegate
- the delegate to setpublic Object getDelegate()
getDelegate
in interface PatternDelegate
Copyright © 2003–2018 Magnolia International Ltd.. All rights reserved.