Class AbstractResourceReferenceMapper
- java.lang.Object
-
- org.apache.wicket.request.mapper.AbstractMapper
-
- org.apache.wicket.core.request.mapper.AbstractComponentMapper
-
- org.apache.wicket.core.request.mapper.AbstractResourceReferenceMapper
-
- All Implemented Interfaces:
IRequestMapper
- Direct Known Subclasses:
BasicResourceReferenceMapper
public abstract class AbstractResourceReferenceMapper extends AbstractComponentMapper
Base class for encoding and decodingResourceReference
s- Author:
- Matej Knopp
-
-
Constructor Summary
Constructors Constructor Description AbstractResourceReferenceMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
removeMetaParameter(Url urlCopy)
The newIRequestMapper
s use the first query parameter to hold meta information about the request like page version, component version, locale, ...-
Methods inherited from class org.apache.wicket.core.request.mapper.AbstractComponentMapper
cleanClassName, encodePageComponentInfo, getContext, getPageClass, getPageComponentInfo
-
Methods inherited from class org.apache.wicket.request.mapper.AbstractMapper
encodePageParameters, extractPageParameters, getMountSegments, getOptionalPlaceholder, getPlaceholder, getPlaceholder, resolveLocale, safeSegmentGetter, 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
-
AbstractResourceReferenceMapper
public AbstractResourceReferenceMapper()
-
-
Method Detail
-
removeMetaParameter
protected void removeMetaParameter(Url urlCopy)
The newIRequestMapper
s use the first query parameter to hold meta information about the request like page version, component version, locale, ... The actualIRequestMapper
implementation can decide whether the this parameter should be removed before creatingPageParameters
from the currentquery parameters
Removes the first query parameter only ifPageComponentInfo.parse(String)
returns non-null instance Remove the first parameter because it brings meta information like locale- Overrides:
removeMetaParameter
in classAbstractComponentMapper
- Parameters:
urlCopy
- theUrl
that first query parameter has no value
-
-