public abstract class AbstractProxyMapping extends Object implements ProxyMapping
ProxyMapping
to provide the basic management features for attributes and content rewriters.| Constructor and Description |
|---|
AbstractProxyMapping() |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAttribute(String name)
Returns the value of the named attribute as an
Object,
or null if no attribute of the given name exists. |
Map<String,Object> |
getAttributesMap()
Returns a
Map containing the attributes available. |
ContentRewriter |
getContentRewriter(String mimeType)
Returns a
ContentRewriter instance to be used for the given mimeType. |
Map<String,ContentRewriter> |
getContentRewriters()
Returns an unmodifiable map of the internal content rewriters.
|
void |
removeAttribute(String name)
Removes an attribute from this mapping.
|
void |
setAttribute(String name,
Object value)
Stores an attribute in this mapping.
|
void |
setAttributesMap(String name,
Map<String,Object> attributes)
Stores all the given
attributes map in mapping. |
void |
setContentRewriters(Map<String,ContentRewriter> contentRewriters)
Sets the internal content rewriters map by copying
contentRewriters. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmatchesLocal, matchesRemote, resolveLocalFromRemote, resolveRemoteFromLocalpublic Object getAttribute(String name)
Object,
or null if no attribute of the given name exists.getAttribute in interface ProxyMappingpublic void setAttribute(String name, Object value)
setAttribute in interface ProxyMappingpublic void removeAttribute(String name)
removeAttribute in interface ProxyMappingpublic Map<String,Object> getAttributesMap()
Map containing the attributes available.
This method returns an empty Map
if there's no attributes available to it.getAttributesMap in interface ProxyMappingpublic void setAttributesMap(String name, Map<String,Object> attributes)
attributes map in mapping.public Map<String,ContentRewriter> getContentRewriters()
public void setContentRewriters(Map<String,ContentRewriter> contentRewriters)
contentRewriters.contentRewriters - public ContentRewriter getContentRewriter(String mimeType)
ContentRewriter instance to be used for the given mimeType.getContentRewriter in interface ProxyMappingCopyright © 2008–2015 The Apache Software Foundation. All rights reserved.