Class Marshalling.WithOpenCharset<A>
java.lang.Object
org.apache.pekko.http.scaladsl.marshalling.Marshalling.WithOpenCharset<A>
- All Implemented Interfaces:
Serializable,Marshalling<A>,scala.Equals,scala.Product
- Enclosing interface:
- Marshalling<A>
public static final class Marshalling.WithOpenCharset<A>
extends Object
implements Marshalling<A>, scala.Product, Serializable
A Marshalling to a specific
pekko.http.scaladsl.model.MediaType with a flexible charset.- 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
ConstructorsConstructorDescriptionWithOpenCharset(MediaType.WithOpenCharset mediaType, scala.Function1<HttpCharset, A> marshal) -
Method Summary
Modifier and TypeMethodDescription<B> Marshalling.WithOpenCharset<B>scala.Function1<HttpCharset,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
-
WithOpenCharset
-
-
Method Details
-
mediaType
-
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)
-