Package akka.http.scaladsl.model
Class ContentType.WithMissingCharset
- java.lang.Object
-
- akka.http.scaladsl.model.ContentType.WithMissingCharset
-
- All Implemented Interfaces:
Renderable
,ToStringRenderable
,ValueRenderable
,ContentType
,ContentType.WithMissingCharset
,ContentType
,java.io.Serializable
,scala.Equals
,scala.Product
- Enclosing interface:
- ContentType
public static final class ContentType.WithMissingCharset extends java.lang.Object implements ContentType.WithMissingCharset, ContentType, scala.Product, java.io.Serializable
Represents a content-type which we know to contain text, and would be better off having a charset, but the client or server hasn't provided that. For example, "text/xml" without a charset parameter.- 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 WithMissingCharset(MediaType.WithOpenCharset mediaType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
binary()
True if this ContentType is non-textual.scala.None$
charsetOption()
MediaType.WithOpenCharset
mediaType()
The media-type of this content-type.-
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, render, toString
-
Methods inherited from interface scala.Product
productArity, productElement, productElementName, productElementNames, productIterator, productPrefix
-
Methods inherited from interface akka.http.impl.util.ValueRenderable
value
-
-
-
-
Constructor Detail
-
WithMissingCharset
public WithMissingCharset(MediaType.WithOpenCharset mediaType)
-
-
Method Detail
-
mediaType
public MediaType.WithOpenCharset mediaType()
Description copied from interface:ContentType
The media-type of this content-type.- Specified by:
mediaType
in interfaceContentType
- Specified by:
mediaType
in interfaceContentType
- Returns:
- (undocumented)
-
binary
public boolean binary()
Description copied from interface:ContentType
True if this ContentType is non-textual.- Specified by:
binary
in interfaceContentType
- Returns:
- (undocumented)
-
charsetOption
public scala.None$ charsetOption()
- Specified by:
charsetOption
in interfaceContentType
-
-