public interface CompletionStageRxInvoker extends RxInvoker<CompletionStage>
CompletionStage
.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.
|
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> |
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.
|
CompletionStage<Response> get()
RxInvoker
get
in interface RxInvoker<CompletionStage>
<T> CompletionStage<T> get(Class<T> responseType)
RxInvoker
get
in interface RxInvoker<CompletionStage>
T
- response entity type.responseType
- Java type the response entity will be converted to.<T> CompletionStage<T> get(GenericType<T> responseType)
RxInvoker
get
in interface RxInvoker<CompletionStage>
T
- generic response entity type.responseType
- representation of a generic Java type the response entity will be converted to.CompletionStage<Response> put(Entity<?> entity)
RxInvoker
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.<T> CompletionStage<T> put(Entity<?> entity, Class<T> clazz)
RxInvoker
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.<T> CompletionStage<T> put(Entity<?> entity, GenericType<T> type)
RxInvoker
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.CompletionStage<Response> post(Entity<?> entity)
RxInvoker
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.<T> CompletionStage<T> post(Entity<?> entity, Class<T> clazz)
RxInvoker
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.<T> CompletionStage<T> post(Entity<?> entity, GenericType<T> type)
RxInvoker
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.CompletionStage<Response> delete()
RxInvoker
delete
in interface RxInvoker<CompletionStage>
<T> CompletionStage<T> delete(Class<T> responseType)
RxInvoker
delete
in interface RxInvoker<CompletionStage>
T
- response entity type.responseType
- Java type the response entity will be converted to.<T> CompletionStage<T> delete(GenericType<T> responseType)
RxInvoker
delete
in interface RxInvoker<CompletionStage>
T
- generic response entity type.responseType
- representation of a generic Java type the response entity will be converted to.CompletionStage<Response> head()
RxInvoker
head
in interface RxInvoker<CompletionStage>
CompletionStage<Response> options()
RxInvoker
options
in interface RxInvoker<CompletionStage>
<T> CompletionStage<T> options(Class<T> responseType)
RxInvoker
options
in interface RxInvoker<CompletionStage>
T
- response entity type.responseType
- Java type the response entity will be converted to.<T> CompletionStage<T> options(GenericType<T> responseType)
RxInvoker
options
in interface RxInvoker<CompletionStage>
T
- generic response entity type.responseType
- representation of a generic Java type the response entity will be converted to.CompletionStage<Response> trace()
RxInvoker
trace
in interface RxInvoker<CompletionStage>
<T> CompletionStage<T> trace(Class<T> responseType)
RxInvoker
trace
in interface RxInvoker<CompletionStage>
T
- response entity type.responseType
- Java type the response entity will be converted to.<T> CompletionStage<T> trace(GenericType<T> responseType)
RxInvoker
trace
in interface RxInvoker<CompletionStage>
T
- generic response entity type.responseType
- representation of a generic Java type the response entity will be converted to.CompletionStage<Response> method(String name)
RxInvoker
method
in interface RxInvoker<CompletionStage>
name
- method name.<T> CompletionStage<T> method(String name, Class<T> responseType)
RxInvoker
method
in interface RxInvoker<CompletionStage>
T
- response entity type.name
- method name.responseType
- Java type the response entity will be converted to.<T> CompletionStage<T> method(String name, GenericType<T> responseType)
RxInvoker
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.CompletionStage<Response> method(String name, Entity<?> entity)
RxInvoker
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.<T> CompletionStage<T> method(String name, Entity<?> entity, Class<T> responseType)
RxInvoker
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.<T> CompletionStage<T> method(String name, Entity<?> entity, GenericType<T> responseType)
RxInvoker
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.Copyright © 1996-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.