|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.cms.util.UrlPatternDelegate
public class UrlPatternDelegate
An implementation of PatternDelegate
that evaluates as condition a request uri patter or a hostname pattern.
Constructor Summary | |
---|---|
UrlPatternDelegate()
|
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public UrlPatternDelegate()
Method Detail |
---|
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
- HttpServletRequest
true
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
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |