Package akka.http.scaladsl.model
Interface ContentType.NonBinary
- All Superinterfaces:
ContentType
,ContentType
,ContentType.NonBinary
,Renderable
,ToStringRenderable
,ValueRenderable
- All Known Implementing Classes:
ContentType.WithCharset
,ContentType.WithFixedCharset
- Enclosing interface:
- ContentType
Represents a content-type which we know to contain text, and has a specified charset.
-
Nested Class Summary
Nested classes/interfaces inherited from interface akka.http.javadsl.model.ContentType
ContentType.Binary, ContentType.NonBinary, ContentType.WithCharset, ContentType.WithFixedCharset, ContentType.WithMissingCharset
Nested classes/interfaces inherited from interface akka.http.scaladsl.model.ContentType
ContentType.$u003B$u0020charset$eq$, ContentType.Binary, ContentType.Binary$, ContentType.NonBinary, ContentType.WithCharset, ContentType.WithCharset$, ContentType.WithFixedCharset, ContentType.WithFixedCharset$, ContentType.WithMissingCharset, ContentType.WithMissingCharset$
-
Method Summary
Modifier and TypeMethodDescriptionboolean
binary()
True if this ContentType is non-textual.charset()
scala.Some<HttpCharset>
Methods inherited from interface akka.http.scaladsl.model.ContentType
getCharsetOption, mediaType, render, toString
Methods inherited from interface akka.http.impl.util.ValueRenderable
value
-
Method Details
-
binary
boolean binary()Description copied from interface:ContentType
True if this ContentType is non-textual.- Specified by:
binary
in interfaceContentType
- Returns:
- (undocumented)
-
charset
HttpCharset charset()- Specified by:
charset
in interfaceContentType.NonBinary
-
charsetOption
scala.Some<HttpCharset> charsetOption()- Specified by:
charsetOption
in interfaceContentType
-