2 * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.netconf.test.tool.rpc;
10 import org.opendaylight.netconf.api.xml.XmlElement;
11 import org.opendaylight.netconf.api.xml.XmlNetconfConstants;
12 import org.opendaylight.netconf.api.xml.XmlUtil;
13 import org.opendaylight.netconf.util.mapping.AbstractLastNetconfOperation;
14 import org.w3c.dom.Document;
15 import org.w3c.dom.Element;
17 public class SimulatedDiscardChanges extends AbstractLastNetconfOperation {
19 public SimulatedDiscardChanges(final String netconfSessionIdForReporting) {
20 super(netconfSessionIdForReporting);
24 protected Element handleWithNoSubsequentOperations(final Document document, final XmlElement operationElement) {
25 return XmlUtil.createElement(document, XmlNetconfConstants.OK);
29 protected String getOperationName() {
30 return "discard-changes";