|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.request.mapper.AbstractMapper
public class AbstractMapper
Constructor Summary | |
---|---|
AbstractMapper()
|
Method Summary | |
---|---|
protected Url |
encodePageParameters(Url url,
PageParameters pageParameters,
IPageParametersEncoder encoder)
Encodes the given PageParameters to the URL using the given
IPageParametersEncoder . |
protected PageParameters |
extractPageParameters(Request request,
int segmentsToSkip,
IPageParametersEncoder encoder)
Extracts PageParameters from the URL using the given IPageParametersEncoder . |
protected java.lang.String[] |
getMountSegments(java.lang.String mountPath)
Convenience method for representing mountPath as array of segments |
protected static java.lang.String |
getPlaceholder(java.lang.String s)
If the string is in a placeholder format ${key} this method returns the key. |
protected boolean |
urlStartsWith(Url url,
java.lang.String... segments)
Returns true if the given url starts with specified segments. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractMapper()
Method Detail |
---|
protected static java.lang.String getPlaceholder(java.lang.String s)
s
-
null
if string is not in right formatprotected boolean urlStartsWith(Url url, java.lang.String... segments)
url
- segments
-
true
if the URL starts with the specified segments, false
otherwiseprotected PageParameters extractPageParameters(Request request, int segmentsToSkip, IPageParametersEncoder encoder)
PageParameters
from the URL using the given IPageParametersEncoder
.
request
- segmentsToSkip
- how many URL segments should be skipped because they "belong" to the
IRequestMapper
encoder
-
protected Url encodePageParameters(Url url, PageParameters pageParameters, IPageParametersEncoder encoder)
PageParameters
to the URL using the given
IPageParametersEncoder
. The original URL object is unchanged.
url
- pageParameters
- encoder
-
protected java.lang.String[] getMountSegments(java.lang.String mountPath)
mountPath
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |