Interface ReactiveRequest.Content
-
- All Superinterfaces:
org.reactivestreams.Publisher<ContentChunk>
- All Known Implementing Classes:
PublisherContent,StringContent
- Enclosing class:
- ReactiveRequest
public static interface ReactiveRequest.Content extends org.reactivestreams.Publisher<ContentChunk>
A Publisher of content chunks that also specifies the content length and type.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static 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)StringgetContentType()longgetLength()
-
-
-
Method Detail
-
getLength
long getLength()
- Returns:
- the content length
-
getContentType
String getContentType()
- Returns:
- the content type in the form
media_type[;charset=<charset>]
-
fromString
static ReactiveRequest.Content fromString(String string, String mediaType, Charset charset)
-
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)
-
-