public class RestApiRequest extends AbstractCouchbaseRequest implements ConfigRequest
A generic HTTP request to perform on the cluster REST API port (8091).
Constructor and Description |
---|
RestApiRequest(String login,
String password,
HttpMethod method,
String path,
Map<String,String> queryParameters,
Map<String,Object> headers,
String body)
Create a new API request.
|
Modifier and Type | Method and Description |
---|---|
String |
body() |
Map<String,Object> |
headers() |
HttpMethod |
method() |
String |
path() |
String |
pathWithParameters() |
Map<String,String> |
queryParameters() |
bucket, creationTime, incrementRetryCount, isActive, maxRetryDuration, maxRetryDuration, observable, password, retryAfter, retryAfter, retryCount, retryDelay, retryDelay, subscriber, toString, username
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
bucket, incrementRetryCount, isActive, maxRetryDuration, maxRetryDuration, observable, password, retryAfter, retryAfter, retryCount, retryDelay, retryDelay, subscriber, username
creationTime
public RestApiRequest(String login, String password, HttpMethod method, String path, Map<String,String> queryParameters, Map<String,Object> headers, String body)
Create a new API request.
login
- the authentication login to use.password
- the authentication password to use.method
- the HttpMethod
for the request.path
- the path of the request.queryParameters
- the query parameters to append to the url (key/values must be urlencoded).headers
- the headers for the request.body
- the body of the request (or empty string if not required).public String path()
path
in interface ConfigRequest
public HttpMethod method()
HttpMethod
to use for the request.public String body()
public Map<String,String> queryParameters()
public String pathWithParameters()
Copyright © 2017 Couchbase, Inc.. All rights reserved.