org.apache.wicket.request.mapper
Class AbstractResourceReferenceMapper
java.lang.Object
org.apache.wicket.request.mapper.AbstractMapper
org.apache.wicket.request.mapper.AbstractComponentMapper
org.apache.wicket.request.mapper.AbstractResourceReferenceMapper
- All Implemented Interfaces:
- IRequestMapper
public abstract class AbstractResourceReferenceMapper
- extends AbstractComponentMapper
Base class for encoding and decoding ResourceReference
s
- Author:
- Matej Knopp
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractResourceReferenceMapper
public AbstractResourceReferenceMapper()
encodeResourceReferenceAttributes
protected static java.lang.String encodeResourceReferenceAttributes(ResourceReference.UrlAttributes attributes)
decodeResourceReferenceAttributes
protected static ResourceReference.UrlAttributes decodeResourceReferenceAttributes(java.lang.String attributes)
encodeResourceReferenceAttributes
protected void encodeResourceReferenceAttributes(Url url,
ResourceReference reference)
getResourceReferenceAttributes
protected ResourceReference.UrlAttributes getResourceReferenceAttributes(Url url)
removeMetaParameter
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, ... 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
Remove the first parameter because it brings meta information like locale
- Overrides:
removeMetaParameter
in class AbstractComponentMapper
- Parameters:
urlCopy
- the Url
that first query parameter has no value
Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.