public class Transport extends Object
Modifier and Type | Field and Description |
---|---|
static String |
APPLICATION_JSON |
static String |
APPLICATION_XML |
static String |
BOUNDARY |
static String |
DELETE |
static String |
GET |
static String |
MULTIPART_MIXED |
static String |
NOOP |
static String |
POST |
static String |
PUT |
Constructor and Description |
---|
Transport() |
Modifier and Type | Method and Description |
---|---|
static ServiceResult |
doDELETE(ServiceResult result,
String urlString,
String authForTest,
String testID,
String fromTestID) |
static ServiceResult |
doGET(ServiceResult result,
String urlString,
String authForTest,
String fromTestID) |
static ServiceResult |
doLIST(ServiceResult result,
String urlString,
String listQueryParams,
String authForTest,
String fromTestID) |
static ServiceResult |
doPOST_PUT(ServiceResult result,
String urlString,
String content,
String contentRaw,
String boundary,
String method,
String contentType,
String authForTest,
String fromTestID,
String requestPayloadFilename,
List<String> uploadFilenames)
This does not deal with boundary or multipart since being ported.
|
static void |
main(String[] args) |
protected static boolean |
setupUpload(org.apache.commons.httpclient.methods.PostMethod postMethod,
List<String> uploadFilenames,
ServiceResult result) |
public static String BOUNDARY
public static final String MULTIPART_MIXED
public static final String APPLICATION_XML
public static final String APPLICATION_JSON
public static final String NOOP
public static final String GET
public static final String POST
public static final String PUT
public static final String DELETE
public static ServiceResult doGET(ServiceResult result, String urlString, String authForTest, String fromTestID) throws Exception
Exception
public static ServiceResult doDELETE(ServiceResult result, String urlString, String authForTest, String testID, String fromTestID)
public static ServiceResult doLIST(ServiceResult result, String urlString, String listQueryParams, String authForTest, String fromTestID) throws Exception
Exception
protected static boolean setupUpload(org.apache.commons.httpclient.methods.PostMethod postMethod, List<String> uploadFilenames, ServiceResult result)
public static ServiceResult doPOST_PUT(ServiceResult result, String urlString, String content, String contentRaw, String boundary, String method, String contentType, String authForTest, String fromTestID, String requestPayloadFilename, List<String> uploadFilenames)
Copyright © 2016. All rights reserved.