Metadata accessor. This is intended for use by io.grpc.internal, and the
specifically supported transport packages. If you *really* think you need to use this, contact
the gRPC team first.
| Modifier and Type | Class and Description |
|---|---|
| public static interface |
| Modifier and Type | Field and Description |
|---|---|
| public static final BaseEncoding | BASE64_ENCODING_OMIT_PADDING
An instance of base64 encoder that omits padding. |
| public static final Charset | US_ASCII
Copy of StandardCharsets, which is only available on Java 1.7 and above. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static int | |
| public static <T> Metadata. | |
| public static <T> Metadata. | |
| public static Metadata | |
| public static Metadata | |
| public static Metadata | newMetadataWithParsedValues(int
The number of names used. usedNames, Object[] An array of interleaved names and values,
with each name (at even indices) represented as a byte array,
and each value (at odd indices) represented as either a byte
array or an object returned by the namesAndValues)parsedValue
method.Creates a new |
| public static <T> Object | Returns: an object holding the pre-parsed value for this key.The marshaller,Metadata. associated with this value.The value to store. value)Creates a holder for a pre-parsed value read by the transport. |
| public static byte[][] | |
| public static Object[] |
| BASE64_ENCODING_OMIT_PADDING | back to summary |
|---|---|
| public static final BaseEncoding BASE64_ENCODING_OMIT_PADDING An instance of base64 encoder that omits padding. | |
| US_ASCII | back to summary |
|---|---|
| public static final Charset US_ASCII Copy of StandardCharsets, which is only available on Java 1.7 and above. | |
| InternalMetadata | back to summary |
|---|---|
| public InternalMetadata() | |
| headerCount | back to summary |
|---|---|
public static int headerCount(Metadata md)
| |
| keyOf | back to summary |
|---|---|
public static <T> Metadata.
| |
| keyOf | back to summary |
|---|---|
public static <T> Metadata.
| |
| newMetadata | back to summary |
|---|---|
public static Metadata newMetadata(byte[]... binaryValues)
| |
| newMetadata | back to summary |
|---|---|
public static Metadata newMetadata(int usedNames, byte[]... binaryValues)
| |
| newMetadataWithParsedValues | back to summary |
|---|---|
| public static Metadata newMetadataWithParsedValues(int usedNames, Object[] namesAndValues) Creates a new
| |
| parsedValue | back to summary |
|---|---|
| public static <T> Object parsedValue(Metadata. Creates a holder for a pre-parsed value read by the transport.
| |
| serialize | back to summary |
|---|---|
public static byte[][] serialize(Metadata md)
| |
| serializePartial | back to summary |
|---|---|
| public static Object[] serializePartial(Metadata md) Serializes all metadata entries, leaving some values as Produces serialized names and values interleaved. result[i*2] are names, while result[i*2+1] are values. Names are byte arrays as described according to the
| |
Extended here to break the dependency.