|
||||||||||
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 | |
---|---|
java.lang.Object |
getDelegate()
Returns the delegate. |
java.lang.String |
getHost()
|
java.lang.String |
getUrl()
Returns the configured Url. |
boolean |
match(javax.servlet.http.HttpServletRequest request)
Compares the reques with the url and host patterns. |
void |
setDelegate(java.lang.Object delegate)
Sets the delegate. |
void |
setHost(java.lang.String host)
Sets the host pattern (using SimpleUrlPattern internally). |
void |
setUrl(java.lang.String pattern)
Sets the Url pattern (using SimpleUrlPattern internally). |
java.lang.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 java.lang.String getUrl()
public void setUrl(java.lang.String pattern)
SimpleUrlPattern
internally).
pattern
- url patternpublic java.lang.String getHost()
public void setHost(java.lang.String host)
SimpleUrlPattern
internally).
host
- host patternpublic 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(java.lang.Object delegate)
delegate
- the delegate to setpublic java.lang.Object getDelegate()
getDelegate
in interface PatternDelegate
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |