public interface RxObservableInvoker
extends javax.ws.rs.client.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() |
<T> rx.Observable<T> |
delete(Class<T> responseType) |
<T> rx.Observable<T> |
delete(javax.ws.rs.core.GenericType<T> responseType) |
rx.Observable<javax.ws.rs.core.Response> |
get() |
<T> rx.Observable<T> |
get(Class<T> responseType) |
<T> rx.Observable<T> |
get(javax.ws.rs.core.GenericType<T> responseType) |
rx.Observable<javax.ws.rs.core.Response> |
head() |
rx.Observable<javax.ws.rs.core.Response> |
method(String name) |
<T> rx.Observable<T> |
method(String name,
Class<T> responseType) |
rx.Observable<javax.ws.rs.core.Response> |
method(String name,
javax.ws.rs.client.Entity<?> entity) |
<T> rx.Observable<T> |
method(String name,
javax.ws.rs.client.Entity<?> entity,
Class<T> responseType) |
<T> rx.Observable<T> |
method(String name,
javax.ws.rs.client.Entity<?> entity,
javax.ws.rs.core.GenericType<T> responseType) |
<T> rx.Observable<T> |
method(String name,
javax.ws.rs.core.GenericType<T> responseType) |
rx.Observable<javax.ws.rs.core.Response> |
options() |
<T> rx.Observable<T> |
options(Class<T> responseType) |
<T> rx.Observable<T> |
options(javax.ws.rs.core.GenericType<T> responseType) |
rx.Observable<javax.ws.rs.core.Response> |
post(javax.ws.rs.client.Entity<?> entity) |
<T> rx.Observable<T> |
post(javax.ws.rs.client.Entity<?> entity,
Class<T> clazz) |
<T> rx.Observable<T> |
post(javax.ws.rs.client.Entity<?> entity,
javax.ws.rs.core.GenericType<T> type) |
rx.Observable<javax.ws.rs.core.Response> |
put(javax.ws.rs.client.Entity<?> entity) |
<T> rx.Observable<T> |
put(javax.ws.rs.client.Entity<?> entity,
Class<T> clazz) |
<T> rx.Observable<T> |
put(javax.ws.rs.client.Entity<?> entity,
javax.ws.rs.core.GenericType<T> type) |
rx.Observable<javax.ws.rs.core.Response> |
trace() |
<T> rx.Observable<T> |
trace(Class<T> responseType) |
<T> rx.Observable<T> |
trace(javax.ws.rs.core.GenericType<T> responseType) |
rx.Observable<javax.ws.rs.core.Response> get()
get
in interface javax.ws.rs.client.RxInvoker<rx.Observable>
<T> rx.Observable<T> get(Class<T> responseType)
get
in interface javax.ws.rs.client.RxInvoker<rx.Observable>
<T> rx.Observable<T> get(javax.ws.rs.core.GenericType<T> responseType)
get
in interface javax.ws.rs.client.RxInvoker<rx.Observable>
rx.Observable<javax.ws.rs.core.Response> put(javax.ws.rs.client.Entity<?> entity)
put
in interface javax.ws.rs.client.RxInvoker<rx.Observable>
<T> rx.Observable<T> put(javax.ws.rs.client.Entity<?> entity, Class<T> clazz)
put
in interface javax.ws.rs.client.RxInvoker<rx.Observable>
<T> rx.Observable<T> put(javax.ws.rs.client.Entity<?> entity, javax.ws.rs.core.GenericType<T> type)
put
in interface javax.ws.rs.client.RxInvoker<rx.Observable>
rx.Observable<javax.ws.rs.core.Response> post(javax.ws.rs.client.Entity<?> entity)
post
in interface javax.ws.rs.client.RxInvoker<rx.Observable>
<T> rx.Observable<T> post(javax.ws.rs.client.Entity<?> entity, Class<T> clazz)
post
in interface javax.ws.rs.client.RxInvoker<rx.Observable>
<T> rx.Observable<T> post(javax.ws.rs.client.Entity<?> entity, javax.ws.rs.core.GenericType<T> type)
post
in interface javax.ws.rs.client.RxInvoker<rx.Observable>
rx.Observable<javax.ws.rs.core.Response> delete()
delete
in interface javax.ws.rs.client.RxInvoker<rx.Observable>
<T> rx.Observable<T> delete(Class<T> responseType)
delete
in interface javax.ws.rs.client.RxInvoker<rx.Observable>
<T> rx.Observable<T> delete(javax.ws.rs.core.GenericType<T> responseType)
delete
in interface javax.ws.rs.client.RxInvoker<rx.Observable>
rx.Observable<javax.ws.rs.core.Response> head()
head
in interface javax.ws.rs.client.RxInvoker<rx.Observable>
rx.Observable<javax.ws.rs.core.Response> options()
options
in interface javax.ws.rs.client.RxInvoker<rx.Observable>
<T> rx.Observable<T> options(Class<T> responseType)
options
in interface javax.ws.rs.client.RxInvoker<rx.Observable>
<T> rx.Observable<T> options(javax.ws.rs.core.GenericType<T> responseType)
options
in interface javax.ws.rs.client.RxInvoker<rx.Observable>
rx.Observable<javax.ws.rs.core.Response> trace()
trace
in interface javax.ws.rs.client.RxInvoker<rx.Observable>
<T> rx.Observable<T> trace(Class<T> responseType)
trace
in interface javax.ws.rs.client.RxInvoker<rx.Observable>
<T> rx.Observable<T> trace(javax.ws.rs.core.GenericType<T> responseType)
trace
in interface javax.ws.rs.client.RxInvoker<rx.Observable>
rx.Observable<javax.ws.rs.core.Response> method(String name)
method
in interface javax.ws.rs.client.RxInvoker<rx.Observable>
<T> rx.Observable<T> method(String name, Class<T> responseType)
method
in interface javax.ws.rs.client.RxInvoker<rx.Observable>
<T> rx.Observable<T> method(String name, javax.ws.rs.core.GenericType<T> responseType)
method
in interface javax.ws.rs.client.RxInvoker<rx.Observable>
rx.Observable<javax.ws.rs.core.Response> method(String name, javax.ws.rs.client.Entity<?> entity)
method
in interface javax.ws.rs.client.RxInvoker<rx.Observable>
<T> rx.Observable<T> method(String name, javax.ws.rs.client.Entity<?> entity, Class<T> responseType)
method
in interface javax.ws.rs.client.RxInvoker<rx.Observable>
<T> rx.Observable<T> method(String name, javax.ws.rs.client.Entity<?> entity, javax.ws.rs.core.GenericType<T> responseType)
method
in interface javax.ws.rs.client.RxInvoker<rx.Observable>
Copyright © 2007-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.