public class Endpoint
extends java.lang.Object
Constructor and Description |
---|
Endpoint() |
Modifier and Type | Method and Description |
---|---|
void |
addHeader(java.lang.String entry,
java.lang.String value)
Use this method to add a header value to the existing http header map for the request
|
java.lang.String |
getAfterRule()
Use this method to get the name of the rule to run after the webservice request completes.
|
java.lang.Object |
getAttribute(java.lang.String name)
Use this method to get the value of an attribute
|
Attributes |
getAttributes()
Use this method to get all the available attributes
|
java.lang.String |
getBaseUrl()
Use this method to get the base url (endpoint) of the operation that is to be performed for the particular operation
|
java.lang.String |
getBeforeRule()
Use this method to get the name of the rule to run before the webservice request completes
|
java.util.Map |
getBody()
Use this method to get the http payload information as a map.
|
java.lang.String |
getContextUrl()
Use this method to get the context url for the particular operation (create user, update user, account aggregation, etc...)
|
java.lang.String |
getFullUrl()
Use this method to get the complete url (endpoint) of the operation that is to be performed for the particular operation
|
java.util.Map |
getHeader()
Use this method to get the header values for the request
|
java.lang.String |
getHttpMethodType()
Use this method to get the http method type (put, post, get, patch, delete) for the particular operation (create user, update user, account aggregation, etc...)
|
java.lang.String |
getOperationType()
Use this method to get the operation type (Account Aggregation, Group Aggregation, Create Account, etc...) for the particular operation record (create user, update user, account aggregation, etc...)
|
java.util.Map |
getResMappingObj()
Use this method to get the response mapping for the response attributes returned from the JSON response of the managed source.
|
java.util.List |
getResponseCode()
Use this method to get the value of successful response codes as a list (200,201,299).
|
java.lang.String |
getRootPath()
Use this method to get the root of the JSON response returned from the managed source for the particular operation (create user, update user, account aggregation, etc...)
Example root path for the json below: $.results |
int |
getSequenceNumberForEndpoint()
Use this method to get the sequence number for the particular operation (create user, update user, account aggregation, etc...)
|
java.lang.String |
getUniqueNameForEndPoint()
Use this method to get the unique operation name for the particular operation (create user, update user, account aggregation, etc...)
|
void |
setBaseUrl(java.lang.String value)
Use this method to set the base url (endpoint) of the operation that is to be performed for the particular operation
|
void |
setBody(java.util.Map value)
Use this method to set the http payload information as a map.
|
void |
setContextUrl(java.lang.String value)
Use this method to set the context url for the particular operation (create user, update user, account aggregation, etc...)
|
void |
setFullUrl(java.lang.String value)
Use this method to set the complete url (endpoint) of the operation that is to be performed for the particular operation
|
void |
setHeader(java.util.Map value)
Use this method to set the header values for the request
|
void |
setHttpMethodType(java.lang.String value)
Use this method to set the http method type (put, post, get, patch, delete) for the particular operation (create user, update user, account aggregation, etc...)
|
void |
setOperationType(java.lang.String value)
Use this method to set the operation type (Account Aggregation, Group Aggregation, Create Account, etc...) for the particular operation record (create user, update user, account aggregation, etc...)
|
void |
setResMappingObj(java.util.Map value)
Use this method to set the response mapping for the response attributes returned from the JSON response of the managed source.
|
void |
setResponseCode(java.util.List value)
Use this method to set the value of successful response codes as a list (200,201,299).
|
void |
setRootPath(java.lang.String value)
Use this method to set the root of the JSON response returned from the managed source for the particular operation (create user, update user, account aggregation, etc...)
Example root path for the json below: $.results |
public java.lang.String getAfterRule()
public java.lang.String getBeforeRule()
public void setContextUrl(java.lang.String value)
value
- the name of the context urlpublic java.lang.String getContextUrl()
public void setHttpMethodType(java.lang.String value)
value
- the name of the http method type [get, post, put, patch, delete]public java.lang.String getHttpMethodType()
public void setOperationType(java.lang.String value)
value
- the name of the operation typepublic java.lang.String getOperationType()
public void setRootPath(java.lang.String value)
$.results
{ "results": [ { "id": "12345", "name": "John Doe" "email": "[email protected]" }, { "id": "54321", "name": "Jane Doe", "email": "[email protected]" } ] }
value
- the name of the root of the JSON response resultspublic java.lang.String getRootPath()
$.results
{ "results": [ { "id": "12345", "name": "John Doe" "email": "[email protected]" }, { "id": "54321", "name": "Jane Doe", "email": "[email protected]" } ] }
public void setFullUrl(java.lang.String value)
Example full url for Airtable Get Users call ex: https://api.airtable.com/v0/appe0bVnLjyV97hyg/Users
value
- the full url as a stringpublic java.lang.String getFullUrl()
Example full url for Airtable Get Users call ex: https://api.airtable.com/v0/appe0bVnLjyV97hyg/Users
public void setBaseUrl(java.lang.String value)
Example base url for Airtable Get Users call ex: https://api.airtable.com/v0/appe0bVnLjyV97hyg
value
- the base url as a stringpublic java.lang.String getBaseUrl()
Example base url for Airtable Get Users call ex: https://api.airtable.com/v0/appe0bVnLjyV97hyg
public int getSequenceNumberForEndpoint()
public java.lang.String getUniqueNameForEndPoint()
public void setResMappingObj(java.util.Map value)
{ "results": [ { "fields": { "id": "12345", "name": "John Doe" "email": "[email protected]" } }, { "fields": { "id": "54321", "name": "Jane Doe", "email": "[email protected]" } } ] }Root path: $.results
{ "id": "fields.id", "name": "fields.name", "email": "fields.email" }
value
- the mapping of account schema attribute to the JSON path value in the JSON responsepublic java.util.Map getResMappingObj()
{ "results": [ { "fields": { "id": "12345", "name": "John Doe" "email": "[email protected]" } }, { "fields": { "id": "54321", "name": "Jane Doe", "email": "[email protected]" } } ] }Root path: $.results
{ "id": "fields.id", "name": "fields.name", "email": "fields.email" }
public void setHeader(java.util.Map value)
//Set Header Content-Type Map headerMap = requestEndPoint.getHeader(); headerMap.put("Content-Type", "application/json"); requestEndPoint.setHeader(headerMap);
value
- the map of http headers to send with the requestpublic java.util.Map getHeader()
//Set Header Content-Type Map headerMap = requestEndPoint.getHeader(); headerMap.put("Content-Type", "application/json"); requestEndPoint.setHeader(headerMap);
public void addHeader(java.lang.String entry, java.lang.String value)
requestEndPoint.addHeader("Authorization", "Bearer " + accessToken);
entry
- the key for the headervalue
- the value for the headerpublic void setBody(java.util.Map value)
bodyFormat, bodyFormData, jsonBody
. The bodyFormat value can be raw
value
- the http payload mappublic java.util.Map getBody()
bodyFormat, bodyFormData, jsonBody
.public void setResponseCode(java.util.List value)
value
- the list of successful response code valuespublic java.util.List getResponseCode()
public Attributes getAttributes()
public java.lang.Object getAttribute(java.lang.String name)
name
- the name of the attribute