public class UpdateCommand extends AbstractCommand implements CouchCommand
body, commandHandler, handlerException, method, url
HTTP_ACCEPTED, HTTP_BAD_REQUEST, HTTP_CREATED, HTTP_EXPECTATION_FAILED, HTTP_NO_CONTENT, HTTP_NOT_FOUND, HTTP_NOT_MODIFIED, HTTP_OK, HTTP_RESET_CONTENT
Constructor and Description |
---|
UpdateCommand(HttpBuilder httpBuilder,
Queryable queryable) |
Modifier and Type | Method and Description |
---|---|
HttpMethod |
asPost() |
HttpMethod |
asPut() |
<T> T |
execute()
Execute the database statement could be a
Command or a Query |
String |
getBody() |
asDelete, asGet, asHead, errorFormat, getContentEncode, getContentType, getEntity, getRevision, injectAutoIdentity, injectIdentity, isAccepted, isCreated, isExpectationFailed, isNotFound, isOk, printRequest, printResponse, setBookmark, with, with, with
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asDelete, asGet, asHead
public UpdateCommand(HttpBuilder httpBuilder, Queryable queryable)
public <T> T execute()
Command
Command
or a Query
public String getBody()
getBody
in interface CouchCommand
public HttpMethod asPut()
asPut
in interface CouchCommand
asPut
in class AbstractCommand
public HttpMethod asPost()
asPost
in interface CouchCommand
asPost
in class AbstractCommand
Copyright © 2012–2020 jkniv, copyleft code. All rights reserved.