|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.yahoo.rest.RestRequest
public class RestRequest
REST request base class.
| Constructor Summary | |
|---|---|
RestRequest(String defaultRequestUrl)
Constructs a REST request with the given URL. |
|
| Method Summary | |
|---|---|
void |
addParameter(String name,
String value)
Adds a parameter value to a list. |
void |
clearParameter(String name)
Removes a parameter from the list. |
Map |
getParameters()
Gets the list of parameters to send to the REST service. |
String |
getRequestUrl()
Gets the request URL for the REST request. |
void |
setParameter(String name,
String value)
Sets a parameter within the request. |
void |
setRequestUrl(String requestUrl)
Sets the URL for the REST request, overriding the default set in the constructor. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RestRequest(String defaultRequestUrl)
defaultRequestUrl - The URL of the REST service.| Method Detail |
|---|
public Map getParameters()
public void setParameter(String name,
String value)
name - The name of the parameter to set.value - The value of the parameter to set.
public void addParameter(String name,
String value)
name - The name of the parameter list to add to.value - The value to add to the parameter list.public void clearParameter(String name)
name - The name of the parameter to remove from the list.public String getRequestUrl()
public void setRequestUrl(String requestUrl)
requestUrl - The new URL for the REST request.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||