c

akka.grpc.internal

JavaMetadataImpl

class JavaMetadataImpl extends Metadata with MetadataStatus

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

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

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. val delegate: Metadata
  5. 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
  6. def getCode(): Int
    Definition Classes
    JavaMetadataImplMetadataStatus
  7. def getDetails(): List[Any]
    Definition Classes
    JavaMetadataImplMetadataStatus
  8. def getMessage(): String
    Definition Classes
    JavaMetadataImplMetadataStatus
  9. def getParsedDetails[K <: GeneratedMessageV3](messageType: K): List[K]
    Definition Classes
    JavaMetadataImplMetadataStatus
  10. def getParsedDetails[K <: GeneratedMessage](companion: GeneratedMessageCompanion[K]): List[K]
    Definition Classes
    JavaMetadataImplMetadataStatus
  11. def getStatus(): Status
    Definition Classes
    JavaMetadataImplMetadataStatus
  12. 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
  13. def toString(): String
    Definition Classes
    JavaMetadataImpl → AnyRef → Any