public abstract static class MediaType.WithFixedCharset extends MediaType.NonBinary implements MediaType.WithFixedCharset
MediaType.Binary, MediaType.Compressibility, MediaType.Compressible$, MediaType.Gzipped$, MediaType.Multipart, MediaType.NonBinary, MediaType.NonMultipartWithOpenCharset, MediaType.NotCompressible$, MediaType.WithFixedCharset, MediaType.WithOpenCharset
MediaType.Binary, MediaType.Compressibility, MediaType.Multipart, MediaType.NonBinary, MediaType.WithFixedCharset, MediaType.WithOpenCharset
Constructor and Description |
---|
WithFixedCharset(java.lang.String value,
java.lang.String mainType,
java.lang.String subType,
HttpCharset charset,
scala.collection.immutable.List<java.lang.String> fileExtensions) |
Modifier and Type | Method and Description |
---|---|
HttpCharset |
charset() |
scala.collection.immutable.List<java.lang.String> |
fileExtensions() |
java.lang.String |
mainType()
The main-type of this media-type.
|
scala.collection.immutable.Map<java.lang.String,java.lang.String> |
params() |
java.lang.String |
subType()
The sub-type of this media-type.
|
ContentType.WithFixedCharset |
toContentType()
Turns the media type into a content type with a fixed, known charset.
|
java.lang.String |
value() |
MediaType.WithFixedCharset |
withParams(scala.collection.immutable.Map<java.lang.String,java.lang.String> params) |
binary, comp, withComp
applicationBinary, applicationWithFixedCharset, applicationWithOpenCharset, audio, custom, customBinary, customMultipart, customWithFixedCharset, customWithOpenCharset, equals, hashCode, image, isApplication, isAudio, isCompressible, isImage, isMessage, isMultipart, isText, isVideo, message, parse, text, textWithFixedCharset, toRange, toRange, unapply, video, withQValue
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
binary, isApplication, isAudio, isCompressible, isImage, isMessage, isMultipart, isText, isVideo, toRange, toRange
render, toString, valueBytes
withQValue
public WithFixedCharset(java.lang.String value, java.lang.String mainType, java.lang.String subType, HttpCharset charset, scala.collection.immutable.List<java.lang.String> fileExtensions)
public HttpCharset charset()
public scala.collection.immutable.List<java.lang.String> fileExtensions()
fileExtensions
in class MediaType
public java.lang.String mainType()
MediaType
public scala.collection.immutable.Map<java.lang.String,java.lang.String> params()
public java.lang.String subType()
MediaType
public ContentType.WithFixedCharset toContentType()
JAVA API
toContentType
in interface MediaType.WithFixedCharset
public java.lang.String value()
value
in interface LazyValueBytesRenderable
public MediaType.WithFixedCharset withParams(scala.collection.immutable.Map<java.lang.String,java.lang.String> params)
withParams
in class MediaType