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, java.lang.String contentType)static ReactiveRequest.ContentfromPublisher(org.reactivestreams.Publisher<ContentChunk> publisher, java.lang.String mediaType, java.nio.charset.Charset charset)static ReactiveRequest.ContentfromString(java.lang.String string, java.lang.String mediaType, java.nio.charset.Charset charset)java.lang.StringgetContentType()longgetLength()
-
-
-
Method Detail
-
getLength
long getLength()
- Returns:
- the content length
-
getContentType
java.lang.String getContentType()
- Returns:
- the content type in the form
media_type[;charset=<charset>]
-
fromString
static ReactiveRequest.Content fromString(java.lang.String string, java.lang.String mediaType, java.nio.charset.Charset charset)
-
fromPublisher
static ReactiveRequest.Content fromPublisher(org.reactivestreams.Publisher<ContentChunk> publisher, java.lang.String contentType)
-
fromPublisher
static ReactiveRequest.Content fromPublisher(org.reactivestreams.Publisher<ContentChunk> publisher, java.lang.String mediaType, java.nio.charset.Charset charset)
-
-