Fix a bug in the Json serialization of class ApplicationIntent:

Rename all foo() getter methods to getFoo() so the default Json
serialization will include those values.

Also, add extra "case REROUTE_REQ" inside DeleteIntentsTracker.intentsChange()
for consistency with the rest of the code.

Change-Id: I208a3885e3058814b49f885931fee0e8cc5ff9ab
diff --git a/src/main/java/net/onrc/onos/api/intent/ApplicationIntent.java b/src/main/java/net/onrc/onos/api/intent/ApplicationIntent.java
index 113e6cd..c5bcda8 100644
--- a/src/main/java/net/onrc/onos/api/intent/ApplicationIntent.java
+++ b/src/main/java/net/onrc/onos/api/intent/ApplicationIntent.java
@@ -25,7 +25,7 @@
      *
      * @return the Intent ID.
      */
-    public String intentId() {
+    public String getIntentId() {
         return this.intentId;
     }
 
@@ -47,7 +47,7 @@
      *
      * @return the Intent type.
      */
-    public String intentType() {
+    public String getIntentType() {
         return this.intentType;
     }
 
@@ -93,7 +93,7 @@
      *
      * @return the Source Switch DPID.
      */
-    public String srcSwitchDpid() {
+    public String getSrcSwitchDpid() {
         return this.srcSwitchDpid;
     }
 
@@ -111,7 +111,7 @@
      *
      * @return the Source Switch Port.
      */
-    public int srcSwitchPort() {
+    public int getSrcSwitchPort() {
         return this.srcSwitchPort;
     }
 
@@ -129,7 +129,7 @@
      *
      * @return the Destination Switch DPID.
      */
-    public String dstSwitchDpid() {
+    public String getDstSwitchDpid() {
         return this.dstSwitchDpid;
     }
 
@@ -147,7 +147,7 @@
      *
      * @return the Destination Switch Port.
      */
-    public int dstSwitchPort() {
+    public int getDstSwitchPort() {
         return this.dstSwitchPort;
     }
 
@@ -165,7 +165,7 @@
      *
      * @return the bandwidth for Constrained Shortest Path.
      */
-    public double bandwidth() {
+    public double getBandwidth() {
         return this.bandwidth;
     }
 
@@ -183,7 +183,7 @@
      *
      * @return the matching source MAC address.
      */
-    public String matchSrcMac() {
+    public String getMatchSrcMac() {
         return this.matchSrcMac;
     }
 
@@ -201,7 +201,7 @@
      *
      * @return the matching destination MAC address.
      */
-    public String matchDstMac() {
+    public String getMatchDstMac() {
         return this.matchDstMac;
     }