Modifier and Type | Method and Description |
---|---|
Coder |
_underlyingScalaCoder() |
java.util.concurrent.CompletionStage<akka.util.ByteString> |
decode(akka.util.ByteString input,
akka.stream.Materializer mat) |
HttpRequest |
decodeMessage(HttpRequest message) |
HttpResponse |
decodeMessage(HttpResponse message) |
akka.util.ByteString |
encode(akka.util.ByteString input) |
HttpRequest |
encodeMessage(HttpRequest message) |
HttpResponse |
encodeMessage(HttpResponse message) |
static Coder |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Coder[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Coder NoCoding
public static final Coder Deflate
public static final Coder Gzip
public static Coder[] values()
for (Coder c : Coder.values()) System.out.println(c);
public static Coder valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic HttpResponse encodeMessage(HttpResponse message)
public HttpRequest encodeMessage(HttpRequest message)
public akka.util.ByteString encode(akka.util.ByteString input)
public HttpResponse decodeMessage(HttpResponse message)
public HttpRequest decodeMessage(HttpRequest message)
public java.util.concurrent.CompletionStage<akka.util.ByteString> decode(akka.util.ByteString input, akka.stream.Materializer mat)
public Coder _underlyingScalaCoder()