|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.planeth.common.helper.HttpHelper
Helper to handle HttpRequests
| Constructor Summary | |
HttpHelper()
|
|
| Method Summary | |
static java.lang.String |
getRequest(java.lang.String urlStr)
Http GET request |
static org.w3c.dom.Document |
getXml(java.lang.String urlStr)
Request a XmlDocument over a Get Request |
static java.lang.String |
postRequest(java.lang.String urlStr,
java.lang.String data)
Http POST request |
static org.w3c.dom.Document |
postXml(java.lang.String urlStr,
org.w3c.dom.Document document)
Sends the content of an XmlDocument to an Url and requests it after the send is complete. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public HttpHelper()
| Method Detail |
public static java.lang.String getRequest(java.lang.String urlStr)
urlStr - Url where the request has to send
public static java.lang.String postRequest(java.lang.String urlStr,
java.lang.String data)
urlStr - Url where the request has to senddata - Data to be sent
public static org.w3c.dom.Document getXml(java.lang.String urlStr)
urlStr - Url where the request has to send
public static org.w3c.dom.Document postXml(java.lang.String urlStr,
org.w3c.dom.Document document)
urlStr - Url where the request has to senddocument - XmlDocument to be sent
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||