|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.pdx.cs399J.web.HttpRequestHelper
public class HttpRequestHelper
A helper class that provides methods for requesting resources via HTTP
| Nested Class Summary | |
|---|---|
static class |
HttpRequestHelper.Response
Encapsulates a response to an HTTP request |
| Constructor Summary | |
|---|---|
HttpRequestHelper()
|
|
| Method Summary | |
|---|---|
protected HttpRequestHelper.Response |
get(String urlString,
String... parameters)
Performs an HTTP GET on the given URL |
static void |
main(String[] args)
A main method that requests a resource from a URL using a given HTTP method |
protected HttpRequestHelper.Response |
post(String urlString,
String... parameters)
Performs an HTTP POST to the given URL |
protected HttpRequestHelper.Response |
put(String urlString,
String... parameters)
Performs an HTTP PUT on the given URL |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpRequestHelper()
| Method Detail |
|---|
protected HttpRequestHelper.Response get(String urlString,
String... parameters)
throws IOException
urlString - The URL to getparameters - The key/value query parameters
Response summarizing the result of the GET
IOException
protected HttpRequestHelper.Response post(String urlString,
String... parameters)
throws IOException
urlString - The URL to post toparameters - The key/value parameters
Response summarizing the result of the POST
IOException
protected HttpRequestHelper.Response put(String urlString,
String... parameters)
throws IOException
urlString - The URL to put toparameters - key/value parameters to the put
Reponse summarizing the result of the PUT
IOException
public static void main(String[] args)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||