| java.lang.Object org.lateralnz.common.util.HttpUtils
HttpUtils | public class HttpUtils implements Constants(Code) | | standard HTTP functions
author: J R Briggs |
GET_METHOD | final public static int GET_METHOD(Code) | | |
POST_METHOD | final public static int POST_METHOD(Code) | | |
send | final public static String send(String url, int method, String[][] extraHeaders, String contentType, String body) throws Exception(Code) | | send a 'request' to a remote server
Parameters: url - the url to call. e.g. http://localhost:9090/controller Parameters: method - one of HttpUtils.GET_METHOD or HttpUtils.POST_METHOD Parameters: contentType - the content type of the request (e.g. text/xml) Parameters: body - in the case of a POST, this will contain the body of the post |
|
|