Fix checkstyle
[openflowplugin.git] / openflowplugin-api / src / main / java / org / opendaylight / openflowplugin / api / openflow / md / core / HandshakeListener.java
index d104b9cabb916ec18249ee79bd4cfb14307f2b8c..42fa37e9e6a2f40ea71371bb5accb6f64df6d354 100644 (file)
@@ -1,4 +1,4 @@
-/**
+/*
  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
  *
  * This program and the accompanying materials are made available under the
@@ -7,19 +7,17 @@
  */
 package org.opendaylight.openflowplugin.api.openflow.md.core;
 
+import org.opendaylight.openflowplugin.api.openflow.connection.HandshakeContext;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.GetFeaturesOutput;
 
-/**
- * @author mirehak
- *
- */
 public interface HandshakeListener {
-    
+
     /**
+     * Handshake successfull.
      * @param featureOutput obtained
      * @param version negotiated
      */
-    void onHandshakeSuccessfull(GetFeaturesOutput featureOutput, Short version);
+    void onHandshakeSuccessful(GetFeaturesOutput featureOutput, Short version);
 
     /**
      * This method is called when handshake fails for some reason. It allows
@@ -27,4 +25,9 @@ public interface HandshakeListener {
      */
     void onHandshakeFailure();
 
+    /**
+     * Setter.
+     * @param handshakeContext context
+     */
+    void setHandshakeContext(HandshakeContext handshakeContext);
 }