Class Marshalling.Opaque<A>
java.lang.Object
org.apache.pekko.http.scaladsl.marshalling.Marshalling.Opaque<A>
- All Implemented Interfaces:
Serializable,Marshalling<A>,scala.Equals,scala.Product
- Enclosing interface:
- Marshalling<A>
public static final class Marshalling.Opaque<A>
extends Object
implements Marshalling<A>, scala.Product, Serializable
A Marshalling to an unknown MediaType and charset.
Circumvents content negotiation.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.pekko.http.scaladsl.marshalling.Marshalling
Marshalling.Opaque<A>, Marshalling.Opaque$, Marshalling.WithFixedContentType<A>, Marshalling.WithFixedContentType$, Marshalling.WithOpenCharset<A>, Marshalling.WithOpenCharset$ -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<B> Marshalling.Opaque<B>scala.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, waitMethods inherited from interface scala.Equals
canEqual, equalsMethods inherited from interface scala.Product
productArity, productElement, productElementName, productElementNames, productIterator, productPrefix
-
Constructor Details
-
Opaque
-
-
Method Details
-
marshal
-
map
- Specified by:
mapin interfaceMarshalling<A>
-
toOpaque
Description copied from interface:MarshallingConverts 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 aWithOpenCharsetmarshalling.- Specified by:
toOpaquein interfaceMarshalling<A>- Parameters:
charset- (undocumented)- Returns:
- (undocumented)
-