Class MediaType.WithFixedCharset
java.lang.Object
org.apache.pekko.http.scaladsl.model.MediaType
org.apache.pekko.http.scaladsl.model.MediaType.NonBinary
org.apache.pekko.http.scaladsl.model.MediaType.WithFixedCharset
- All Implemented Interfaces:
LazyValueBytesRenderable,Renderable,MediaType,MediaType.NonBinary,MediaType.WithFixedCharset,WithQValue<MediaRange>
- Enclosing class:
- MediaType
public abstract static class MediaType.WithFixedCharset
extends MediaType.NonBinary
implements MediaType.WithFixedCharset
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.pekko.http.scaladsl.model.MediaType
MediaType.Binary, MediaType.Compressibility, MediaType.Compressible$, MediaType.Gzipped$, MediaType.Multipart, MediaType.NonBinary, MediaType.NonMultipartWithOpenCharset, MediaType.NotCompressible$, MediaType.WithFixedCharset, MediaType.WithOpenCharsetNested classes/interfaces inherited from interface org.apache.pekko.http.javadsl.model.MediaType
MediaType.Binary, MediaType.Compressibility, MediaType.Multipart, MediaType.NonBinary, MediaType.WithFixedCharset, MediaType.WithOpenCharset -
Constructor Summary
ConstructorsConstructorDescriptionWithFixedCharset(String value, String _mainType, String _subType, HttpCharset charset, scala.collection.immutable.List<String> fileExtensions) -
Method Summary
Methods inherited from class org.apache.pekko.http.scaladsl.model.MediaType.NonBinary
binary, comp, withCompMethods inherited from class org.apache.pekko.http.scaladsl.model.MediaType
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, withQValueMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.pekko.http.impl.util.LazyValueBytesRenderable
render, toString, valueBytesMethods inherited from interface org.apache.pekko.http.javadsl.model.MediaType
binary, isApplication, isAudio, isCompressible, isImage, isMessage, isMultipart, isText, isVideo, mainType, subType, toRange, toRangeMethods inherited from interface org.apache.pekko.http.scaladsl.model.WithQValue
withQValue
-
Constructor Details
-
WithFixedCharset
public WithFixedCharset(String value, String _mainType, String _subType, HttpCharset charset, scala.collection.immutable.List<String> fileExtensions)
-
-
Method Details
-
charset
-
fileExtensions
- Specified by:
fileExtensionsin classMediaType
-
params
-
toContentType
Turns the media type into a content type with a fixed, known charset.JAVA API
- Specified by:
toContentTypein interfaceMediaType.WithFixedCharset- Returns:
- (undocumented)
-
value
Description copied from interface:MediaTypeReturns the string representation of this MediaType- Specified by:
valuein interfaceLazyValueBytesRenderable- Specified by:
valuein interfaceMediaType- Returns:
- (undocumented)
-
withParams
- Specified by:
withParamsin classMediaType
-