JavaMetadataImpl

org.apache.pekko.grpc.internal.JavaMetadataImpl
@InternalApi
class JavaMetadataImpl(delegate: Metadata) extends Metadata

This class wraps a scaladsl.Metadata instance with the javadsl.Metadata interface.

Value parameters

delegate

The underlying Scala metadata instance.

Attributes

Source
MetadataImpl.scala
Graph
Supertypes
trait Metadata
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def asList(): List[Pair[String, MetadataEntry]]

Attributes

Returns

A list of (key, entry) pairs. Pairs with the same key will be ordered based on when they were added or received.

Definition Classes
Source
MetadataImpl.scala
override def asMap(): Map[String, List[MetadataEntry]]

Attributes

Returns

A map from keys to a list of metadata entries. Entries with the same key will be ordered based on when they were added or received.

Definition Classes
Source
MetadataImpl.scala
override def asScala: Metadata

Attributes

Returns

Returns the scaladsl.Metadata interface for this instance.

Definition Classes
Source
MetadataImpl.scala
override def getBinary(key: String): Optional[ByteString]

Attributes

Returns

The binary header value for key if one exists, if the same key has multiple values the last occurrence that is a text key is used.

Definition Classes
Source
MetadataImpl.scala
override def getText(key: String): Optional[String]

Attributes

Returns

The text header value for key if one exists, if the same key has multiple values the last occurrence that is a text key is used.

Definition Classes
Source
MetadataImpl.scala
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
Source
MetadataImpl.scala