public abstract class Request extends Object
Base class for all WSAPI requests.
Subclasses classes should provide an implementation oftoUrl()| Constructor and Description |
|---|
Request()
Create a new request.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addParam(String name,
String value)
Add the specified parameter to this request.
|
List<NameValuePair> |
getParams()
Get the list of additional parameters included in this request.
|
void |
setParams(List<NameValuePair> params)
Set the list of additional parameters included in this request.
|
abstract String |
toUrl()
Convert this request into a url compatible with the WSAPI.
|
public List<NameValuePair> getParams()
public void setParams(List<NameValuePair> params)
params - The list of additional parameterspublic void addParam(String name, String value)
name - the parameter namevalue - the parameter valuepublic abstract String toUrl()
Convert this request into a url compatible with the WSAPI.
Must be implemented by subclasses.