Package org.onosproject.netconf
Class NetconfRpcParserUtil
- java.lang.Object
-
- org.onosproject.netconf.NetconfRpcParserUtil
-
@Beta public final class NetconfRpcParserUtil extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NetconfRpcReplyparseRpcReply(java.lang.CharSequence xml)Parse first rpc-reply contained in the input.static NetconfRpcReplyparseRpcReply(javax.xml.stream.XMLStreamReader xsr)Parse first rpc-reply contained in the input.static java.lang.StringtoString(java.lang.Object xml)Converts XML object into a String.
-
-
-
Method Detail
-
parseRpcReply
public static NetconfRpcReply parseRpcReply(java.lang.CharSequence xml)
Parse first rpc-reply contained in the input.- Parameters:
xml- input- Returns:
NetconfRpcReplyor null on error
-
parseRpcReply
public static NetconfRpcReply parseRpcReply(javax.xml.stream.XMLStreamReader xsr)
Parse first rpc-reply contained in the input.- Parameters:
xsr- input- Returns:
NetconfRpcReplyor null on error
-
toString
@Beta public static java.lang.String toString(java.lang.Object xml)
Converts XML object into a String.- Parameters:
xml- Object (e.g., DOMNode)- Returns:
- String representation of
xmlor empty on error.
-
-