Package se.fortnox.reactivewizard.jaxrs
Class ByteBufCollector
java.lang.Object
se.fortnox.reactivewizard.jaxrs.ByteBufCollector
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<byte[]>collectBytes(reactor.core.publisher.Flux<io.netty.buffer.ByteBuf> content) Collect bytes from content.org.reactivestreams.Publisher<byte[]>collectBytes(reactor.netty.ByteBufFlux input) reactor.core.publisher.Mono<String>collectString(reactor.netty.ByteBufFlux input) rx.Observable<String>collectString(rx.Observable<io.netty.buffer.ByteBuf> input) Collect string from input.
-
Constructor Details
-
ByteBufCollector
public ByteBufCollector() -
ByteBufCollector
public ByteBufCollector(int maxReqSize)
-
-
Method Details
-
collectString
Collect string from input.- Parameters:
input- the input- Returns:
- the string
-
collectString
-
collectBytes
public reactor.core.publisher.Mono<byte[]> collectBytes(reactor.core.publisher.Flux<io.netty.buffer.ByteBuf> content) Collect bytes from content.- Parameters:
content- the content- Returns:
- the bytes
-
collectBytes
public org.reactivestreams.Publisher<byte[]> collectBytes(reactor.netty.ByteBufFlux input)
-