Class ContentType.WithCharset
java.lang.Object
org.apache.pekko.http.scaladsl.model.ContentType.WithCharset
- All Implemented Interfaces:
Serializable,Renderable,ToStringRenderable,ValueRenderable,ContentType,ContentType.NonBinary,ContentType.WithCharset,ContentType,ContentType.NonBinary,scala.Equals,scala.Product
- Enclosing interface:
- ContentType
public static final class ContentType.WithCharset
extends Object
implements ContentType.WithCharset, ContentType.NonBinary, scala.Product, Serializable
Represents a content-type which we know to contain text, and the charset is known at runtime.
- See Also:
-
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$ -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.pekko.http.javadsl.model.ContentType
valueMethods inherited from interface org.apache.pekko.http.scaladsl.model.ContentType
getCharsetOption, toStringMethods inherited from interface org.apache.pekko.http.scaladsl.model.ContentType.NonBinary
binary, charsetOptionMethods inherited from interface scala.Equals
canEqual, equalsMethods inherited from interface scala.Product
productArity, productElement, productElementName, productElementNames, productIterator, productPrefixMethods inherited from interface org.apache.pekko.http.impl.util.ValueRenderable
value
-
Constructor Details
-
WithCharset
-
-
Method Details
-
mediaType
Description copied from interface:ContentTypeThe media-type of this content-type.- Specified by:
mediaTypein interfaceContentType- Specified by:
mediaTypein interfaceContentType- Returns:
- (undocumented)
-
charset
- Specified by:
charsetin interfaceContentType.NonBinary- Specified by:
charsetin interfaceContentType.NonBinary
-
render
- Specified by:
renderin interfaceContentType- Specified by:
renderin interfaceRenderable
-