Package akka.http.scaladsl.model
Class ContentType.WithCharset
- java.lang.Object
-
- akka.http.scaladsl.model.ContentType.WithCharset
-
- All Implemented Interfaces:
Renderable,ToStringRenderable,ValueRenderable,ContentType,ContentType.NonBinary,ContentType.WithCharset,ContentType,ContentType.NonBinary,java.io.Serializable,scala.Equals,scala.Product
- Enclosing interface:
- ContentType
public static final class ContentType.WithCharset extends java.lang.Object implements ContentType.WithCharset, ContentType.NonBinary, scala.Product, java.io.Serializable
Represents a content-type which we know to contain text, and the charset is known at runtime.- See Also:
- Serialized Form
-
-
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$
-
-
Constructor Summary
Constructors Constructor Description WithCharset(MediaType.WithOpenCharset mediaType, HttpCharset charset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpCharsetcharset()MediaType.WithOpenCharsetmediaType()The media-type of this content-type.<R extends Rendering>
Renderingrender(R r)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface akka.http.scaladsl.model.ContentType
getCharsetOption, toString
-
Methods inherited from interface akka.http.scaladsl.model.ContentType.NonBinary
binary, charsetOption
-
Methods inherited from interface scala.Product
productArity, productElement, productElementName, productElementNames, productIterator, productPrefix
-
Methods inherited from interface akka.http.impl.util.ValueRenderable
value
-
-
-
-
Constructor Detail
-
WithCharset
public WithCharset(MediaType.WithOpenCharset mediaType, HttpCharset charset)
-
-
Method Detail
-
mediaType
public MediaType.WithOpenCharset mediaType()
Description copied from interface:ContentTypeThe media-type of this content-type.- Specified by:
mediaTypein interfaceContentType- Specified by:
mediaTypein interfaceContentType- Returns:
- (undocumented)
-
charset
public HttpCharset charset()
- Specified by:
charsetin interfaceContentType.NonBinary- Specified by:
charsetin interfaceContentType.NonBinary
-
render
public <R extends Rendering> Rendering render(R r)
- Specified by:
renderin interfaceContentType- Specified by:
renderin interfaceRenderable
-
-