Package play.http
Class HttpEntity.Strict
java.lang.Object
play.http.HttpEntity
play.http.HttpEntity.Strict
- Enclosing class:
- HttpEntity
A strict entity, where all the data for it is in memory.
-
Nested Class Summary
Nested classes/interfaces inherited from class play.http.HttpEntity
HttpEntity.Chunked, HttpEntity.Streamed, HttpEntity.Strict -
Field Summary
Fields inherited from class play.http.HttpEntity
NO_ENTITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionplay.api.http.HttpEntityasScala()data()Source<ByteString,?> booleanMethods inherited from class play.http.HttpEntity
chunked, consumeData, fromContent, fromString
-
Constructor Details
-
Strict
-
-
Method Details
-
data
-
contentType
- Specified by:
contentTypein classHttpEntity- Returns:
- The content type, if defined
-
isKnownEmpty
public boolean isKnownEmpty()- Specified by:
isKnownEmptyin classHttpEntity- Returns:
- Whether the entity is known to be empty or not.
-
contentLength
- Specified by:
contentLengthin classHttpEntity- Returns:
- The content length, if known
-
as
- Specified by:
asin classHttpEntity- Parameters:
contentType- the content type to use, i.e. "text/html".- Returns:
- Return the entity as the given content type.
-
dataStream
- Specified by:
dataStreamin classHttpEntity- Returns:
- The stream of data.
-
asScala
public play.api.http.HttpEntity asScala()- Specified by:
asScalain classHttpEntity
-