View Javadoc

1   /**
2    *  BlueCove - Java library for Bluetooth
3    *  Copyright (C) 2008 Michael Lifshits
4    *  Copyright (C) 2008 Vlad Skarzhevskyy
5    *
6    *  Licensed to the Apache Software Foundation (ASF) under one
7    *  or more contributor license agreements.  See the NOTICE file
8    *  distributed with this work for additional information
9    *  regarding copyright ownership.  The ASF licenses this file
10   *  to you under the Apache License, Version 2.0 (the
11   *  "License"); you may not use this file except in compliance
12   *  with the License.  You may obtain a copy of the License at
13   *
14   *    http://www.apache.org/licenses/LICENSE-2.0
15   *
16   *  Unless required by applicable law or agreed to in writing,
17   *  software distributed under the License is distributed on an
18   *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
19   *  KIND, either express or implied.  See the License for the
20   *  specific language governing permissions and limitations
21   *  under the License.
22   *
23   *  @author vlads
24   *  @version $Id: ServiceRequest.java 2471 2008-12-01 03:44:20Z skarzhevskyy $
25   */
26  package com.intel.bluetooth.rmi;
27  
28  import java.io.Serializable;
29  
30  class ServiceRequest implements Serializable {
31  
32  	private static final long serialVersionUID = 1L;
33  
34  	private String className;
35  
36  	private String methodName;
37  
38  	private Class<?>[] parameterTypes;
39  
40  	private Object[] parameters;
41  
42  	public ServiceRequest(String className, String methodName, Class<?>[] parameterTypes, Object[] parameters) {
43  		super();
44  		this.className = className;
45  		this.methodName = methodName;
46  		this.parameterTypes = parameterTypes;
47  		this.parameters = parameters;
48  	}
49  
50  	public String getClassName() {
51  		return className;
52  	}
53  
54  	public void setClassName(String className) {
55  		this.className = className;
56  	}
57  
58  	public String getMethodName() {
59  		return methodName;
60  	}
61  
62  	public void setMethodName(String methodName) {
63  		this.methodName = methodName;
64  	}
65  
66  	public Class<?>[] getParameterTypes() {
67  		return parameterTypes;
68  	}
69  
70  	public void setParameterTypes(Class<?>[] parameterTypes) {
71  		this.parameterTypes = parameterTypes;
72  	}
73  
74  	public Object[] getParameters() {
75  		return parameters;
76  	}
77  
78  	public void setParameters(Object[] parameters) {
79  		this.parameters = parameters;
80  	}
81  
82  }