|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.senacor.zoning.config.URLMapping
public abstract class URLMapping
URLMappings are used for checking if a given request URL has to be converted
into a Zoning URL directing the request to the container application or can
used unchanged. This is an abstract template class used as base class for inclusive
and exclusive URLMapping implementations.
| Constructor Summary | |
|---|---|
URLMapping()
Creates a new instance. |
|
URLMapping(java.lang.String pattern)
Creates a new instance. |
|
| Method Summary | |
|---|---|
protected abstract boolean |
encodeOnMatch()
Method for checking if it's necessary to chnage the equest URL if this URLMapping matches, inclusive URLMappings will return true
, exclusive false. |
static boolean |
isEncodingNecessary(java.lang.String requestPath,
java.util.List urlMappings)
Method for checking the request path against the List od URLMappings. |
boolean |
isURLRewritingNecessary(java.lang.String requestPath)
Checks if it's necessary to convert the given request URL into an interceptable request URL directing the request to the application container. |
abstract boolean |
mergeURLMappingResult(java.lang.String requestPath,
boolean previousResult)
Method to be implemented by subclass. |
void |
setURLPattern(java.lang.String pattern)
Setter the URL pattern for this URLMapping complying to the mapping rules of the
servlet specification. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public URLMapping()
public URLMapping(java.lang.String pattern)
pattern - The URL pattern for this URLMapping.| Method Detail |
|---|
public static final boolean isEncodingNecessary(java.lang.String requestPath,
java.util.List urlMappings)
List od URLMappings.
Returns true if the request path must be encoded.
requestPath - The current request path.urlMappings - The URLMappings to check.
true if the request path has to be encoded.public void setURLPattern(java.lang.String pattern)
URLMapping complying to the mapping rules of the
servlet specification.
pattern - The URL pattern for this URLMapping.public boolean isURLRewritingNecessary(java.lang.String requestPath)
requestPath - The request URL to check.
true if it's necessary to convert the URL.
public abstract boolean mergeURLMappingResult(java.lang.String requestPath,
boolean previousResult)
URLMappings with the result of this
URLMapping.
requestPath - The request URL.previousResult - The result of the previous URLMappings.
protected abstract boolean encodeOnMatch()
URLMapping matches, inclusive URLMappings will return true
, exclusive false.
true if URL rewriting is necessary on a pattern match.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 | |||||||||