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.renderer.opflex.jsonrpc.RpcMessage;
16 import com.fasterxml.jackson.annotation.JsonIgnore;
17 import com.fasterxml.jackson.databind.JsonNode;
18 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
19 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
23 public class EndpointResolveResponse extends RpcMessage {
25 public static final String EPP_RESOLVE_MESSAGE_RESPONSE = "endpoint_resolve_response";
27 static public class Result {
29 List<ManagedObject> endpoint;
31 public List<ManagedObject> getEndpoint() {
35 public void setEndpoint(List<ManagedObject> endpoint) {
36 this.endpoint = endpoint;
41 private Result result;
42 private OpflexError error;
47 private String method;
50 public JsonNode getId() {
55 public void setId(JsonNode id) {
59 public OpflexError getError() {
63 public void setError(OpflexError error) {
68 public String getMethod() {
73 public void setMethod(String method) {}
75 public Result getResult() {
79 public void setResult(Result result) {
84 public String getName() {
89 public void setName(String name) {
93 public EndpointResolveResponse(String name) {
97 public EndpointResolveResponse() {
98 this.name = EPP_RESOLVE_MESSAGE_RESPONSE;
103 public boolean valid() {