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 EndpointResolveRequest extends RpcMessage {
26 public static final String EP_RESOLVE_REQUEST_MESSAGE = "endpoint_resolve";
28 static public class Params {
29 private String subject;
30 private Uri endpoint_uri;
31 private EndpointIdentity endpoint_ident;
34 public String getSubject() {
37 public void setSubject(String subject) {
38 this.subject = subject;
40 public Uri getEndpoint_uri() {
43 public void setEndpoint_uri(Uri endpoint_uri) {
44 this.endpoint_uri = endpoint_uri;
46 public EndpointIdentity getEndpoint_ident() {
47 return endpoint_ident;
49 public void setEndpoint_ident(EndpointIdentity endpoint_ident) {
50 this.endpoint_ident = endpoint_ident;
55 public void setPrr(int prr) {
60 private String method;
61 private List<Params> params;
67 public JsonNode getId() {
72 public void setId(JsonNode id) {
77 public String getMethod() {
82 public void setMethod(String method) {
86 public List<Params> getParams() {
90 public void setParams(List<Params> params) {
95 public String getName() {
100 public void setName(String name) {
104 public EndpointResolveRequest(String name) {
108 public EndpointResolveRequest() {
109 this.name = EP_RESOLVE_REQUEST_MESSAGE;
113 * Minimal check on validity of message
114 * @return true if message has passed validity check
118 public boolean valid() {
121 if (params.get(0) == null)