public class PostRequest extends BaseRequest implements IPostRequest
functionOptions, queryOptions, REQUEST_STATS_HEADER_VALUE_FORMAT_STRING| Constructor and Description |
|---|
PostRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
The request for the Post
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Delete this item from the service
|
void |
delete(ICallback<? super Post> callback)
Delete this item from the service
|
IPostRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
Post |
get()
Gets the Post from the service
|
void |
get(ICallback<? super Post> callback)
Gets the Post from the service
|
Post |
patch(Post sourcePost)
Patches this Post with a source
|
void |
patch(Post sourcePost,
ICallback<? super Post> callback)
Patches this Post with a source
|
Post |
post(Post newPost)
Creates a Post with a new object
|
void |
post(Post newPost,
ICallback<? super Post> callback)
Creates a Post with a new object
|
Post |
put(Post newPost)
Creates a Post with a new object
|
void |
put(Post newPost,
ICallback<? super Post> callback)
Creates a Post with a new object
|
IPostRequest |
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, withHttpMethodclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddHeader, getDelay, getHeaders, getHttpMethod, getHttpRequest, getHttpRequest, getHttpRequest, getMaxRedirects, getMaxRetries, getOptions, getRequestUrl, getShouldRedirect, getShouldRetry, getUseCaches, setDelay, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCaches, withHttpMethodpublic PostRequest(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 Post> callback)
get in interface IPostRequestcallback - the callback to be called after success or failurepublic Post get() throws ClientException
get in interface IPostRequestClientException - this exception occurs if the request was unable to complete for any reasonpublic void delete(ICallback<? super Post> callback)
delete in interface IPostRequestcallback - the callback when the deletion action has completedpublic void delete()
throws ClientException
delete in interface IPostRequestClientException - if there was an exception during the delete operationpublic void patch(Post sourcePost, ICallback<? super Post> callback)
patch in interface IPostRequestsourcePost - the source object with updatescallback - the callback to be called after success or failurepublic Post patch(Post sourcePost) throws ClientException
patch in interface IPostRequestsourcePost - the source object with updatesClientException - this exception occurs if the request was unable to complete for any reasonpublic void post(Post newPost, ICallback<? super Post> callback)
post in interface IPostRequestnewPost - the new object to createcallback - the callback to be called after success or failurepublic Post post(Post newPost) throws ClientException
post in interface IPostRequestnewPost - the new object to createClientException - this exception occurs if the request was unable to complete for any reasonpublic void put(Post newPost, ICallback<? super Post> callback)
put in interface IPostRequestnewPost - the object to create/updatecallback - the callback to be called after success or failurepublic Post put(Post newPost) throws ClientException
put in interface IPostRequestnewPost - the object to create/updateClientException - this exception occurs if the request was unable to complete for any reasonpublic IPostRequest select(java.lang.String value)
select in interface IPostRequestvalue - the select clausepublic IPostRequest expand(java.lang.String value)
expand in interface IPostRequestvalue - the expand clause