Package | Description |
---|---|
io.grpc |
The gRPC core public API.
|
io.grpc.internal |
Interfaces and implementations that are internal to gRPC.
|
Modifier and Type | Field and Description |
---|---|
static Metadata.Key<Status> |
InternalStatus.CODE_KEY
Key to bind status code to trailing metadata.
|
static Metadata.Key<String> |
InternalStatus.MESSAGE_KEY
Key to bind status message to trailing metadata.
|
Modifier and Type | Method and Description |
---|---|
static <T> Metadata.Key<T> |
InternalMetadata.keyOf(String name,
InternalMetadata.TrustedAsciiMarshaller<T> marshaller) |
static <T> Metadata.Key<T> |
InternalMetadata.keyOf(String name,
Metadata.AsciiMarshaller<T> marshaller) |
static <T> Metadata.Key<T> |
Metadata.Key.of(String name,
Metadata.AsciiMarshaller<T> marshaller)
Creates a key for an ASCII header.
|
static <T> Metadata.Key<T> |
Metadata.Key.of(String name,
Metadata.BinaryMarshaller<T> marshaller)
Creates a key for a binary header.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Metadata.containsKey(Metadata.Key<?> key)
Returns true if a value is defined for the given key.
|
<T> void |
Metadata.discardAll(Metadata.Key<T> key)
Remove all values for the given key without returning them.
|
<T> T |
Metadata.get(Metadata.Key<T> key)
Returns the last metadata entry added with the name 'name' parsed as T.
|
<T> Iterable<T> |
Metadata.getAll(Metadata.Key<T> key)
Returns all the metadata entries named 'name', in the order they were received, parsed as T, or
null if there are none.
|
<T> void |
Metadata.put(Metadata.Key<T> key,
T value)
Adds the
key, value pair. |
<T> boolean |
Metadata.remove(Metadata.Key<T> key,
T value)
Removes the first occurrence of
value for key . |
<T> Iterable<T> |
Metadata.removeAll(Metadata.Key<T> key)
Remove all values for the given key.
|
Modifier and Type | Method and Description |
---|---|
void |
Metadata.merge(Metadata other,
Set<Metadata.Key<?>> keys)
Merge values from the given set of keys into this set of metadata.
|
Modifier and Type | Field and Description |
---|---|
static Metadata.Key<byte[]> |
GrpcUtil.CONTENT_ACCEPT_ENCODING_KEY
Metadata.Key for the stream's accepted content encoding header. |
static Metadata.Key<String> |
GrpcUtil.CONTENT_ENCODING_KEY
Metadata.Key for the stream's content encoding header. |
static Metadata.Key<String> |
GrpcUtil.CONTENT_TYPE_KEY
Metadata.Key for the Content-Type request/response header. |
static Metadata.Key<byte[]> |
GrpcUtil.MESSAGE_ACCEPT_ENCODING_KEY
Metadata.Key for the accepted message encodings header. |
static Metadata.Key<String> |
GrpcUtil.MESSAGE_ENCODING_KEY
Metadata.Key for the message encoding header. |
static Metadata.Key<String> |
GrpcUtil.TE_HEADER
Metadata.Key for the Transfer encoding. |
static Metadata.Key<Long> |
GrpcUtil.TIMEOUT_KEY
Metadata.Key for the timeout header. |
static Metadata.Key<String> |
GrpcUtil.USER_AGENT_KEY
Metadata.Key for the Content-Type request/response header. |
Copyright © 2019. All rights reserved.