public abstract class AbstractResourceReferenceMapper extends AbstractComponentMapper
ResourceReference
sConstructor and Description |
---|
AbstractResourceReferenceMapper() |
Modifier and Type | Method and Description |
---|---|
protected ResourceReference.UrlAttributes |
decodeResourceReferenceAttributes(String attributes) |
protected String |
encodeResourceReferenceAttributes(ResourceReference.UrlAttributes attributes) |
protected void |
encodeResourceReferenceAttributes(Url url,
ResourceReference reference) |
static CharSequence |
escapeAttributesSeparator(String attribute)
Escapes any occurrences of - character in the style and variation
attributes with ~.
|
protected ResourceReference.UrlAttributes |
getResourceReferenceAttributes(Url url) |
protected void |
removeMetaParameter(Url urlCopy)
Removes the first query parameter only if
PageComponentInfo.parse(String) returns
non-null instance |
static String |
unescapeAttributesSeparator(String attribute)
Reverts the escaping applied by escapeAttributesSeparator(String) - unescapes
occurrences of ~ character in the style and variation attributes with -.
|
cleanClassName, encodePageComponentInfo, getContext, getPageClass, getPageComponentInfo, requestListenerInterfaceFromString, requestListenerInterfaceToString
encodePageParameters, extractPageParameters, getMountSegments, getOptionalPlaceholder, getPlaceholder, getPlaceholder, urlStartsWith
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCompatibilityScore, mapHandler, mapRequest
public static CharSequence escapeAttributesSeparator(String attribute)
attribute
- the attribute to escapepublic static String unescapeAttributesSeparator(String attribute)
attribute
- the attribute to unescapeprotected final String encodeResourceReferenceAttributes(ResourceReference.UrlAttributes attributes)
protected final ResourceReference.UrlAttributes decodeResourceReferenceAttributes(String attributes)
protected void encodeResourceReferenceAttributes(Url url, ResourceReference reference)
protected ResourceReference.UrlAttributes getResourceReferenceAttributes(Url url)
protected void removeMetaParameter(Url urlCopy)
PageComponentInfo.parse(String)
returns
non-null instance
Remove the first parameter because it brings meta information like localeremoveMetaParameter
in class AbstractComponentMapper
Copyright © 2006–2014 Apache Software Foundation. All rights reserved.