Package org.onosproject.netconf
Class NetconfRpcReply
- java.lang.Object
-
- org.onosproject.netconf.NetconfRpcReply
-
@Beta public class NetconfRpcReply extends java.lang.ObjectRepresentation of rpc-reply.- See Also:
NetconfRpcParserUtil
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNetconfRpcReply.BuilderBuilder to buildNetconfRpcReply.static classNetconfRpcReply.Type
-
Constructor Summary
Constructors Modifier Constructor Description protectedNetconfRpcReply(NetconfRpcReply.Builder builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NetconfRpcReply.Builderbuilder()Creates builder to buildNetconfRpcReply.java.util.List<NetconfRpcError>errors()Returns list of rpc-errors in rpc-reply.booleanhasError()Returns true if reply contains rpc-error.booleanisOk()Returns true if ok reply.java.lang.StringmessageId()Returns message-id of this message.java.util.List<java.lang.String>responses()Returns list of rpc responses in rpc-reply.java.lang.StringtoString()
-
-
-
Constructor Detail
-
NetconfRpcReply
protected NetconfRpcReply(NetconfRpcReply.Builder builder)
-
-
Method Detail
-
messageId
public java.lang.String messageId()
Returns message-id of this message.- Returns:
- message-id
-
isOk
public boolean isOk()
Returns true if ok reply.- Returns:
- true if ok reply.
-
hasError
public boolean hasError()
Returns true if reply contains rpc-error.- Returns:
- true if reply contains rpc-error
-
errors
public java.util.List<NetconfRpcError> errors()
Returns list of rpc-errors in rpc-reply.- Returns:
- list of rpc-errors in rpc-reply.
-
responses
public java.util.List<java.lang.String> responses()
Returns list of rpc responses in rpc-reply.- Returns:
- list of rpc responses in rpc-reply.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
builder
public static NetconfRpcReply.Builder builder()
Creates builder to buildNetconfRpcReply.- Returns:
- created builder
-
-