public class NodeUtil extends Object
| Constructor and Description |
|---|
NodeUtil() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends Node> |
findNodes(List<Node> nodes,
Class<T> cls)
This method recursively scans a node hierarchy to locate instances of a particular
type.
|
static <T extends Node> |
findNodes(List<Node> nodes,
Class<T> cls,
List<T> results)
This method recursively scans a node hierarchy to locate instances of a particular
type.
|
static boolean |
isOriginalURI(Node node,
String uri)
Deprecated.
Only used in original JavaAgent. Not to be used with OpenTracing.
|
static boolean |
isURIRewritten(Node node)
Deprecated.
Only used in original JavaAgent. Not to be used with OpenTracing.
|
static boolean |
rewriteURI(Node node)
This method checks whether a URI template has been defined.
|
static void |
rewriteURI(Node node,
String uri)
Deprecated.
Only used in original JavaAgent. Not to be used with OpenTracing.
|
@Deprecated public static boolean isURIRewritten(Node node)
node - The node@Deprecated public static void rewriteURI(Node node, String uri)
node - The nodeuri - The new URI@Deprecated public static boolean isOriginalURI(Node node, String uri)
node - The nodeuri - The URIpublic static boolean rewriteURI(Node node)
node - The node containing the current URI and optional templatepublic static <T extends Node> List<T> findNodes(List<Node> nodes, Class<T> cls)
nodes - The nodes to scancls - The class of the node to be returnedpublic static <T extends Node> void findNodes(List<Node> nodes, Class<T> cls, List<T> results)
nodes - The nodes to scancls - The class of the node to be returnedresults - The list of nodes foundCopyright © 2015–2017 Red Hat, Inc.. All rights reserved.