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
public static interface ContentType.NonBinary extends ContentType.NonBinary, 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
binary()
True if this ContentType is non-textual.HttpCharset
charset()
scala.Some<HttpCharset>
charsetOption()
-
Methods inherited from interface akka.http.scaladsl.model.ContentType
getCharsetOption, mediaType, render, toString
-
Methods inherited from interface akka.http.impl.util.ValueRenderable
value
-
-
-
-
Method Detail
-
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
-
-