Package akka.http.scaladsl.marshalling
Class Marshalling.WithFixedContentType<A>
java.lang.Object
akka.http.scaladsl.marshalling.Marshalling.WithFixedContentType<A>
- All Implemented Interfaces:
Marshalling<A>
,Serializable
,scala.Equals
,scala.Product
- Enclosing interface:
- Marshalling<A>
public static final class Marshalling.WithFixedContentType<A>
extends Object
implements Marshalling<A>, scala.Product, Serializable
A Marshalling to a specific
ContentType
.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface akka.http.scaladsl.marshalling.Marshalling
Marshalling.Opaque<A>, Marshalling.Opaque$, Marshalling.WithFixedContentType<A>, Marshalling.WithFixedContentType$, Marshalling.WithOpenCharset<A>, Marshalling.WithOpenCharset$
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionscala.Function0<A>
marshal()
toOpaque
(HttpCharset charset) Converts this marshalling to an opaque marshalling, i.e. a marshalling result that does not take part in content type negotiation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface scala.Equals
canEqual, equals
Methods inherited from interface scala.Product
productArity, productElement, productElementName, productElementNames, productIterator, productPrefix
-
Constructor Details
-
WithFixedContentType
-
-
Method Details
-
contentType
-
marshal
-
map
- Specified by:
map
in interfaceMarshalling<A>
-
toOpaque
Description copied from interface:Marshalling
Converts this marshalling to an opaque marshalling, i.e. a marshalling result that does not take part in content type negotiation. The given charset is used if this instance is aWithOpenCharset
marshalling.- Specified by:
toOpaque
in interfaceMarshalling<A>
- Parameters:
charset
- (undocumented)- Returns:
- (undocumented)
-