import java.util.Collection;
import java.util.List;
import java.util.Optional;
-import javax.annotation.Nonnull;
import org.opendaylight.netconf.api.DocumentedException;
import org.opendaylight.netconf.api.NetconfDocumentedException;
import org.opendaylight.netconf.api.NetconfMessage;
import org.w3c.dom.Document;
public final class NetconfMessageUtil {
-
private static final Logger LOG = LoggerFactory.getLogger(NetconfMessageUtil.class);
- private NetconfMessageUtil() {}
+ private NetconfMessageUtil() {
+
+ }
public static boolean isOKMessage(final NetconfMessage message) throws NetconfDocumentedException {
return isOKMessage(message.getDocument());
}
List<XmlElement> caps = capabilitiesElement.get().getChildElements(XmlNetconfConstants.CAPABILITY);
- return Collections2.transform(caps, (@Nonnull final XmlElement input) -> {
+ return Collections2.transform(caps, input -> {
// Trim possible leading/tailing whitespace
try {
return input.getTextContent().trim();