2 * Copyright (C) 2014 Cisco Systems, Inc.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 * Authors : Thomas Bachman
10 package org.opendaylight.groupbasedpolicy.renderer.opflex.lib.messages;
12 import java.util.List;
14 import org.opendaylight.groupbasedpolicy.jsonrpc.RpcMessage;
15 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev100924.Uri;
17 import com.fasterxml.jackson.annotation.JsonIgnore;
18 import com.fasterxml.jackson.databind.JsonNode;
20 public class EndpointUndeclareRequest extends RpcMessage {
22 public static final String UNDECLARE_MESSAGE = "endpoint_undeclare";
24 static public class Params {
25 private String subject;
26 private Uri endpoint_uri;
28 public String getSubject() {
31 public void setSubject(String subject) {
32 this.subject = subject;
34 public Uri getEndpoint_uri() {
37 public void setEndpoint_uri(Uri endpoint_uri) {
38 this.endpoint_uri = endpoint_uri;
42 private String method;
43 private List<Params> params;
49 public JsonNode getId() {
54 public void setId(JsonNode id) {
59 public String getMethod() {
64 public void setMethod(String method) {
68 public List<Params> getParams() {
72 public void setParams(List<Params> params) {
77 public String getName() {
82 public void setName(String name) {
86 public EndpointUndeclareRequest(String name) {
90 public EndpointUndeclareRequest() {
91 this.name = UNDECLARE_MESSAGE;
92 this.method = UNDECLARE_MESSAGE;
96 * Minimal check on validity of message
97 * @return true if message has passed validity check
101 public boolean valid() {
104 if (params.get(0) == null)