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 PolicyResolveResponse extends RpcMessage {
25 public static final String POLICY_MESSAGE_RESPONSE = "policy_resolve_response";
27 static public class Result {
29 private List<ManagedObject> policy;
31 public List<ManagedObject> getPolicy() {
35 public void setPolicy(List<ManagedObject> policy) {
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) {
83 public PolicyResolveResponse(String name) {
87 public PolicyResolveResponse() {
88 this.name = POLICY_MESSAGE_RESPONSE;
92 public String getName() {
97 public void setName(String name) {
103 public boolean valid() {