Class AsyncClientPipeline.RequestContentStage
- java.lang.Object
-
- org.apache.hc.core5.http.nio.support.AsyncClientPipeline.RequestContentStage
-
- Enclosing class:
- AsyncClientPipeline
public static class AsyncClientPipeline.RequestContentStage extends java.lang.ObjectRequest content stage.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AsyncClientPipeline.ResponseStageasByteArray(byte[] bytes, ContentType contentType)Configures the pipeline to represent the outgoing message content as a byte array.AsyncClientPipeline.ResponseStageasString(java.lang.String s, ContentType contentType)Configures the pipeline to represent the outgoing message content as a String.AsyncClientPipeline.ResponseStagenoContent()Configures the pipeline to represent the outgoing message without a content body.AsyncClientPipeline.ResponseStageproduceContent(AsyncEntityProducer dataProducer)ConfiguresAsyncEntityProducerto be used by the pipeline to generate the outgoing request content stream.
-
-
-
Method Detail
-
produceContent
public AsyncClientPipeline.ResponseStage produceContent(AsyncEntityProducer dataProducer)
ConfiguresAsyncEntityProducerto be used by the pipeline to generate the outgoing request content stream.
-
asString
public AsyncClientPipeline.ResponseStage asString(java.lang.String s, ContentType contentType)
Configures the pipeline to represent the outgoing message content as a String.
-
asByteArray
public AsyncClientPipeline.ResponseStage asByteArray(byte[] bytes, ContentType contentType)
Configures the pipeline to represent the outgoing message content as a byte array.
-
noContent
public AsyncClientPipeline.ResponseStage noContent()
Configures the pipeline to represent the outgoing message without a content body.
-
-