2 * Copyright (c) 2013, 2015 EBay Software Foundation and others. All rights reserved.
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
9 package org.opendaylight.ovsdb.lib.jsonrpc;
11 import com.google.common.collect.Lists;
13 import java.util.List;
15 public class JsonRpc10Request {
19 List<Object> params = Lists.newArrayList();
21 public JsonRpc10Request(String id) {
25 public String getId() {
29 public void setId(String id) {
33 public String getMethod() {
37 public void setMethod(String method) {
41 public List<Object> getParams() {
45 public void setParams(List<Object> params) {
49 public void setParams(Object[] pararms) {
50 this.params = Lists.newArrayList(pararms);
54 public String toString() {
55 return "JsonRpc10Request [id=" + id + ", method=" + method
56 + ", params=" + params + "]";