class JavaMetadataImpl extends Metadata
This class wraps a scaladsl.Metadata instance with the javadsl.Metadata interface.
- Annotations
- @InternalApi()
- Source
- MetadataImpl.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- JavaMetadataImpl
- Metadata
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
Value Members
-
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
- JavaMetadataImpl → Metadata
-
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
- JavaMetadataImpl → Metadata
-
def
asScala: Metadata
- returns
Returns the scaladsl.Metadata interface for this instance.
- Definition Classes
- JavaMetadataImpl → Metadata
-
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
- JavaMetadataImpl → Metadata
-
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
- JavaMetadataImpl → Metadata
-
def
toString(): String
- Definition Classes
- JavaMetadataImpl → AnyRef → Any