|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hawk.util.HttpUtil
public class HttpUtil
An utility to communicate with the targetURL. Apart from sending post requests , this can also also upload file too.
HttpModule
Constructor Summary | |
---|---|
HttpUtil()
|
Method Summary | |
---|---|
static java.lang.String |
createPostData(java.util.Map<java.lang.String,java.lang.String> hawkMap)
This creates POST data from the input map passed in from hawk script. |
static java.lang.String |
fetchAndSaveResult(java.net.HttpURLConnection conn)
This reads the HttpsURLConnection and saves the response in a html file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HttpUtil()
Method Detail |
---|
public static java.lang.String createPostData(java.util.Map<java.lang.String,java.lang.String> hawkMap) throws HawkException
hawkMap
- input map from the hawk script
HawkException
public static java.lang.String fetchAndSaveResult(java.net.HttpURLConnection conn)
conn
- connection from which data is to be read.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |