X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fsamples%2Fnorthbound%2Floadbalancer%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsamples%2Floadbalancer%2Fnorthbound%2FVIPs.java;fp=opendaylight%2Fsamples%2Fnorthbound%2Floadbalancer%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsamples%2Floadbalancer%2Fnorthbound%2FVIPs.java;h=f0af929b39aed15becefb996efe2a5806b398557;hb=bf9ead90c2584be7c6bafff0a49aec3db62f54da;hp=0000000000000000000000000000000000000000;hpb=ee47b04caddbab0695833f13896c978c57a7d3a3;p=controller.git 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 index 0000000000..f0af929b39 --- /dev/null +++ b/opendaylight/samples/northbound/loadbalancer/src/main/java/org/opendaylight/controller/samples/loadbalancer/northbound/VIPs.java @@ -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 loadBalancerVIPs; + + public VIPs() {} + + + public VIPs (Set loadBalancerVIPs) { + this.loadBalancerVIPs = loadBalancerVIPs; + } + + /** + * @return the loadBalancerVIPs + */ + public Set getLoadBalancerVIPs() { + return loadBalancerVIPs; + } + + /** + * @param loadBalancerVIPs the loadBalancerVIPs to set + */ + + public void setLoadBalancerVIPs(Set loadBalancerVIPs) { + this.loadBalancerVIPs = loadBalancerVIPs; + } +} \ No newline at end of file