Class StringAsyncEntityConsumer
- java.lang.Object
-
- org.apache.hc.core5.http.nio.entity.AbstractCharDataConsumer
-
- org.apache.hc.core5.http.nio.entity.AbstractCharAsyncEntityConsumer<T>
-
- org.apache.hc.core5.http.nio.entity.CharSequenceAsyncEntityConsumer<java.lang.String>
-
- org.apache.hc.core5.http.nio.entity.StringAsyncEntityConsumer
-
- All Implemented Interfaces:
AsyncDataConsumer,AsyncEntityConsumer<java.lang.String>,ResourceHolder
public class StringAsyncEntityConsumer extends CharSequenceAsyncEntityConsumer<java.lang.String>
BasicAsyncEntityConsumerimplementation that processes the data stream content into a string.- Since:
- 5.0
-
-
Field Summary
-
Fields inherited from class org.apache.hc.core5.http.nio.entity.AbstractCharDataConsumer
DEF_BUF_SIZE
-
-
Constructor Summary
Constructors Constructor Description StringAsyncEntityConsumer()StringAsyncEntityConsumer(int capacityIncrement)StringAsyncEntityConsumer(int bufSize, int capacityIncrement, CharCodingConfig charCodingConfig)StringAsyncEntityConsumer(CharCodingConfig charCodingConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgenerateContent()Triggered to generate entity representation.-
Methods inherited from class org.apache.hc.core5.http.nio.entity.CharSequenceAsyncEntityConsumer
capacityIncrement, data, releaseResources, streamStart
-
Methods inherited from class org.apache.hc.core5.http.nio.entity.AbstractCharAsyncEntityConsumer
completed, failed, getContent, streamStart
-
Methods inherited from class org.apache.hc.core5.http.nio.entity.AbstractCharDataConsumer
consume, setCharset, streamEnd, updateCapacity
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.hc.core5.http.nio.AsyncDataConsumer
consume, streamEnd, updateCapacity
-
-
-
-
Constructor Detail
-
StringAsyncEntityConsumer
public StringAsyncEntityConsumer(int bufSize, int capacityIncrement, CharCodingConfig charCodingConfig)
-
StringAsyncEntityConsumer
public StringAsyncEntityConsumer(int capacityIncrement)
-
StringAsyncEntityConsumer
public StringAsyncEntityConsumer(CharCodingConfig charCodingConfig)
-
StringAsyncEntityConsumer
public StringAsyncEntityConsumer()
-
-
Method Detail
-
generateContent
public java.lang.String generateContent()
Description copied from class:AbstractCharAsyncEntityConsumerTriggered to generate entity representation.- Overrides:
generateContentin classCharSequenceAsyncEntityConsumer<java.lang.String>- Returns:
- the entity content
-
-