Class PublisherContent
- java.lang.Object
-
- org.eclipse.jetty.reactive.client.internal.AbstractSinglePublisher<O>
-
- org.eclipse.jetty.reactive.client.internal.AbstractSingleProcessor<ContentChunk,ContentChunk>
-
- org.eclipse.jetty.reactive.client.internal.PublisherContent
-
- All Implemented Interfaces:
ReactiveRequest.Content,org.reactivestreams.Processor<ContentChunk,ContentChunk>,org.reactivestreams.Publisher<ContentChunk>,org.reactivestreams.Subscriber<ContentChunk>,org.reactivestreams.Subscription
public class PublisherContent extends AbstractSingleProcessor<ContentChunk,ContentChunk> implements ReactiveRequest.Content
-
-
Constructor Summary
Constructors Constructor Description PublisherContent(org.reactivestreams.Publisher<ContentChunk> publisher, String contentType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContentType()longgetLength()voidonNext(ContentChunk chunk)-
Methods inherited from class org.eclipse.jetty.reactive.client.internal.AbstractSingleProcessor
cancel, downStream, downStreamOnNext, onComplete, onError, onFailure, onRequest, onSubscribe, toString, upStream, upStreamRequest
-
Methods inherited from class org.eclipse.jetty.reactive.client.internal.AbstractSinglePublisher
cappedAdd, isCancelled, request, subscribe, subscriber
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.jetty.reactive.client.ReactiveRequest.Content
-
-
-
-
Constructor Detail
-
PublisherContent
public PublisherContent(org.reactivestreams.Publisher<ContentChunk> publisher, String contentType)
-
-
Method Detail
-
getLength
public long getLength()
- Specified by:
getLengthin interfaceReactiveRequest.Content- Returns:
- the content length
-
getContentType
public String getContentType()
- Specified by:
getContentTypein interfaceReactiveRequest.Content- Returns:
- the content type in the form
media_type[;charset=<charset>]
-
onNext
public void onNext(ContentChunk chunk)
- Specified by:
onNextin interfaceorg.reactivestreams.Subscriber<ContentChunk>
-
-