X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fnetconf%2Fnetconf-impl%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fnetconf%2Fimpl%2Fmapping%2Foperations%2FDefaultStartExi.java;h=5593c22fad1e233b9ee9ce2a1eb88cf3451144e6;hp=3f0ae27dbbcea4e1226694eedd3aaab4a05ce586;hb=d762fe6c823ad1ba21db1cad627a1cbd6d7c6d8e;hpb=ee0877c07ff700157dd9fc2e445df095c88f79bc diff --git a/opendaylight/netconf/netconf-impl/src/main/java/org/opendaylight/controller/netconf/impl/mapping/operations/DefaultStartExi.java b/opendaylight/netconf/netconf-impl/src/main/java/org/opendaylight/controller/netconf/impl/mapping/operations/DefaultStartExi.java index 3f0ae27dbb..5593c22fad 100644 --- a/opendaylight/netconf/netconf-impl/src/main/java/org/opendaylight/controller/netconf/impl/mapping/operations/DefaultStartExi.java +++ b/opendaylight/netconf/netconf-impl/src/main/java/org/opendaylight/controller/netconf/impl/mapping/operations/DefaultStartExi.java @@ -28,14 +28,16 @@ public class DefaultStartExi extends AbstractSingletonNetconfOperation implement private static final Logger LOG = LoggerFactory.getLogger(DefaultStartExi.class); private NetconfServerSession netconfSession; - public DefaultStartExi(String netconfSessionIdForReporting) { + public DefaultStartExi(final String netconfSessionIdForReporting) { super(netconfSessionIdForReporting); } @Override - public Document handle(Document message, - NetconfOperationChainedExecution subsequentOperation) throws NetconfDocumentedException { - LOG.debug("Received start-exi message {} ", XmlUtil.toString(message)); + public Document handle(final Document message, + final NetconfOperationChainedExecution subsequentOperation) throws NetconfDocumentedException { + if (LOG.isDebugEnabled()) { + LOG.debug("Received start-exi message {} ", XmlUtil.toString(message)); + } try { netconfSession.startExiCommunication(new NetconfMessage(message)); @@ -48,7 +50,7 @@ public class DefaultStartExi extends AbstractSingletonNetconfOperation implement } @Override - protected Element handleWithNoSubsequentOperations(Document document, XmlElement operationElement) throws NetconfDocumentedException { + protected Element handleWithNoSubsequentOperations(final Document document, final XmlElement operationElement) throws NetconfDocumentedException { Element getSchemaResult = document.createElementNS( XmlNetconfConstants.URN_IETF_PARAMS_XML_NS_NETCONF_BASE_1_0, XmlNetconfConstants.OK); LOG.trace("{} operation successful", START_EXI); return getSchemaResult; @@ -65,7 +67,7 @@ public class DefaultStartExi extends AbstractSingletonNetconfOperation implement } @Override - public void setNetconfSession(NetconfServerSession s) { + public void setNetconfSession(final NetconfServerSession s) { netconfSession = s; } }