public class AbsolutePathReferenceVisitor extends Object implements DomWalker.Visitor
| Modifier and Type | Class and Description |
|---|---|
static class |
AbsolutePathReferenceVisitor.Tags |
DomWalker.Visitor.VisitStatus| Constructor and Description |
|---|
AbsolutePathReferenceVisitor(AbsolutePathReferenceVisitor.Tags... resourceTags) |
| Modifier and Type | Method and Description |
|---|---|
static Attr |
getUriAttributeFromNode(Node node,
Map<String,String> resourceTags)
Returns the uri attribute for the given node by looking up the
tag name -> uri attribute map.
|
boolean |
revisit(Gadget gadget,
List<Node> node)
Revisit a node in the DOM that was marked by the
visit(Gadget, Node) as reserved during DOM traversal. |
DomWalker.Visitor.VisitStatus |
visit(Gadget gadget,
Node node)
Visit a particular Node in the DOM.
|
@Inject public AbsolutePathReferenceVisitor(AbsolutePathReferenceVisitor.Tags... resourceTags)
public DomWalker.Visitor.VisitStatus visit(Gadget gadget, Node node) throws RewritingException
DomWalker.Visitorvisit in interface DomWalker.Visitorgadget - Context for the request.node - Node being visited.VisitStatusRewritingExceptionpublic boolean revisit(Gadget gadget, List<Node> node) throws RewritingException
DomWalker.Visitorvisit(Gadget, Node) as reserved during DOM traversal.revisit in interface DomWalker.Visitorgadget - Context for the request.node - Nodes being revisited, previously marked as reserved.RewritingExceptionpublic static Attr getUriAttributeFromNode(Node node, Map<String,String> resourceTags)
node - The node to get uri attribute for.resourceTags - Map from tag name -> uri attribute name.Copyright © 2007-2012. All Rights Reserved.