|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.lastbamboo.common.http.client.HttpClientGetRequester
public class HttpClientGetRequester
Issues a post request using HTTP client.
| Constructor Summary | |
|---|---|
HttpClientGetRequester()
|
|
| Method Summary | |
|---|---|
String |
request(String url)
Issue a request with no parameters. |
String |
request(String address,
Collection<org.littleshoot.util.Pair<String,String>> parameters)
Writes a request to the specified address. |
String |
request(String address,
Map<String,String> parameters)
Writes a request to the specified address. |
String |
request(URL url)
Issue a request with no parameters. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpClientGetRequester()
| Method Detail |
|---|
public String request(String address,
Collection<org.littleshoot.util.Pair<String,String>> parameters)
throws IOException,
ServiceUnavailableException
HttpClientRequester
request in interface HttpClientRequesteraddress - The base URL to send the request to.parameters - The request parameters.
IOException - If an IO error occurs.
ServiceUnavailableException - If the service is unavailable.
public String request(String address,
Map<String,String> parameters)
throws IOException,
ServiceUnavailableException
HttpClientRequester
request in interface HttpClientRequesteraddress - The base URL to send the request to.parameters - The request parameters.
IOException - If an IO error occurs.
ServiceUnavailableException - If the service is unavailable.
public String request(String url)
throws IOException,
ServiceUnavailableException
HttpClientRequester
request in interface HttpClientRequesterurl - The URL to issue the request to.
IOException - If an IO error occurs.
ServiceUnavailableException - If the service is unavailable.
public String request(URL url)
throws IOException,
ServiceUnavailableException
HttpClientRequester
request in interface HttpClientRequesterurl - The URL to issue the request to.
IOException - If any IO error occurs.
ServiceUnavailableException - If the service is unavailable.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||