public class HttpSupport extends Object
| Constructor and Description |
|---|
HttpSupport() |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,String> |
deserialiseParameterMap(Map<String,String[]> params)
Deserialise the result of request.getParameterMap to convert a query string back into a single valued map.
|
static String |
doPost(String address,
Map<String,String> params)
Make a POST request with the given Map of parameters to be encoded
|
static String |
postLaunchHtml(String address,
Map<String,String> params)
Generate a HTML form that will automatically submit itself, based on the parameters supplied.
|
static String |
serialiseMapToQueryString(Map<String,String> params)
Serialise the given Map of parameters to a URL query string
|
public static String doPost(String address, Map<String,String> params)
address - address to POST toparams - Map of params to use as the form parameterspublic static String serialiseMapToQueryString(Map<String,String> params)
params - Map of paramspublic static Map<String,String> deserialiseParameterMap(Map<String,String[]> params)
Note, only the first value is kept.
map - Mappublic static String postLaunchHtml(String address, Map<String,String> params)
endpoint - params - Copyright © 2009-2013 Division of Information, Australian National University. All Rights Reserved.