ca.ucalgary.services.util
Class CGIUtils
java.lang.Object
ca.ucalgary.services.util.CGIUtils
public class CGIUtils
- extends Object
Method Summary |
static byte[] |
executeGet(String targetURL,
Map<String,byte[]> dataInstances)
|
static byte[] |
executePost(String targetURL,
Map<String,byte[]> dataInstances)
|
static byte[] |
executePostMultipart(String targetURL,
Map<String,byte[]> dataInstances,
List<String> fileTypeParameterNames)
|
static org.apache.commons.httpclient.methods.multipart.MultipartRequestEntity |
getMultipartRequest(Map<String,byte[]> dataInstances,
org.apache.commons.httpclient.params.HttpMethodParams params,
List<String> fileTypeInputs)
|
static org.apache.commons.httpclient.NameValuePair[] |
getNameValuePairs(Map<String,byte[]> dataInstances)
|
static String |
getURLQuery(Map<String,byte[]> dataInstances)
|
CGIUtils
public CGIUtils()
getNameValuePairs
public static org.apache.commons.httpclient.NameValuePair[] getNameValuePairs(Map<String,byte[]> dataInstances)
getMultipartRequest
public static org.apache.commons.httpclient.methods.multipart.MultipartRequestEntity getMultipartRequest(Map<String,byte[]> dataInstances,
org.apache.commons.httpclient.params.HttpMethodParams params,
List<String> fileTypeInputs)
- Parameters:
fileTypeInputs
- list of inputs that are file uploads
getURLQuery
public static String getURLQuery(Map<String,byte[]> dataInstances)
throws org.apache.commons.httpclient.URIException
- Throws:
org.apache.commons.httpclient.URIException
executeGet
public static byte[] executeGet(String targetURL,
Map<String,byte[]> dataInstances)
throws Exception
- Throws:
Exception
executePostMultipart
public static byte[] executePostMultipart(String targetURL,
Map<String,byte[]> dataInstances,
List<String> fileTypeParameterNames)
throws Exception
- Throws:
Exception
executePost
public static byte[] executePost(String targetURL,
Map<String,byte[]> dataInstances)
throws Exception
- Throws:
Exception
Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010