public class RequestClient extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CHARSET |
static String |
METHOD_DELETE |
static String |
METHOD_GET |
static String |
METHOD_POST |
Constructor and Description |
---|
RequestClient(String fromurl,
String frommethod) |
RequestClient(String fromurl,
String frommethod,
org.json.JSONArray fromjsonArrayBodyContent) |
RequestClient(String fromurl,
String frommethod,
Map<String,Object> fromparam) |
RequestClient(String fromurl,
String frommethod,
Map<String,Object> fromparam,
Map<String,String> fromheader) |
Modifier and Type | Method and Description |
---|---|
String |
execute() |
org.json.JSONArray |
getJsonArrayBodyContent() |
RequestClient |
setAttachment(Map<String,AttachmentUtil> fromAttachmentMap) |
void |
setJsonArrayBodyContent(org.json.JSONArray jsonArrayBodyContentArr) |
RequestClient |
setJSONBodyContent(boolean jsonBodyContent) |
void |
setOAuthHeader() |
RequestClient |
setParam(Map<String,Object> paramMap) |
public static final String METHOD_GET
public static final String METHOD_POST
public static final String METHOD_DELETE
public static final String CHARSET
public RequestClient(String fromurl, String frommethod)
fromurl
- Sprints APIfrommethod
- Type of API callpublic RequestClient(String fromurl, String frommethod, Map<String,Object> fromparam)
fromurl
- Sprints APIfrommethod
- Type of API callfromparam
- Query param of APIpublic RequestClient(String fromurl, String frommethod, org.json.JSONArray fromjsonArrayBodyContent)
fromurl
- Sprints APIfrommethod
- Type of API callfromjsonArrayBodyContent
- JSONType parampublic RequestClient setParam(Map<String,Object> paramMap)
paramMap
- Query param of APIpublic org.json.JSONArray getJsonArrayBodyContent()
public void setJsonArrayBodyContent(org.json.JSONArray jsonArrayBodyContentArr)
jsonArrayBodyContentArr
- JSONType parampublic RequestClient setJSONBodyContent(boolean jsonBodyContent)
jsonBodyContent
- JSONType parampublic RequestClient setAttachment(Map<String,AttachmentUtil> fromAttachmentMap)
fromAttachmentMap
- attachment Filepublic void setOAuthHeader()
Copyright © 2016–2021. All rights reserved.