public class SimpleContentRewritingContext extends Object implements ContentRewritingContext
ContentRewritingContext implementation.| Constructor and Description |
|---|
SimpleContentRewritingContext() |
| 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. |
boolean |
hasAttribute(String name)
Returns true if the named attribute exists.
|
void |
removeAttribute(String name)
Removes an attribute from this context.
|
void |
setAttribute(String name,
Object value)
Stores an attribute in this context.
|
public boolean hasAttribute(String name)
hasAttribute in interface ContentRewritingContextpublic Object getAttribute(String name)
Object,
or null if no attribute of the given name exists.getAttribute in interface ContentRewritingContextpublic 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 ContentRewritingContextpublic void setAttribute(String name, Object value)
setAttribute in interface ContentRewritingContextpublic void removeAttribute(String name)
removeAttribute in interface ContentRewritingContextCopyright © 2008–2015 The Apache Software Foundation. All rights reserved.