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.jsonrpc;
12 import com.fasterxml.jackson.databind.JsonNode;
16 * The abstract {@link RpcMessage} is used for creating application
17 * specific RPC messages that can be used by the RPC library. The RPC
18 * library uses these for serialization and deserialization of messages.
20 * <p>The class provides notifiers for request and response messages,
21 * and provides for sending new requests.
23 * <p>The class should be used to store the
27 public abstract class RpcMessage {
29 public abstract String getName();
30 public abstract void setName(String name);
31 public abstract JsonNode getId();
32 public abstract void setId(JsonNode id);
33 public abstract String getMethod();
34 public abstract void setMethod(String method);
35 public abstract boolean valid();