|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.request.mapper.AbstractMapper
public abstract class AbstractMapper
Constructor Summary | |
---|---|
AbstractMapper()
Construct. |
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 java.lang.String |
getOptionalPlaceholder(java.lang.String s)
If the string is in an optional parameter placeholder format #{key} this method returns the key. |
protected java.lang.String |
getPlaceholder(java.lang.String s)
If the string is in a placeholder format ${key} this method returns the key. |
protected java.lang.String |
getPlaceholder(java.lang.String s,
char startChar)
If the string is in a placeholder format x{key}, where 'x' can be specified, this method returns the key. |
protected void |
removeMetaParameter(Url urlCopy)
The new IRequestMapper s use the first query parameter to hold meta information about
the request like page version, component version, locale, ... |
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 |
Methods inherited from interface org.apache.wicket.request.IRequestMapper |
---|
getCompatibilityScore, mapHandler, mapRequest |
Constructor Detail |
---|
public AbstractMapper()
Method Detail |
---|
protected java.lang.String getPlaceholder(java.lang.String s)
s
-
null
if string is not in right formatprotected java.lang.String getOptionalPlaceholder(java.lang.String s)
s
-
null
if string is not in right formatprotected java.lang.String getPlaceholder(java.lang.String s, char startChar)
s
- startChar
- the character used to indicate the start of the placeholder
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 void removeMetaParameter(Url urlCopy)
IRequestMapper
s use the first query parameter to hold meta information about
the request like page version, component version, locale, ... The actual
IRequestMapper
implementation can decide whether the this parameter should be removed
before creating PageParameters
from the current query
parameters
urlCopy
- the Url
that first query parameter has no valueprotected 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 |