ReactiveRequest.Content
, org.reactivestreams.Publisher<ContentChunk>
public class StringContent extends AbstractSinglePublisher<ContentChunk> implements ReactiveRequest.Content
Utility class that provides a String as reactive content.
Constructor | Description |
---|---|
StringContent(String string,
String mediaType,
Charset encoding) |
Modifier and Type | Method | Description |
---|---|---|
String |
getContentType() |
|
long |
getLength() |
|
protected void |
onRequest(long n) |
cancel, onFailure, request, subscribe, subscriber
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
fromPublisher, fromPublisher, fromString
public long getLength()
getLength
in interface ReactiveRequest.Content
public String getContentType()
getContentType
in interface ReactiveRequest.Content
media_type[;charset=<charset>]
protected void onRequest(long n)
onRequest
in class AbstractSinglePublisher<ContentChunk>
Copyright © 2017 The Jetty Project. All rights reserved.