All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.winterly.rxjersey.server.RxBodyWriter Maven / Gradle / Ivy

There is a newer version: 0.11.0
Show newest version
package net.winterly.rxjersey.server;

import rx.Completable;
import rx.Observable;
import rx.Single;

import javax.annotation.Priority;
import javax.inject.Singleton;
import javax.ws.rs.ext.MessageBodyWriter;

/**
 * {@link MessageBodyWriter} accepting {@link rx.Observable} or {@link rx.Single}
 *
 * @see Observable
 * @see Single
 */
@Singleton
@Priority(1)
public class RxBodyWriter extends RxGenericBodyWriter {
    public RxBodyWriter() {
        super(Observable.class, Single.class, Completable.class);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy