public class RestOperation extends BaseUpdateOperation
| Constructor and Description |
|---|
RestOperation(RestOperationConnection connection) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
executeUpdate(UpdateRequest request,
OperationResponse operation)
Actual implementation of this CREATE, UPDATE, or UPSERT Operation.
|
RestOperationConnection |
getConnection()
Returns the base connection that was either provided or created when this instance was created.
|
protected org.apache.http.HttpEntity |
getEntity(ObjectData data)
Returns the request HTTP Entity to be send to the service.
|
protected Iterable<Map.Entry<String,String>> |
getHeaders(ObjectData data)
Returns a list of Headers, defined using custom operation properties (key-value pairs), to include in the
Request Headers on request execution.
|
protected Iterable<Map.Entry<String,String>> |
getParameters(ObjectData data)
Returns a list of Query Parameters to append to the final URI.
|
protected String |
getPath(ObjectData data) |
protected boolean |
isRequestBodyRequired()
Returns true if the RequestBody is mandatory for request execution.
|
executegetContextpublic RestOperation(RestOperationConnection connection)
protected final void executeUpdate(UpdateRequest request, OperationResponse operation)
BaseUpdateOperationexecuteUpdate in class BaseUpdateOperationrequest - request given to BaseUpdateOperation.execute(com.boomi.connector.api.OperationRequest, com.boomi.connector.api.OperationResponse), downcast to the correct typeoperation - response given to BaseUpdateOperation.execute(com.boomi.connector.api.OperationRequest, com.boomi.connector.api.OperationResponse)protected String getPath(ObjectData data)
protected Iterable<Map.Entry<String,String>> getParameters(ObjectData data)
data - incoming request object data.protected Iterable<Map.Entry<String,String>> getHeaders(ObjectData data)
data - incoming request object data.protected org.apache.http.HttpEntity getEntity(ObjectData data) throws IOException
data - IOExceptionpublic RestOperationConnection getConnection()
ContextualOperationgetConnection in class ContextualOperationprotected boolean isRequestBodyRequired()