Interface ResponseEntity
- All Superinterfaces:
- HttpEntity,- HttpEntity,- ResponseEntity
- All Known Subinterfaces:
- RequestEntity,- UniversalEntity
- All Known Implementing Classes:
- HttpEntity.Chunked,- HttpEntity.CloseDelimited,- HttpEntity.Default,- HttpEntity.Strict
An 
HttpEntity that can be used for responses.
 Note that all entities that can be used for requests can also be used for responses.
 (But not the other way around, since HttpEntity.CloseDelimited can only be used for responses!)- 
Nested Class SummaryNested classes/interfaces inherited from interface org.apache.pekko.http.javadsl.model.HttpEntityHttpEntity.Chunked, HttpEntity.ChunkStreamPart, HttpEntity.CloseDelimited, HttpEntity.Default, HttpEntity.DiscardedEntity, HttpEntity.IndefiniteLength, HttpEntity.StrictNested classes/interfaces inherited from interface org.apache.pekko.http.scaladsl.model.HttpEntityHttpEntity.Chunk, HttpEntity.Chunk$, HttpEntity.Chunked, HttpEntity.Chunked$, HttpEntity.ChunkStreamPart, HttpEntity.ChunkStreamPart$, HttpEntity.CloseDelimited, HttpEntity.CloseDelimited$, HttpEntity.Default, HttpEntity.Default$, HttpEntity.DiscardedEntity, HttpEntity.HttpEntityScalaDSLSugar, HttpEntity.HttpEntityScalaDSLSugar$, HttpEntity.IndefiniteLength, HttpEntity.IndefiniteLength$, HttpEntity.LastChunk, HttpEntity.LastChunk$, HttpEntity.Strict, HttpEntity.Strict$, HttpEntity.WithoutKnownLength
- 
Method SummaryModifier and TypeMethodDescriptiontransformDataBytes(org.apache.pekko.stream.scaladsl.Flow<org.apache.pekko.util.ByteString, org.apache.pekko.util.ByteString, Object> transformer) Returns a copy of the given entity with the ByteString chunks of this entity transformed by the given transformer.withContentType(ContentType contentType) Creates a copy of this HttpEntity with thecontentTypeoverridden with the given one.withSizeLimit(long maxBytes) Methods inherited from interface org.apache.pekko.http.scaladsl.model.HttpEntitycompletionStageCovariant, contentLengthOption, contentType, dataBytes, discardBytes, discardBytes, getContentLengthOption, getContentType, getDataBytes, isChunked, isCloseDelimited, isDefault, isIndefiniteLength, isKnownEmpty, isStrict, toStrict, toStrict, toStrict, toStrict, toStrict, toStrict, transformDataBytes, withContentType
- 
Method Details- 
withContentTypeDescription copied from interface:HttpEntityCreates a copy of this HttpEntity with thecontentTypeoverridden with the given one.- Specified by:
- withContentTypein interface- HttpEntity
- Parameters:
- contentType- (undocumented)
- Returns:
- (undocumented)
 
- 
withSizeLimit- Specified by:
- withSizeLimitin interface- HttpEntity
- Specified by:
- withSizeLimitin interface- HttpEntity
- Parameters:
- maxBytes- (undocumented)
- Returns:
- (undocumented)
 
- 
withoutSizeLimitResponseEntity withoutSizeLimit()- Specified by:
- withoutSizeLimitin interface- HttpEntity
- Specified by:
- withoutSizeLimitin interface- HttpEntity
- Returns:
- (undocumented)
 
- 
transformDataBytesResponseEntity transformDataBytes(org.apache.pekko.stream.scaladsl.Flow<org.apache.pekko.util.ByteString, org.apache.pekko.util.ByteString, Object> transformer) Description copied from interface:HttpEntityReturns a copy of the given entity with the ByteString chunks of this entity transformed by the given transformer. For aChunkedentity, the chunks will be transformed one by one keeping the chunk metadata (but may introduce an extra chunk before theLastChunkiftransformer.onTerminationreturns additional data).This method may only throw an exception if the transformerfunction throws an exception while creating the transformer. Any other errors are reported through the new entity data stream.- Specified by:
- transformDataBytesin interface- HttpEntity
- Parameters:
- transformer- (undocumented)
- Returns:
- (undocumented)
 
 
-