Package akka.http.scaladsl.model
Class HttpEntity.IndefiniteLength
- java.lang.Object
-
- akka.http.scaladsl.model.HttpEntity.IndefiniteLength
-
- All Implemented Interfaces:
BodyPartEntity,HttpEntity,HttpEntity.IndefiniteLength,BodyPartEntity,HttpEntity,HttpEntity.WithoutKnownLength,java.io.Serializable,scala.Equals,scala.Product
- Enclosing interface:
- HttpEntity
public static final class HttpEntity.IndefiniteLength extends java.lang.Object implements HttpEntity.IndefiniteLength, BodyPartEntity, HttpEntity.WithoutKnownLength, scala.Product, java.io.Serializable
The model for the entity of a BodyPart with an indefinite length. Note that this type of HttpEntity can only be used for BodyParts.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface akka.http.javadsl.model.HttpEntity
HttpEntity.Chunked, HttpEntity.ChunkStreamPart, HttpEntity.CloseDelimited, HttpEntity.Default, HttpEntity.DiscardedEntity, HttpEntity.IndefiniteLength, HttpEntity.Strict
-
Nested classes/interfaces inherited from interface akka.http.scaladsl.model.HttpEntity
HttpEntity.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
-
-
Constructor Summary
Constructors Constructor Description IndefiniteLength(ContentType contentType, akka.stream.scaladsl.Source<akka.util.ByteString,java.lang.Object> data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContentTypecontentType()TheContentTypeassociated with this entity.akka.stream.scaladsl.Source<akka.util.ByteString,java.lang.Object>data()booleanisIndefiniteLength()Returns if this entity is a subtype of HttpEntityIndefiniteLength.java.lang.StringproductPrefix()java.lang.StringtoString()HttpEntity.IndefiniteLengthwithContentType(ContentType contentType)Creates a copy of this HttpEntity with thecontentTypeoverridden with the given one.HttpEntity.IndefiniteLengthwithData(akka.stream.scaladsl.Source<akka.util.ByteString,java.lang.Object> data)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface akka.http.scaladsl.model.BodyPartEntity
withoutSizeLimit, withSizeLimit
-
Methods inherited from interface akka.http.scaladsl.model.HttpEntity
completionStageCovariant, discardBytes, discardBytes, getContentLengthOption, getContentType, getDataBytes, isChunked, isCloseDelimited, isDefault, isStrict, toStrict, toStrict, toStrict, toStrict, toStrict, toStrict, transformDataBytes, withContentType
-
Methods inherited from interface akka.http.scaladsl.model.HttpEntity.WithoutKnownLength
contentLengthOption, dataBytes, isKnownEmpty, transformDataBytes, withoutSizeLimit, withSizeLimit
-
-
-
-
Constructor Detail
-
IndefiniteLength
public IndefiniteLength(ContentType contentType, akka.stream.scaladsl.Source<akka.util.ByteString,java.lang.Object> data)
-
-
Method Detail
-
contentType
public ContentType contentType()
Description copied from interface:HttpEntityTheContentTypeassociated with this entity.- Specified by:
contentTypein interfaceHttpEntity- Specified by:
contentTypein interfaceHttpEntity.WithoutKnownLength- Returns:
- (undocumented)
-
data
public akka.stream.scaladsl.Source<akka.util.ByteString,java.lang.Object> data()
- Specified by:
datain interfaceHttpEntity.WithoutKnownLength
-
isIndefiniteLength
public boolean isIndefiniteLength()
Description copied from interface:HttpEntityReturns if this entity is a subtype of HttpEntityIndefiniteLength.- Specified by:
isIndefiniteLengthin interfaceHttpEntity- Specified by:
isIndefiniteLengthin interfaceHttpEntity
-
withContentType
public HttpEntity.IndefiniteLength withContentType(ContentType contentType)
Description copied from interface:HttpEntityCreates a copy of this HttpEntity with thecontentTypeoverridden with the given one.- Specified by:
withContentTypein interfaceBodyPartEntity- Specified by:
withContentTypein interfaceHttpEntity- Parameters:
contentType- (undocumented)- Returns:
- (undocumented)
-
withData
public HttpEntity.IndefiniteLength withData(akka.stream.scaladsl.Source<akka.util.ByteString,java.lang.Object> data)
- Specified by:
withDatain interfaceHttpEntity.WithoutKnownLength
-
productPrefix
public java.lang.String productPrefix()
- Specified by:
productPrefixin interfacescala.Product
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-