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 org.apache.pekko.http.javadsl.model.ContentType
ContentType.Binary, ContentType.NonBinary, ContentType.WithCharset, ContentType.WithFixedCharset, ContentType.WithMissingCharsetNested classes/interfaces inherited from interface org.apache.pekko.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 TypeMethodDescriptionbooleanbinary()True if this ContentType is non-textual.charset()scala.Some<HttpCharset>Methods inherited from interface org.apache.pekko.http.javadsl.model.ContentType
valueMethods inherited from interface org.apache.pekko.http.scaladsl.model.ContentType
getCharsetOption, mediaType, render, toStringMethods inherited from interface org.apache.pekko.http.impl.util.ValueRenderable
value
-
Method Details
-
binary
boolean binary()Description copied from interface:ContentTypeTrue if this ContentType is non-textual.- Specified by:
binaryin interfaceContentType- Returns:
- (undocumented)
-
charset
HttpCharset charset()- Specified by:
charsetin interfaceContentType.NonBinary
-
charsetOption
scala.Some<HttpCharset> charsetOption()- Specified by:
charsetOptionin interfaceContentType
-