|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.larkc.core.util.HttpUtils
public class HttpUtils
A collection of handy HTTP methods.
| Constructor Summary | |
|---|---|
HttpUtils()
|
|
| Method Summary | |
|---|---|
static void |
postData(java.io.Reader data,
java.net.URL endpoint,
java.io.Writer output)
Reads data from the data reader and posts it to a server via a POST request. |
static java.lang.String |
sendGetRequest(java.lang.String url)
HTTP GET request with text/xml content type. |
static java.lang.String |
sendGetRequest(java.lang.String resourceUrl,
java.lang.String contentType)
Send an HTTP GET request to the given url |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpUtils()
| Method Detail |
|---|
public static java.lang.String sendGetRequest(java.lang.String url)
url - The URL to the resource.
public static java.lang.String sendGetRequest(java.lang.String resourceUrl,
java.lang.String contentType)
resourceUrl - - The full URL of the resourcecontentType - Type of the content
public static void postData(java.io.Reader data,
java.net.URL endpoint,
java.io.Writer output)
throws java.io.IOException
data - The data to sendendpoint - The server's addressoutput - Where to write the server's response
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||