public class CompletionStageRxInvokerImpl extends Object implements CompletionStageRxInvoker
Date March 9, 2016
Constructor and Description |
---|
CompletionStageRxInvokerImpl(SyncInvoker builder) |
CompletionStageRxInvokerImpl(SyncInvoker builder,
ExecutorService executor) |
Modifier and Type | Method and Description |
---|---|
CompletionStage<Response> |
delete()
Invoke HTTP DELETE method for the current request.
|
<T> CompletionStage<T> |
delete(Class<T> responseType)
Invoke HTTP DELETE method for the current request.
|
<T> CompletionStage<T> |
delete(GenericType<T> responseType)
Invoke HTTP DELETE method for the current request.
|
CompletionStage<Response> |
get()
Invoke HTTP GET method for the current request.
|
<T> CompletionStage<T> |
get(Class<T> responseType)
Invoke HTTP GET method for the current request.
|
<T> CompletionStage<T> |
get(GenericType<T> responseType)
Invoke HTTP GET method for the current request.
|
ExecutorService |
getExecutor() |
CompletionStage<Response> |
head()
Invoke HTTP HEAD method for the current request.
|
CompletionStage<Response> |
method(String name)
Invoke an arbitrary method for the current request.
|
<T> CompletionStage<T> |
method(String name,
Class<T> responseType)
Invoke an arbitrary method for the current request.
|
CompletionStage<Response> |
method(String name,
Entity<?> entity)
Invoke an arbitrary method for the current request.
|
<T> CompletionStage<T> |
method(String name,
Entity<?> entity,
Class<T> responseType)
Invoke an arbitrary method for the current request.
|
<T> CompletionStage<T> |
method(String name,
Entity<?> entity,
GenericType<T> responseType)
Invoke an arbitrary method for the current request.
|
<T> CompletionStage<T> |
method(String name,
GenericType<T> responseType)
Invoke an arbitrary method for the current request.
|
CompletionStage<Response> |
options()
Invoke HTTP OPTIONS method for the current request.
|
<T> CompletionStage<T> |
options(Class<T> responseType)
Invoke HTTP OPTIONS method for the current request.
|
<T> CompletionStage<T> |
options(GenericType<T> responseType)
Invoke HTTP OPTIONS method for the current request.
|
CompletionStage<Response> |
patch(Entity<?> entity) |
<T> CompletionStage<T> |
patch(Entity<?> entity,
Class<T> responseType) |
<T> CompletionStage<T> |
patch(Entity<?> entity,
GenericType<T> responseType) |
CompletionStage<Response> |
post(Entity<?> entity)
Invoke HTTP POST method for the current request.
|
<T> CompletionStage<T> |
post(Entity<?> entity,
Class<T> clazz)
Invoke HTTP POST method for the current request.
|
<T> CompletionStage<T> |
post(Entity<?> entity,
GenericType<T> type)
Invoke HTTP POST method for the current request.
|
CompletionStage<Response> |
put(Entity<?> entity)
Invoke HTTP PUT method for the current request.
|
<T> CompletionStage<T> |
put(Entity<?> entity,
Class<T> clazz)
Invoke HTTP PUT method for the current request.
|
<T> CompletionStage<T> |
put(Entity<?> entity,
GenericType<T> type)
Invoke HTTP PUT method for the current request.
|
CompletionStage<Response> |
trace()
Invoke HTTP TRACE method for the current request.
|
<T> CompletionStage<T> |
trace(Class<T> responseType)
Invoke HTTP TRACE method for the current request.
|
<T> CompletionStage<T> |
trace(GenericType<T> responseType)
Invoke HTTP TRACE method for the current request.
|
public CompletionStageRxInvokerImpl(SyncInvoker builder)
public CompletionStageRxInvokerImpl(SyncInvoker builder, ExecutorService executor)
public CompletionStage<Response> get()
RxInvoker
get
in interface CompletionStageRxInvoker
get
in interface RxInvoker<CompletionStage>
public <T> CompletionStage<T> get(Class<T> responseType)
RxInvoker
get
in interface CompletionStageRxInvoker
get
in interface RxInvoker<CompletionStage>
T
- response entity type.responseType
- Java type the response entity will be converted to.public <T> CompletionStage<T> get(GenericType<T> responseType)
RxInvoker
get
in interface CompletionStageRxInvoker
get
in interface RxInvoker<CompletionStage>
T
- generic response entity type.responseType
- representation of a generic Java type the response entity will be converted to.public CompletionStage<Response> put(Entity<?> entity)
RxInvoker
put
in interface CompletionStageRxInvoker
put
in interface RxInvoker<CompletionStage>
entity
- request entity, including it's full Variant
information.
Any variant-related HTTP headers previously set (namely Content-Type
,
Content-Language
and Content-Encoding
) will be overwritten using
the entity variant information.public <T> CompletionStage<T> put(Entity<?> entity, Class<T> clazz)
RxInvoker
put
in interface CompletionStageRxInvoker
put
in interface RxInvoker<CompletionStage>
T
- response entity type.entity
- request entity, including it's full Variant
information.
Any variant-related HTTP headers previously set (namely Content-Type
,
Content-Language
and Content-Encoding
) will be overwritten using
the entity variant information.clazz
- Java type the response entity will be converted to.public <T> CompletionStage<T> put(Entity<?> entity, GenericType<T> type)
RxInvoker
put
in interface CompletionStageRxInvoker
put
in interface RxInvoker<CompletionStage>
T
- generic response entity type.entity
- request entity, including it's full Variant
information.
Any variant-related HTTP headers previously set (namely Content-Type
,
Content-Language
and Content-Encoding
) will be overwritten using
the entity variant information.type
- representation of a generic Java type the response entity will be converted to.public CompletionStage<Response> post(Entity<?> entity)
RxInvoker
post
in interface CompletionStageRxInvoker
post
in interface RxInvoker<CompletionStage>
entity
- request entity, including it's full Variant
information.
Any variant-related HTTP headers previously set (namely Content-Type
,
Content-Language
and Content-Encoding
) will be overwritten using
the entity variant information.public <T> CompletionStage<T> post(Entity<?> entity, Class<T> clazz)
RxInvoker
post
in interface CompletionStageRxInvoker
post
in interface RxInvoker<CompletionStage>
T
- response entity type.entity
- request entity, including it's full Variant
information.
Any variant-related HTTP headers previously set (namely Content-Type
,
Content-Language
and Content-Encoding
) will be overwritten using
the entity variant information.clazz
- Java type the response entity will be converted to.public <T> CompletionStage<T> post(Entity<?> entity, GenericType<T> type)
RxInvoker
post
in interface CompletionStageRxInvoker
post
in interface RxInvoker<CompletionStage>
T
- generic response entity type.entity
- request entity, including it's full Variant
information.
Any variant-related HTTP headers previously set (namely Content-Type
,
Content-Language
and Content-Encoding
) will be overwritten using
the entity variant information.type
- representation of a generic Java type the response entity will be converted to.public CompletionStage<Response> delete()
RxInvoker
delete
in interface CompletionStageRxInvoker
delete
in interface RxInvoker<CompletionStage>
public <T> CompletionStage<T> delete(Class<T> responseType)
RxInvoker
delete
in interface CompletionStageRxInvoker
delete
in interface RxInvoker<CompletionStage>
T
- response entity type.responseType
- Java type the response entity will be converted to.public <T> CompletionStage<T> delete(GenericType<T> responseType)
RxInvoker
delete
in interface CompletionStageRxInvoker
delete
in interface RxInvoker<CompletionStage>
T
- generic response entity type.responseType
- representation of a generic Java type the response entity will be converted to.public CompletionStage<Response> head()
RxInvoker
head
in interface CompletionStageRxInvoker
head
in interface RxInvoker<CompletionStage>
public CompletionStage<Response> options()
RxInvoker
options
in interface CompletionStageRxInvoker
options
in interface RxInvoker<CompletionStage>
public <T> CompletionStage<T> options(Class<T> responseType)
RxInvoker
options
in interface CompletionStageRxInvoker
options
in interface RxInvoker<CompletionStage>
T
- response entity type.responseType
- Java type the response entity will be converted to.public <T> CompletionStage<T> options(GenericType<T> responseType)
RxInvoker
options
in interface CompletionStageRxInvoker
options
in interface RxInvoker<CompletionStage>
T
- generic response entity type.responseType
- representation of a generic Java type the response entity will be converted to.public CompletionStage<Response> trace()
RxInvoker
trace
in interface CompletionStageRxInvoker
trace
in interface RxInvoker<CompletionStage>
public <T> CompletionStage<T> trace(Class<T> responseType)
RxInvoker
trace
in interface CompletionStageRxInvoker
trace
in interface RxInvoker<CompletionStage>
T
- response entity type.responseType
- Java type the response entity will be converted to.public <T> CompletionStage<T> trace(GenericType<T> responseType)
RxInvoker
trace
in interface CompletionStageRxInvoker
trace
in interface RxInvoker<CompletionStage>
T
- generic response entity type.responseType
- representation of a generic Java type the response entity will be converted to.public CompletionStage<Response> method(String name)
RxInvoker
method
in interface CompletionStageRxInvoker
method
in interface RxInvoker<CompletionStage>
name
- method name.public <T> CompletionStage<T> method(String name, Class<T> responseType)
RxInvoker
method
in interface CompletionStageRxInvoker
method
in interface RxInvoker<CompletionStage>
T
- response entity type.name
- method name.responseType
- Java type the response entity will be converted to.public <T> CompletionStage<T> method(String name, GenericType<T> responseType)
RxInvoker
method
in interface CompletionStageRxInvoker
method
in interface RxInvoker<CompletionStage>
T
- generic response entity type.name
- method name.responseType
- representation of a generic Java type the response entity will be converted to.public CompletionStage<Response> method(String name, Entity<?> entity)
RxInvoker
method
in interface CompletionStageRxInvoker
method
in interface RxInvoker<CompletionStage>
name
- method name.entity
- request entity, including it's full Variant
information.
Any variant-related HTTP headers previously set (namely Content-Type
,
Content-Language
and Content-Encoding
) will be overwritten using
the entity variant information.public <T> CompletionStage<T> method(String name, Entity<?> entity, Class<T> responseType)
RxInvoker
method
in interface CompletionStageRxInvoker
method
in interface RxInvoker<CompletionStage>
T
- response entity type.name
- method name.entity
- request entity, including it's full Variant
information.
Any variant-related HTTP headers previously set (namely Content-Type
,
Content-Language
and Content-Encoding
) will be overwritten using
the entity variant information.responseType
- Java type the response entity will be converted to.public <T> CompletionStage<T> method(String name, Entity<?> entity, GenericType<T> responseType)
RxInvoker
method
in interface CompletionStageRxInvoker
method
in interface RxInvoker<CompletionStage>
T
- generic response entity type.name
- method name.entity
- request entity, including it's full Variant
information.
Any variant-related HTTP headers previously set (namely Content-Type
,
Content-Language
and Content-Encoding
) will be overwritten using
the entity variant information.responseType
- representation of a generic Java type the response entity will be converted to.public ExecutorService getExecutor()
public CompletionStage<Response> patch(Entity<?> entity)
public <T> CompletionStage<T> patch(Entity<?> entity, Class<T> responseType)
public <T> CompletionStage<T> patch(Entity<?> entity, GenericType<T> responseType)
Copyright © 2021 JBoss by Red Hat. All rights reserved.