c

akka.grpc.internal

JavaMetadataImpl

class JavaMetadataImpl extends Metadata

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

Annotations
@InternalApi()
Source
MetadataImpl.scala
Linear Supertypes
Metadata, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JavaMetadataImpl
  2. Metadata
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new JavaMetadataImpl(delegate: Metadata)

    delegate

    The underlying Scala metadata instance.

Value Members

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

    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
    JavaMetadataImplMetadata
  2. def asMap(): Map[String, List[MetadataEntry]]

    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
    JavaMetadataImplMetadata
  3. def asScala: Metadata

    returns

    Returns the scaladsl.Metadata interface for this instance.

    Definition Classes
    JavaMetadataImplMetadata
  4. def getBinary(key: String): Optional[ByteString]

    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
    JavaMetadataImplMetadata
  5. def getText(key: String): Optional[String]

    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
    JavaMetadataImplMetadata
  6. def toString(): String
    Definition Classes
    JavaMetadataImpl → AnyRef → Any