Version: 1.1.1

ca.ucalgary.services.util
Class CGIUtils

java.lang.Object
  extended by ca.ucalgary.services.util.CGIUtils

public class CGIUtils
extends Object


Constructor Summary
CGIUtils()
           
 
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)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CGIUtils

public CGIUtils()
Method Detail

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

Version: 1.1.1

Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010