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 org.opendaylight.groupbasedpolicy.renderer.opflex.jsonrpc.RpcMessage;
14 import com.fasterxml.jackson.annotation.JsonIgnore;
15 import com.fasterxml.jackson.databind.JsonNode;
16 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
17 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
21 public class PolicyUpdateResponse extends RpcMessage {
23 public static final String UPDATE_MESSAGE_RESPONSE = "policy_update_response";
25 static public class Result {
29 private Result result;
30 private OpflexError error;
35 private String method;
38 public JsonNode getId() {
43 public void setId(JsonNode id) {
47 public OpflexError getError() {
51 public void setError(OpflexError error) {
56 public String getMethod() {
61 public void setMethod(String method) {}
63 public Result getResult() {
67 public void setResult(Result result) {
71 public PolicyUpdateResponse(String name) {
75 public PolicyUpdateResponse() {
76 this.name = UPDATE_MESSAGE_RESPONSE;
80 public String getName() {
85 public void setName(String name) {
91 public boolean valid() {