public interface RxObservableInvoker extends RxInvoker<rx.Observable>
observable
from RxJava.
Requests are by default invoked on a separate thread (as JAX-RS Async client requests). This behavior can be overridden by
providing a executor service
when client extension is being created
(in RxObservable
).
The observables produced by method calls are cold observables. That means that request to the service is invoked only when a
subscriber is subscribed to the observable.Modifier and Type | Method and Description |
---|---|
rx.Observable<javax.ws.rs.core.Response> |
delete()
Invoke HTTP DELETE method for the current request.
|
<T> rx.Observable<T> |
delete(Class<T> responseType)
Invoke HTTP DELETE method for the current request.
|
<T> rx.Observable<T> |
delete(javax.ws.rs.core.GenericType<T> responseType)
Invoke HTTP DELETE method for the current request.
|
rx.Observable<javax.ws.rs.core.Response> |
get()
Invoke HTTP GET method for the current request.
|
<T> rx.Observable<T> |
get(Class<T> responseType)
Invoke HTTP GET method for the current request.
|
<T> rx.Observable<T> |
get(javax.ws.rs.core.GenericType<T> responseType)
Invoke HTTP GET method for the current request.
|
rx.Observable<javax.ws.rs.core.Response> |
head()
Invoke HTTP HEAD method for the current request.
|
rx.Observable<javax.ws.rs.core.Response> |
method(String name)
Invoke an arbitrary method for the current request.
|
<T> rx.Observable<T> |
method(String name,
Class<T> responseType)
Invoke an arbitrary method for the current request.
|
rx.Observable<javax.ws.rs.core.Response> |
method(String name,
javax.ws.rs.client.Entity<?> entity)
Invoke an arbitrary method for the current request.
|
<T> rx.Observable<T> |
method(String name,
javax.ws.rs.client.Entity<?> entity,
Class<T> responseType)
Invoke an arbitrary method for the current request.
|
<T> rx.Observable<T> |
method(String name,
javax.ws.rs.client.Entity<?> entity,
javax.ws.rs.core.GenericType<T> responseType)
Invoke an arbitrary method for the current request.
|
<T> rx.Observable<T> |
method(String name,
javax.ws.rs.core.GenericType<T> responseType)
Invoke an arbitrary method for the current request.
|
rx.Observable<javax.ws.rs.core.Response> |
options()
Invoke HTTP OPTIONS method for the current request.
|
<T> rx.Observable<T> |
options(Class<T> responseType)
Invoke HTTP OPTIONS method for the current request.
|
<T> rx.Observable<T> |
options(javax.ws.rs.core.GenericType<T> responseType)
Invoke HTTP OPTIONS method for the current request.
|
rx.Observable<javax.ws.rs.core.Response> |
post(javax.ws.rs.client.Entity<?> entity)
Invoke HTTP POST method for the current request.
|
<T> rx.Observable<T> |
post(javax.ws.rs.client.Entity<?> entity,
Class<T> clazz)
Invoke HTTP POST method for the current request.
|
<T> rx.Observable<T> |
post(javax.ws.rs.client.Entity<?> entity,
javax.ws.rs.core.GenericType<T> type)
Invoke HTTP POST method for the current request.
|
rx.Observable<javax.ws.rs.core.Response> |
put(javax.ws.rs.client.Entity<?> entity)
Invoke HTTP PUT method for the current request.
|
<T> rx.Observable<T> |
put(javax.ws.rs.client.Entity<?> entity,
Class<T> clazz)
Invoke HTTP PUT method for the current request.
|
<T> rx.Observable<T> |
put(javax.ws.rs.client.Entity<?> entity,
javax.ws.rs.core.GenericType<T> type)
Invoke HTTP PUT method for the current request.
|
rx.Observable<javax.ws.rs.core.Response> |
trace()
Invoke HTTP TRACE method for the current request.
|
<T> rx.Observable<T> |
trace(Class<T> responseType)
Invoke HTTP OPTIONS method for the current request.
|
<T> rx.Observable<T> |
trace(javax.ws.rs.core.GenericType<T> responseType)
Invoke HTTP TRACE method for the current request.
|
rx.Observable<javax.ws.rs.core.Response> get()
RxInvoker
<T> rx.Observable<T> get(Class<T> responseType)
RxInvoker
<T> rx.Observable<T> get(javax.ws.rs.core.GenericType<T> responseType)
RxInvoker
rx.Observable<javax.ws.rs.core.Response> put(javax.ws.rs.client.Entity<?> entity)
RxInvoker
put
in interface RxInvoker<rx.Observable>
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> rx.Observable<T> put(javax.ws.rs.client.Entity<?> entity, Class<T> clazz)
RxInvoker
put
in interface RxInvoker<rx.Observable>
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> rx.Observable<T> put(javax.ws.rs.client.Entity<?> entity, javax.ws.rs.core.GenericType<T> type)
RxInvoker
put
in interface RxInvoker<rx.Observable>
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.rx.Observable<javax.ws.rs.core.Response> post(javax.ws.rs.client.Entity<?> entity)
RxInvoker
post
in interface RxInvoker<rx.Observable>
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> rx.Observable<T> post(javax.ws.rs.client.Entity<?> entity, Class<T> clazz)
RxInvoker
post
in interface RxInvoker<rx.Observable>
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> rx.Observable<T> post(javax.ws.rs.client.Entity<?> entity, javax.ws.rs.core.GenericType<T> type)
RxInvoker
post
in interface RxInvoker<rx.Observable>
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.rx.Observable<javax.ws.rs.core.Response> delete()
RxInvoker
<T> rx.Observable<T> delete(Class<T> responseType)
RxInvoker
<T> rx.Observable<T> delete(javax.ws.rs.core.GenericType<T> responseType)
RxInvoker
rx.Observable<javax.ws.rs.core.Response> head()
RxInvoker
rx.Observable<javax.ws.rs.core.Response> options()
RxInvoker
<T> rx.Observable<T> options(Class<T> responseType)
RxInvoker
<T> rx.Observable<T> options(javax.ws.rs.core.GenericType<T> responseType)
RxInvoker
rx.Observable<javax.ws.rs.core.Response> trace()
RxInvoker
<T> rx.Observable<T> trace(Class<T> responseType)
RxInvoker
<T> rx.Observable<T> trace(javax.ws.rs.core.GenericType<T> responseType)
RxInvoker
rx.Observable<javax.ws.rs.core.Response> method(String name)
RxInvoker
<T> rx.Observable<T> method(String name, Class<T> responseType)
RxInvoker
<T> rx.Observable<T> method(String name, javax.ws.rs.core.GenericType<T> responseType)
RxInvoker
method
in interface RxInvoker<rx.Observable>
T
- generic response entity type.name
- method name.responseType
- representation of a generic Java type the response entity will be converted to.rx.Observable<javax.ws.rs.core.Response> method(String name, javax.ws.rs.client.Entity<?> entity)
RxInvoker
method
in interface RxInvoker<rx.Observable>
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> rx.Observable<T> method(String name, javax.ws.rs.client.Entity<?> entity, Class<T> responseType)
RxInvoker
method
in interface RxInvoker<rx.Observable>
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> rx.Observable<T> method(String name, javax.ws.rs.client.Entity<?> entity, javax.ws.rs.core.GenericType<T> responseType)
RxInvoker
method
in interface RxInvoker<rx.Observable>
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 © 2007-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.