Do not return null in RpcHandlerDefault
[netconf.git] / netconf / tools / netconf-testtool / src / main / java / org / opendaylight / netconf / test / tool / rpchandler / RpcHandlerDefault.java
1 /*
2  * Copyright (c) 2015 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.netconf.test.tool.rpchandler;
9
10 import java.util.Optional;
11 import org.opendaylight.controller.config.util.xml.XmlElement;
12 import org.slf4j.Logger;
13 import org.slf4j.LoggerFactory;
14 import org.w3c.dom.Document;
15
16 public class RpcHandlerDefault implements RpcHandler {
17
18     private static final Logger LOG = LoggerFactory.getLogger(RpcHandlerDefault.class);
19
20     @Override
21     public Optional<Document> getResponse(XmlElement rpcElement) {
22         LOG.info("getResponse: {}", rpcElement.toString());
23         return Optional.empty();
24     }
25
26 }