|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectau.edu.anu.portal.portlets.basiclti.support.HttpSupport
public class HttpSupport
HTTP support class. Takes care of HTTP related methods
| Constructor Summary | |
|---|---|
HttpSupport()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpSupport()
| Method Detail |
|---|
public static String doPost(String address,
Map<String,String> params)
address - address to POST toparams - Map of params to use as the form parameters
public static String serialiseMapToQueryString(Map<String,String> params)
params - Map of params
public static Map<String,String> deserialiseParameterMap(Map<String,String[]> params)
Note, only the first value is kept.
map - Map
public static String postLaunchHtml(String address,
Map<String,String> params)
endpoint - params -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||