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() |
scala.collection.immutable.Map<java.lang.String,java.lang.String> |
params() |
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, font, hashCode, image, isApplication, isAudio, isCompressible, isImage, isMessage, isMultipart, isText, isVideo, mainType, message, parse, subType, 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, mainType, subType, 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 scala.collection.immutable.Map<java.lang.String,java.lang.String> params()
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