net.winterly.rxjersey.server.RxBodyWriter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rxjava-server Show documentation
Show all versions of rxjava-server Show documentation
RxJava extension for Jersey and Dropwizard
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);
}
}