2 * Copyright (C) 2013 EBay Software Foundation
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 : Ashwin Raveendran, Madhu Venugopal
10 package org.opendaylight.ovsdb.lib.jsonrpc;
12 import com.google.common.collect.Lists;
14 import java.util.List;
16 public class JsonRpc10Request {
20 List<Object> params = Lists.newArrayList();
22 public JsonRpc10Request(String id) {
26 public String getId() {
30 public void setId(String id) {
34 public String getMethod() {
38 public void setMethod(String method) {
42 public List<Object> getParams() {
46 public void setParams(List<Object> params) {
50 public void setParams(Object[] pararms) {
51 this.params = Lists.newArrayList(pararms);
55 public String toString() {
56 return "JsonRpc10Request [id=" + id + ", method=" + method
57 + ", params=" + params + "]";