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.WithOpenCharsetMediaType.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()
Returns the string representation of this MediaType
|
MediaType.WithFixedCharset |
withParams(scala.collection.immutable.Map<java.lang.String,java.lang.String> params) |
binary, comp, withCompapplicationBinary, 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, withQValueclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbinary, isApplication, isAudio, isCompressible, isImage, isMessage, isMultipart, isText, isVideo, mainType, subType, toRange, toRangerender, toString, valueByteswithQValuepublic 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 MediaTypepublic scala.collection.immutable.Map<java.lang.String,java.lang.String> params()
public ContentType.WithFixedCharset toContentType()
JAVA API
toContentType in interface MediaType.WithFixedCharsetpublic java.lang.String value()
MediaTypevalue in interface LazyValueBytesRenderablevalue in interface MediaTypepublic MediaType.WithFixedCharset withParams(scala.collection.immutable.Map<java.lang.String,java.lang.String> params)
withParams in class MediaType