Package akka.http.scaladsl.model
Class MediaType.Binary
- java.lang.Object
-
- akka.http.scaladsl.model.MediaType
-
- akka.http.scaladsl.model.MediaType.Binary
-
- All Implemented Interfaces:
LazyValueBytesRenderable
,Renderable
,MediaType
,MediaType.Binary
,WithQValue<MediaRange>
- Direct Known Subclasses:
MediaType.Multipart
- Enclosing class:
- MediaType
public abstract static class MediaType.Binary extends MediaType implements MediaType.Binary
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class akka.http.scaladsl.model.MediaType
MediaType.Binary, MediaType.Compressibility, MediaType.Compressible$, MediaType.Gzipped$, MediaType.Multipart, MediaType.NonBinary, MediaType.NonMultipartWithOpenCharset, MediaType.NotCompressible$, MediaType.WithFixedCharset, MediaType.WithOpenCharset
-
Nested classes/interfaces inherited from interface akka.http.javadsl.model.MediaType
MediaType.Binary, MediaType.Compressibility, MediaType.Multipart, MediaType.NonBinary, MediaType.WithFixedCharset, MediaType.WithOpenCharset
-
-
Constructor Summary
Constructors Constructor Description Binary(java.lang.String value, java.lang.String _mainType, java.lang.String _subType, MediaType.Compressibility comp, scala.collection.immutable.List<java.lang.String> fileExtensions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
binary()
True when this media-type is not character-based.MediaType.Compressibility
comp()
scala.collection.immutable.List<java.lang.String>
fileExtensions()
scala.collection.immutable.Map<java.lang.String,java.lang.String>
params()
ContentType.Binary
toContentType()
JAVA APIjava.lang.String
value()
MediaType.Binary
withComp(MediaType.Compressibility comp)
MediaType.Binary
withParams(scala.collection.immutable.Map<java.lang.String,java.lang.String> params)
-
Methods inherited from class akka.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, withQValue
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface akka.http.impl.util.LazyValueBytesRenderable
render, toString, valueBytes
-
Methods inherited from interface akka.http.javadsl.model.MediaType
isApplication, isAudio, isCompressible, isImage, isMessage, isMultipart, isText, isVideo, mainType, subType, toRange, toRange
-
Methods inherited from interface akka.http.scaladsl.model.WithQValue
withQValue
-
-
-
-
Constructor Detail
-
Binary
public Binary(java.lang.String value, java.lang.String _mainType, java.lang.String _subType, MediaType.Compressibility comp, scala.collection.immutable.List<java.lang.String> fileExtensions)
-
-
Method Detail
-
binary
public boolean binary()
Description copied from interface:MediaType
True when this media-type is not character-based.
-
comp
public MediaType.Compressibility comp()
-
fileExtensions
public scala.collection.immutable.List<java.lang.String> fileExtensions()
- Specified by:
fileExtensions
in classMediaType
-
params
public scala.collection.immutable.Map<java.lang.String,java.lang.String> params()
-
toContentType
public ContentType.Binary toContentType()
JAVA API- Specified by:
toContentType
in interfaceMediaType.Binary
- Returns:
- (undocumented)
-
value
public java.lang.String value()
- Specified by:
value
in interfaceLazyValueBytesRenderable
-
withComp
public MediaType.Binary withComp(MediaType.Compressibility comp)
-
withParams
public MediaType.Binary withParams(scala.collection.immutable.Map<java.lang.String,java.lang.String> params)
- Specified by:
withParams
in classMediaType
-
-