public class APICallContext extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
DELIMITER |
static String |
FILTER_KEY |
static String |
SEARCH_TERM_KEY |
Constructor and Description |
---|
APICallContext()
empty constructor
|
APICallContext(String method,
String apiName,
String resourceName,
String resourceId) |
APICallContext(String method,
String apiName,
String resourceName,
String resourceId,
String queryString,
String body) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getApiName() |
String |
getBody() |
List<String> |
getCompoundResourceId() |
Map<String,String> |
getFilters() |
String |
getMethod() |
Map<String,String[]> |
getParameters() |
String |
getQueryString() |
String |
getResourceId() |
String |
getResourceName() |
String |
getSearchTerm() |
int |
hashCode() |
boolean |
isDELETE() |
boolean |
isGET() |
boolean |
isPOST() |
boolean |
isPUT() |
void |
setApiName(String apiName) |
void |
setBody(String body) |
void |
setMethod(String method) |
void |
setQueryString(String queryString) |
void |
setResourceId(String resourceId) |
void |
setResourceName(String resourceName) |
String |
toString() |
public static final String FILTER_KEY
public static final String SEARCH_TERM_KEY
public static final String DELIMITER
public APICallContext(String method, String apiName, String resourceName, String resourceId)
method
- the HTTP methodapiName
- the name of the apiresourceName
- the name of the resourceresourceId
- the id (or multiple id) of the resource if specifiedpublic APICallContext(String method, String apiName, String resourceName, String resourceId, String queryString, String body)
method
- the HTTP methodapiName
- the name of the apiresourceName
- the name of the resourceresourceId
- the id (or multiple id) of the resource if specifiedqueryString
- the query string of the api context if specifiedbody
- the body string of the api context if specifiedpublic APICallContext()
public String getMethod()
public boolean isGET()
public boolean isPUT()
public boolean isPOST()
public boolean isDELETE()
public void setMethod(String method)
public String getApiName()
public void setApiName(String apiName)
public String getResourceName()
public void setResourceName(String resourceName)
public List<String> getCompoundResourceId()
public String getResourceId()
public void setResourceId(String resourceId)
public String getQueryString()
public void setQueryString(String queryString)
public String getBody()
public void setBody(String body)
public Map<String,String> getFilters()
public String getSearchTerm()
public Map<String,String[]> getParameters()
Copyright © 2020 Bonitasoft S.A. All rights reserved.