Package akka.http.scaladsl.marshalling
Class Marshalling.WithOpenCharset<A>
- java.lang.Object
-
- akka.http.scaladsl.marshalling.Marshalling.WithOpenCharset<A>
-
- All Implemented Interfaces:
Marshalling<A>
,java.io.Serializable
,scala.Equals
,scala.Product
- Enclosing interface:
- Marshalling<A>
public static final class Marshalling.WithOpenCharset<A> extends java.lang.Object implements Marshalling<A>, scala.Product, java.io.Serializable
A Marshalling to a specificMediaType
with a flexible charset.- See Also:
- Serialized Form
-
-
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
Constructors Constructor Description WithOpenCharset(MediaType.WithOpenCharset mediaType, scala.Function1<HttpCharset,A> marshal)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <B> Marshalling.WithOpenCharset<B>
map(scala.Function1<A,B> f)
scala.Function1<HttpCharset,A>
marshal()
MediaType.WithOpenCharset
mediaType()
Marshalling<A>
toOpaque(HttpCharset charset)
Converts this marshalling to an opaque marshalling, i.e. a marshalling result that does not take part in content type negotiation.
-
-
-
Constructor Detail
-
WithOpenCharset
public WithOpenCharset(MediaType.WithOpenCharset mediaType, scala.Function1<HttpCharset,A> marshal)
-
-
Method Detail
-
mediaType
public MediaType.WithOpenCharset mediaType()
-
marshal
public scala.Function1<HttpCharset,A> marshal()
-
map
public <B> Marshalling.WithOpenCharset<B> map(scala.Function1<A,B> f)
- Specified by:
map
in interfaceMarshalling<A>
-
toOpaque
public Marshalling<A> toOpaque(HttpCharset charset)
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)
-
-