|
||||||||||
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 org.apache.wicket.request.mapper.AbstractComponentMapper
public abstract class AbstractComponentMapper
Convenience class for implementing page/components related encoders.
Constructor Summary | |
---|---|
AbstractComponentMapper()
Construct. |
Method Summary | |
---|---|
protected void |
encodePageComponentInfo(Url url,
PageComponentInfo info)
Encodes the PageComponentInfo instance as the first query string parameter to the
URL. |
protected IMapperContext |
getContext()
|
protected java.lang.Class<? extends IRequestablePage> |
getPageClass(java.lang.String name)
Loads page class with given name. |
protected PageComponentInfo |
getPageComponentInfo(Url url)
Extracts the PageComponentInfo from the URL. |
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 RequestListenerInterface |
requestListenerInterfaceFromString(java.lang.String interfaceName)
Creates listener interface from the specified string |
protected java.lang.String |
requestListenerInterfaceToString(RequestListenerInterface listenerInterface)
Converts the specified listener interface to String. |
Methods inherited from class org.apache.wicket.request.mapper.AbstractMapper |
---|
encodePageParameters, extractPageParameters, getMountSegments, getOptionalPlaceholder, getPlaceholder, getPlaceholder, urlStartsWith |
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 AbstractComponentMapper()
Method Detail |
---|
protected IMapperContext getContext()
protected java.lang.String requestListenerInterfaceToString(RequestListenerInterface listenerInterface)
listenerInterface
-
protected RequestListenerInterface requestListenerInterfaceFromString(java.lang.String interfaceName)
interfaceName
-
protected PageComponentInfo getPageComponentInfo(Url url)
PageComponentInfo
from the URL. The PageComponentInfo
is encoded
as the very first query parameter and the parameter consists of name only (no value).
url
-
null
otherwise.protected void encodePageComponentInfo(Url url, PageComponentInfo info)
PageComponentInfo
instance as the first query string parameter to the
URL.
url
- info
- protected java.lang.Class<? extends IRequestablePage> getPageClass(java.lang.String name)
name
-
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
Removes the first query parameter only if PageComponentInfo.parse(String)
returns
non-null instance
removeMetaParameter
in class AbstractMapper
urlCopy
- the Url
that first query parameter has no value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |