public class WeDeploy
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected Auth |
auth |
protected java.util.List<Cookie> |
cookies |
protected Transport |
currentTransport |
protected MultiMap<java.lang.Object> |
forms |
protected MultiMap<java.lang.String> |
headers |
static java.lang.String |
MASTER_TOKEN |
static java.lang.String |
METHOD_DELETE |
static java.lang.String |
METHOD_GET |
static java.lang.String |
METHOD_HEAD |
static java.lang.String |
METHOD_OPTION |
static java.lang.String |
METHOD_PATCH |
static java.lang.String |
METHOD_POST |
static java.lang.String |
METHOD_PUT |
protected MultiMap<java.lang.String> |
params |
protected Query.Builder |
query |
protected java.lang.String |
url |
| Modifier | Constructor and Description |
|---|---|
|
WeDeploy(java.lang.String url)
Main constructor.
|
protected |
WeDeploy(java.lang.String baseUrl,
java.lang.String url)
Continuations constructor, used from existing instance, therefore
no need to configure the client.
|
| Modifier and Type | Method and Description |
|---|---|
WeDeploy |
aggregate(Aggregation aggregation)
See
Query.Builder |
WeDeploy |
aggregate(java.lang.String name,
java.lang.String field,
java.lang.String operator)
See
Query.Builder |
WeDeploy |
auth(Auth auth)
Authenticates with an auth instance.
|
WeDeploy |
auth(java.lang.String token)
Authenticates with token.
|
WeDeploy |
auth(java.lang.String username,
java.lang.String password) |
WeDeploy |
contentType(ContentType contentType)
Sets the content type header of the request.
|
WeDeploy |
cookie(Cookie cookie) |
WeDeploy |
count()
See
Query.Builder |
Response |
delete()
Executes DELETE request.
|
Response |
delete(java.lang.Object body)
Executes DELETE request.
|
Response |
delete(java.lang.String body)
Executes DELETE request.
|
java.util.concurrent.CompletableFuture<Response> |
deleteAsync()
Executes DELETE request asynchronously.
|
java.util.concurrent.CompletableFuture<Response> |
deleteAsync(java.lang.Object body)
Serializes object and executes DELETE request asynchronously.
|
java.util.concurrent.CompletableFuture<Response> |
deleteAsync(java.lang.String body)
Executes DELETE request asynchronously.
|
WeDeploy |
filter(Filter filter)
See
Query.Builder |
WeDeploy |
filter(java.lang.String field,
java.lang.Object value)
See
Query.Builder |
WeDeploy |
filter(java.lang.String field,
java.lang.String operator,
java.lang.Object value)
See
Query.Builder |
java.lang.Object |
form(java.lang.String name)
Gets the form parameter.
|
WeDeploy |
form(java.lang.String name,
java.lang.Object value)
Sets the form parameter.
|
MultiMap<java.lang.Object> |
forms()
Returns the form parameter.
|
Response |
get()
Executes GET request.
|
Response |
get(java.lang.Object body)
Executes GET request.
|
Response |
get(java.lang.String body)
Executes GET request.
|
java.util.concurrent.CompletableFuture<Response> |
getAsync()
Executes GET request asynchronously.
|
java.util.concurrent.CompletableFuture<Response> |
getAsync(java.lang.Object body)
Executes GET request asynchronously.
|
java.util.concurrent.CompletableFuture<Response> |
getAsync(java.lang.String body)
Executes GET request asynchronously.
|
Response |
head()
Executes HEAD request.
|
Response |
head(java.lang.Object body)
Executes HEAD request.
|
Response |
head(java.lang.String body)
Executes HEAD request.
|
java.util.concurrent.CompletableFuture<Response> |
headAsync()
Executes HEAD request asynchronously.
|
java.util.concurrent.CompletableFuture<Response> |
headAsync(java.lang.Object body)
Serializes object and executes HEAD request asynchronously.
|
java.util.concurrent.CompletableFuture<Response> |
headAsync(java.lang.String body)
Executes HEAD request asynchronously.
|
WeDeploy |
header(java.lang.String name,
java.lang.String value)
Adds new header.
|
WeDeploy |
highlight(java.lang.String field)
See
Query.Builder |
WeDeploy |
limit(int limit)
See
Query.Builder |
WeDeploy |
offset(int offset)
See
Query.Builder |
Response |
option()
Executes OPTION request.
|
Response |
option(java.lang.Object body)
Executes OPTION request.
|
Response |
option(java.lang.String body)
Executes OPTION request.
|
java.util.concurrent.CompletableFuture<Response> |
optionAsync()
Executes OPTION request asynchronously.
|
java.util.concurrent.CompletableFuture<Response> |
optionAsync(java.lang.Object body)
Serializes object and executes OPTION request asynchronously.
|
java.util.concurrent.CompletableFuture<Response> |
optionAsync(java.lang.String body)
Executes OPTION request asynchronously.
|
WeDeploy |
param(java.lang.String name,
java.lang.Object value)
Serializes an object using JSON serializer and sets query parameter.
|
WeDeploy |
param(java.lang.String name,
java.lang.String value)
Sets a query parameter.
|
Response |
patch()
Executes PATCH request.
|
Response |
patch(java.lang.Object body)
Executes PATCH request.
|
Response |
patch(java.lang.String body)
Executes PATCH request.
|
java.util.concurrent.CompletableFuture<Response> |
patchAsync()
Executes PATCH request asynchronously.
|
java.util.concurrent.CompletableFuture<Response> |
patchAsync(java.lang.Object body)
Serializes object and executes PATCH request asynchronously.
|
java.util.concurrent.CompletableFuture<Response> |
patchAsync(java.lang.String body)
Executes PATCH request asynchronously.
|
WeDeploy |
path(java.lang.String... paths)
Creates new
WeDeploy. |
WeDeploy |
path(java.lang.String path)
Creates new
WeDeploy. |
Response |
post()
Executes POST request.
|
Response |
post(java.lang.Object body)
Executes POST request.
|
Response |
post(java.lang.String body)
Executes POST request.
|
java.util.concurrent.CompletableFuture<Response> |
postAsync()
Executes POST request asynchronously.
|
java.util.concurrent.CompletableFuture<Response> |
postAsync(java.lang.Object body)
Serializes object and executes POST request asynchronously.
|
java.util.concurrent.CompletableFuture<Response> |
postAsync(java.lang.String body)
Executes POST request asynchronously.
|
Response |
put()
Executes PUT request.
|
Response |
put(java.lang.Object body)
Executes PUT request.
|
Response |
put(java.lang.String body)
Executes PUT request.
|
java.util.concurrent.CompletableFuture<Response> |
putAsync()
Executes PUT request asynchronously.
|
java.util.concurrent.CompletableFuture<Response> |
putAsync(java.lang.Object body)
Serializes object and PUT request asynchronously.
|
java.util.concurrent.CompletableFuture<Response> |
putAsync(java.lang.String body)
Executes PUT request asynchronously.
|
protected void |
resolveAuthentication(Request request)
Resolves authentication.
|
protected java.lang.String |
resolveBodyString(java.lang.Object body)
Resolves body string from body object.
|
protected RequestImpl |
resolveRequest(java.lang.String methodName,
java.lang.String body)
Creates new request implementation.
|
protected RequestImpl |
resolveRequest(java.lang.String methodName,
java.lang.String body,
boolean convertBody) |
protected Transport |
resolveTransport()
Resolves transport.
|
WeDeploy |
search(Filter filter)
See
Query.Builder |
WeDeploy |
search(java.lang.String text)
See
Query.Builder |
WeDeploy |
search(java.lang.String field,
java.lang.String text)
See
Query.Builder |
WeDeploy |
search(java.lang.String field,
java.lang.String operator,
java.lang.Object value)
See
Query.Builder |
protected Response |
send(java.lang.String methodName,
java.lang.Object body)
Serializes input object to a JSON string and
sends it. |
protected Response |
send(java.lang.String methodName,
java.lang.String body)
Uses transport to send request with given method name and body
synchronously.
|
protected java.util.concurrent.CompletableFuture<Response> |
sendAsync(java.lang.String methodName,
java.lang.Object body)
Serializes input object to a JSON string and
sends it. |
protected java.util.concurrent.CompletableFuture<Response> |
sendAsync(java.lang.String methodName,
java.lang.String body)
Uses transport to send request with given method name and body
asynchronously.
|
WeDeploy |
sort(java.lang.String field)
See
Query.Builder |
WeDeploy |
sort(java.lang.String field,
java.lang.String direction)
See
Query.Builder |
java.lang.String |
url()
Returns full URL.
|
static WeDeploy |
url(java.lang.String url)
Static factory for creating WeDeploy client.
|
WeDeploy |
use(Transport transport)
Specifies
Transport implementation. |
RealTime |
watch()
Creates new socket.io instance.
|
RealTime |
watch(java.lang.Object body) |
RealTime |
watch(java.lang.Object body,
java.util.Map<java.lang.String,java.lang.Object> options) |
RealTime |
watch(java.lang.String body) |
RealTime |
watch(java.lang.String body,
java.util.Map<java.lang.String,java.lang.Object> options) |
public static java.lang.String MASTER_TOKEN
public static final java.lang.String METHOD_DELETE
public static final java.lang.String METHOD_GET
public static final java.lang.String METHOD_HEAD
public static final java.lang.String METHOD_OPTION
public static final java.lang.String METHOD_PATCH
public static final java.lang.String METHOD_POST
public static final java.lang.String METHOD_PUT
protected Auth auth
protected final java.util.List<Cookie> cookies
protected Transport currentTransport
protected final MultiMap<java.lang.Object> forms
protected final MultiMap<java.lang.String> headers
protected final MultiMap<java.lang.String> params
protected Query.Builder query
protected final java.lang.String url
public WeDeploy(java.lang.String url)
protected WeDeploy(java.lang.String baseUrl,
java.lang.String url)
public static WeDeploy url(java.lang.String url)
public WeDeploy aggregate(Aggregation aggregation)
Query.Builderpublic WeDeploy aggregate(java.lang.String name, java.lang.String field, java.lang.String operator)
Query.Builderpublic WeDeploy auth(java.lang.String token)
public WeDeploy auth(java.lang.String username, java.lang.String password)
public WeDeploy contentType(ContentType contentType)
public WeDeploy count()
Query.Builderpublic Response delete()
public Response delete(java.lang.Object body)
public Response delete(java.lang.String body)
public java.util.concurrent.CompletableFuture<Response> deleteAsync()
public java.util.concurrent.CompletableFuture<Response> deleteAsync(java.lang.Object body)
public java.util.concurrent.CompletableFuture<Response> deleteAsync(java.lang.String body)
public WeDeploy filter(java.lang.String field, java.lang.Object value)
Query.Builderpublic WeDeploy filter(java.lang.String field, java.lang.String operator, java.lang.Object value)
Query.Builderpublic java.lang.Object form(java.lang.String name)
public WeDeploy form(java.lang.String name, java.lang.Object value)
public MultiMap<java.lang.Object> forms()
public Response get()
public Response get(java.lang.Object body)
public Response get(java.lang.String body)
public java.util.concurrent.CompletableFuture<Response> getAsync()
public java.util.concurrent.CompletableFuture<Response> getAsync(java.lang.Object body)
public java.util.concurrent.CompletableFuture<Response> getAsync(java.lang.String body)
public Response head()
public Response head(java.lang.Object body)
public Response head(java.lang.String body)
public java.util.concurrent.CompletableFuture<Response> headAsync()
public java.util.concurrent.CompletableFuture<Response> headAsync(java.lang.Object body)
public java.util.concurrent.CompletableFuture<Response> headAsync(java.lang.String body)
public WeDeploy header(java.lang.String name, java.lang.String value)
public WeDeploy highlight(java.lang.String field)
Query.Builderpublic WeDeploy limit(int limit)
Query.Builderpublic WeDeploy offset(int offset)
Query.Builderpublic Response option()
public Response option(java.lang.Object body)
public Response option(java.lang.String body)
public java.util.concurrent.CompletableFuture<Response> optionAsync()
public java.util.concurrent.CompletableFuture<Response> optionAsync(java.lang.Object body)
public java.util.concurrent.CompletableFuture<Response> optionAsync(java.lang.String body)
public WeDeploy param(java.lang.String name, java.lang.Object value)
public WeDeploy param(java.lang.String name, java.lang.String value)
public Response patch()
public Response patch(java.lang.Object body)
public Response patch(java.lang.String body)
public java.util.concurrent.CompletableFuture<Response> patchAsync()
public java.util.concurrent.CompletableFuture<Response> patchAsync(java.lang.Object body)
public java.util.concurrent.CompletableFuture<Response> patchAsync(java.lang.String body)
public Response post()
public Response post(java.lang.Object body)
public Response post(java.lang.String body)
public java.util.concurrent.CompletableFuture<Response> postAsync()
public java.util.concurrent.CompletableFuture<Response> postAsync(java.lang.Object body)
public java.util.concurrent.CompletableFuture<Response> postAsync(java.lang.String body)
public Response put()
public Response put(java.lang.Object body)
public Response put(java.lang.String body)
public java.util.concurrent.CompletableFuture<Response> putAsync()
public java.util.concurrent.CompletableFuture<Response> putAsync(java.lang.Object body)
public java.util.concurrent.CompletableFuture<Response> putAsync(java.lang.String body)
public WeDeploy search(java.lang.String text)
Query.Builderpublic WeDeploy search(java.lang.String field, java.lang.String text)
Query.Builderpublic WeDeploy search(java.lang.String field, java.lang.String operator, java.lang.Object value)
Query.Builderpublic WeDeploy sort(java.lang.String field)
Query.Builderpublic WeDeploy sort(java.lang.String field, java.lang.String direction)
Query.Builderpublic java.lang.String url()
public RealTime watch()
public RealTime watch(java.lang.Object body)
public RealTime watch(java.lang.Object body, java.util.Map<java.lang.String,java.lang.Object> options)
public RealTime watch(java.lang.String body)
public RealTime watch(java.lang.String body, java.util.Map<java.lang.String,java.lang.Object> options)
protected void resolveAuthentication(Request request)
protected java.lang.String resolveBodyString(java.lang.Object body)
null,
null will be returned. Object is serialized using the existing content
type. If content type is not set, JSON is assumed; and will be set
as content type as well.protected RequestImpl resolveRequest(java.lang.String methodName, java.lang.String body)
protected RequestImpl resolveRequest(java.lang.String methodName, java.lang.String body, boolean convertBody)
protected Transport resolveTransport()
protected Response send(java.lang.String methodName, java.lang.Object body)
sends it.protected Response send(java.lang.String methodName, java.lang.String body)
protected java.util.concurrent.CompletableFuture<Response> sendAsync(java.lang.String methodName, java.lang.Object body)
sends it.protected java.util.concurrent.CompletableFuture<Response> sendAsync(java.lang.String methodName, java.lang.String body)