public class ContactRequest extends BaseRequest implements IContactRequest
functionOptions, queryOptions, REQUEST_STATS_HEADER_VALUE_FORMAT_STRING
Constructor and Description |
---|
ContactRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
The request for the Contact
|
Modifier and Type | Method and Description |
---|---|
void |
delete()
Delete this item from the service
|
void |
delete(ICallback<? super Contact> callback)
Delete this item from the service
|
IContactRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
Contact |
get()
Gets the Contact from the service
|
void |
get(ICallback<? super Contact> callback)
Gets the Contact from the service
|
Contact |
patch(Contact sourceContact)
Patches this Contact with a source
|
void |
patch(Contact sourceContact,
ICallback<? super Contact> callback)
Patches this Contact with a source
|
Contact |
post(Contact newContact)
Creates a Contact with a new object
|
void |
post(Contact newContact,
ICallback<? super Contact> callback)
Creates a Contact with a new object
|
Contact |
put(Contact newContact)
Creates a Contact with a new object
|
void |
put(Contact newContact,
ICallback<? super Contact> callback)
Creates a Contact with a new object
|
IContactRequest |
select(java.lang.String value)
Sets the select clause for the request
|
addFunctionOption, addHeader, addQueryOption, getClient, getDelay, getFunctionOptions, getHeaders, getHttpMethod, getHttpRequest, getHttpRequest, getHttpRequest, getMaxRedirects, getMaxRetries, getOptions, getQueryOptions, getRequestUrl, getResponseType, getShouldRedirect, getShouldRetry, getUseCaches, send, send, setDelay, setHttpMethod, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCaches, withHttpMethod
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addHeader, getDelay, getHeaders, getHttpMethod, getHttpRequest, getHttpRequest, getHttpRequest, getMaxRedirects, getMaxRetries, getOptions, getRequestUrl, getShouldRedirect, getShouldRetry, getUseCaches, setDelay, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCaches, withHttpMethod
public ContactRequest(java.lang.String requestUrl, IBaseClient client, java.util.List<? extends Option> requestOptions)
requestUrl
- the request URLclient
- the service clientrequestOptions
- the options for this requestpublic void get(ICallback<? super Contact> callback)
get
in interface IContactRequest
callback
- the callback to be called after success or failurepublic Contact get() throws ClientException
get
in interface IContactRequest
ClientException
- this exception occurs if the request was unable to complete for any reasonpublic void delete(ICallback<? super Contact> callback)
delete
in interface IContactRequest
callback
- the callback when the deletion action has completedpublic void delete() throws ClientException
delete
in interface IContactRequest
ClientException
- if there was an exception during the delete operationpublic void patch(Contact sourceContact, ICallback<? super Contact> callback)
patch
in interface IContactRequest
sourceContact
- the source object with updatescallback
- the callback to be called after success or failurepublic Contact patch(Contact sourceContact) throws ClientException
patch
in interface IContactRequest
sourceContact
- the source object with updatesClientException
- this exception occurs if the request was unable to complete for any reasonpublic void post(Contact newContact, ICallback<? super Contact> callback)
post
in interface IContactRequest
newContact
- the new object to createcallback
- the callback to be called after success or failurepublic Contact post(Contact newContact) throws ClientException
post
in interface IContactRequest
newContact
- the new object to createClientException
- this exception occurs if the request was unable to complete for any reasonpublic void put(Contact newContact, ICallback<? super Contact> callback)
put
in interface IContactRequest
newContact
- the object to create/updatecallback
- the callback to be called after success or failurepublic Contact put(Contact newContact) throws ClientException
put
in interface IContactRequest
newContact
- the object to create/updateClientException
- this exception occurs if the request was unable to complete for any reasonpublic IContactRequest select(java.lang.String value)
select
in interface IContactRequest
value
- the select clausepublic IContactRequest expand(java.lang.String value)
expand
in interface IContactRequest
value
- the expand clause