public class DropIndexCommand extends AbstractCommand implements CouchCommand
https://docs.couchdb.org/en/stable/api/database/find.html#delete--db-_index-designdoc-json-name DELETE /{db}/_index/{designdoc}/json/{name} Parameters: db – Database name. designdoc – Design document name. name – Index name. Response Headers: Content-Type – application/json Response JSON Object: ok (string) – “true” if successful. Status Codes: 200 OK – Success 400 Bad Request – Invalid request 401 Unauthorized – Writer permission required 404 Not Found – Index not found 500 Internal Server Error – Execution error
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 |
---|
DropIndexCommand(HttpBuilder httpBuilder,
String designDoc,
String indexName) |
Modifier and Type | Method and Description |
---|---|
HttpMethod |
asDelete() |
<T> T |
execute()
Execute the database statement could be a
Command or a Query |
String |
getBody() |
asGet, asHead, asPost, asPut, 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
asGet, asHead, asPost, asPut
public DropIndexCommand(HttpBuilder httpBuilder, String designDoc, String indexName)
public <T> T execute()
Command
Command
or a Query
public String getBody()
getBody
in interface CouchCommand
public HttpMethod asDelete()
asDelete
in interface CouchCommand
asDelete
in class AbstractCommand
Copyright © 2012–2020 jkniv, copyleft code. All rights reserved.