Interface ReactiveRequest.Content
- All Superinterfaces:
org.reactivestreams.Publisher<ContentChunk>
- Enclosing class:
ReactiveRequest
A Publisher of content chunks that also specifies the content length and type.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ReactiveRequest.ContentfromPublisher(org.reactivestreams.Publisher<ContentChunk> publisher, String contentType) static ReactiveRequest.ContentfromPublisher(org.reactivestreams.Publisher<ContentChunk> publisher, String mediaType, Charset charset) static ReactiveRequest.ContentfromString(String string, String mediaType, Charset charset) longMethods inherited from interface org.reactivestreams.Publisher
subscribe
-
Method Details
-
getLength
long getLength()- Returns:
- the content length
-
getContentType
String getContentType()- Returns:
- the content type in the form
media_type[;charset=<charset>]
-
fromString
-
fromPublisher
static ReactiveRequest.Content fromPublisher(org.reactivestreams.Publisher<ContentChunk> publisher, String contentType) -
fromPublisher
static ReactiveRequest.Content fromPublisher(org.reactivestreams.Publisher<ContentChunk> publisher, String mediaType, Charset charset)
-