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;
19 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
20 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
24 public class EndpointUnresolveRequest extends RpcMessage {
26 public static final String EP_UNRESOLVE_REQUEST_MESSAGE = "endpoint_unresolve";
28 static public class Params {
29 private String subject;
30 private Uri endpoint_uri;
31 private EndpointIdentity endpoint_ident;
32 public String getSubject() {
35 public void setSubject(String subject) {
36 this.subject = subject;
38 public Uri getEndpoint_uri() {
41 public void setEndpoint_uri(Uri endpoint_uri) {
42 this.endpoint_uri = endpoint_uri;
44 public EndpointIdentity getEndpoint_ident() {
45 return endpoint_ident;
47 public void setEndpoint_ident(EndpointIdentity endpoint_ident) {
48 this.endpoint_ident = endpoint_ident;
52 private String method;
53 private List<Params> params;
59 public JsonNode getId() {
64 public void setId(JsonNode id) {
69 public String getMethod() {
74 public void setMethod(String method) {
78 public List<Params> getParams() {
82 public void setParams(List<Params> params) {
87 public String getName() {
92 public void setName(String name) {
96 public EndpointUnresolveRequest(String name) {
100 public EndpointUnresolveRequest() {
101 this.name = EP_UNRESOLVE_REQUEST_MESSAGE;
105 * Minimal check on validity of message
106 * @return true if message has passed validity check
110 public boolean valid() {
113 if (params.get(0) == null)