Simple Load Balancer Application - Recommitting the source codewith the whole source...
[controller.git] / opendaylight / samples / northbound / loadbalancer / src / main / java / org / opendaylight / controller / samples / loadbalancer / northbound / VIPs.java
diff --git a/opendaylight/samples/northbound/loadbalancer/src/main/java/org/opendaylight/controller/samples/loadbalancer/northbound/VIPs.java b/opendaylight/samples/northbound/loadbalancer/src/main/java/org/opendaylight/controller/samples/loadbalancer/northbound/VIPs.java
new file mode 100644 (file)
index 0000000..f0af929
--- /dev/null
@@ -0,0 +1,53 @@
+/*
+ * Copyright IBM Corporation, 2013.  All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+package org.opendaylight.controller.samples.loadbalancer.northbound;
+
+import java.util.Set;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+
+import org.opendaylight.controller.samples.loadbalancer.entities.VIP;
+
+/**
+ * JAX-RS resource for handling details of all the available VIPs
+ * in response to respective REST API requests.
+ */
+
+@XmlRootElement
+@XmlAccessorType(XmlAccessType.NONE)
+
+public class VIPs {
+    
+    @XmlElement (name="vip")
+    Set<VIP> loadBalancerVIPs;
+    
+    public VIPs() {}
+    
+    
+    public VIPs (Set<VIP> loadBalancerVIPs) {
+        this.loadBalancerVIPs = loadBalancerVIPs;
+    }
+    
+    /**
+     * @return the loadBalancerVIPs
+     */
+    public Set<VIP> getLoadBalancerVIPs() {
+        return loadBalancerVIPs;
+    }
+    
+    /**
+     * @param loadBalancerVIPs the loadBalancerVIPs to set
+     */
+    
+    public void setLoadBalancerVIPs(Set<VIP> loadBalancerVIPs) {
+        this.loadBalancerVIPs = loadBalancerVIPs;
+    }
+}
\ No newline at end of file