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;
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 {
28 private List<ManagedObject> policy;
29 public List<ManagedObject> getPolicy() {
32 public void setPolicy(List<ManagedObject> policy) {
38 private Result result;
39 private OpflexError error;
44 private String method;
47 public JsonNode getId() {
52 public void setId(JsonNode id) {
56 public OpflexError getError() {
60 public void setError(OpflexError error) {
65 public String getMethod() {
70 public void setMethod(String method) {
73 public Result getResult() {
77 public void setResult(Result result) {
81 public PolicyResolveResponse(String name) {
85 public PolicyResolveResponse() {
86 this.name = POLICY_MESSAGE_RESPONSE;
90 public String getName() {
95 public void setName(String name) {
101 public boolean valid() {