Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||||
XmlRpcRequest |
|
| 1.0;1 |
1 | /* |
|
2 | * Copyright 1999,2005 The Apache Software Foundation. |
|
3 | * |
|
4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
|
5 | * you may not use this file except in compliance with the License. |
|
6 | * You may obtain a copy of the License at |
|
7 | * |
|
8 | * http://www.apache.org/licenses/LICENSE-2.0 |
|
9 | * |
|
10 | * Unless required by applicable law or agreed to in writing, software |
|
11 | * distributed under the License is distributed on an "AS IS" BASIS, |
|
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
13 | * See the License for the specific language governing permissions and |
|
14 | * limitations under the License. |
|
15 | */ |
|
16 | package org.apache.xmlrpc; |
|
17 | ||
18 | ||
19 | /** Interface to an XML-RPC request made by a client. Replaces the |
|
20 | * class <code>org.apache.xmlrpc.XmlRpcClientRequest</code> from |
|
21 | * Apache XML-RPC 2.0. |
|
22 | * @since 3.0 |
|
23 | */ |
|
24 | public interface XmlRpcRequest { |
|
25 | /** Returns the request configuration. |
|
26 | * @return The request configuration. |
|
27 | */ |
|
28 | XmlRpcRequestConfig getConfig(); |
|
29 | /** Returns the requests method name. |
|
30 | * @return Name of the method being invoked. |
|
31 | */ |
|
32 | String getMethodName(); |
|
33 | /** Returns the number of parameters. |
|
34 | * @return Number of parameters. |
|
35 | */ |
|
36 | int getParameterCount(); |
|
37 | /** Returns the parameter with index <code>pIndex</code>. |
|
38 | * @param pIndex Number between 0 and {@link #getParameterCount()}-1. |
|
39 | * @return Parameter being sent to the server. |
|
40 | */ |
|
41 | public Object getParameter(int pIndex); |
|
42 | } |