Package VASSAL.chat
Class HttpRequestWrapper
java.lang.Object
VASSAL.chat.HttpRequestWrapper
Performs Get and Post operations to a given URL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondoGet(String url, Properties props)
Perform a GET requestdoGet(Properties p)
doPost(String url, Properties props)
doPost(Properties p)
-
Constructor Details
-
HttpRequestWrapper
-
-
Method Details
-
doGet
- Throws:
IOException
-
doGet
Perform a GET request- Parameters:
url
- the URL relative to the base URLprops
- additional query parameters- Returns:
- a List of Strings, one for each line in the response
- Throws:
IOException
-
doPost
- Throws:
IOException
-
doPost
- Throws:
IOException
-