Package akka.http.scaladsl.marshalling
Interface Marshalling<A>
-
- All Known Implementing Classes:
Marshalling.Opaque
,Marshalling.WithFixedContentType
,Marshalling.WithOpenCharset
public interface Marshalling<A>
Describes one possible option for marshalling a given value.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Marshalling.Opaque<A>
A Marshalling to an unknown MediaType and charset.static class
Marshalling.Opaque$
static class
Marshalling.WithFixedContentType<A>
A Marshalling to a specificContentType
.static class
Marshalling.WithFixedContentType$
static class
Marshalling.WithOpenCharset<A>
A Marshalling to a specificMediaType
with a flexible charset.static class
Marshalling.WithOpenCharset$
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <B> Marshalling<B>
map(scala.Function1<A,B> f)
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.
-
-
-
Method Detail
-
map
<B> Marshalling<B> map(scala.Function1<A,B> f)
-
toOpaque
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. The given charset is used if this instance is aWithOpenCharset
marshalling.- Parameters:
charset
- (undocumented)- Returns:
- (undocumented)
-
-