Top Description Fields Constructors Methods
io.rsocket.metadata

public Class TaggingMetadata

extends Object
implements Iterable<String>, Entry
Class Inheritance
All Implemented Interfaces
io.rsocket.metadata.CompositeMetadata.Entry, java.lang.Iterable
Known Direct Subclasses
io.rsocket.metadata.RoutingMetadata
Imports
io.netty.buffer.ByteBuf, java.nio.charset.StandardCharsets, java.util.Iterator, .Spliterator, .Spliterators, java.util.stream.Stream, .StreamSupport

Tagging metadata from https://github.com/rsocket/rsocket/blob/master/Extensions/Routing.md
Author
linux_china

Field Summary

Modifier and TypeField and Description
private ByteBuf
private String
private static int
TAG_LENGTH_MAX

Tag max length in bytes

Constructor Summary

AccessConstructor and Description
public
TaggingMetadata(String mimeType, ByteBuf content)

Method Summary

Modifier and TypeMethod and Description
public ByteBuf
getContent()

Implements io.rsocket.metadata.CompositeMetadata.Entry.getContent.

Returns the un-decoded content of the Entry.
public String
getMimeType()

Implements io.rsocket.metadata.CompositeMetadata.Entry.getMimeType.

Returns the MIME type of the entry, if it can be decoded.
public Iterator<String>
iterator()

Implements java.lang.Iterable.iterator.

Returns an iterator over elements of type T.
public Stream<String>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

contentback to summary
private ByteBuf content
mimeTypeback to summary
private String mimeType
TAG_LENGTH_MAXback to summary
private static int TAG_LENGTH_MAX

Tag max length in bytes

Constructor Detail

TaggingMetadataback to summary
public TaggingMetadata(String mimeType, ByteBuf content)

Method Detail

getContentback to summary
public ByteBuf getContent()

Implements io.rsocket.metadata.CompositeMetadata.Entry.getContent.

Doc from io.rsocket.metadata.CompositeMetadata.Entry.getContent.

Returns the un-decoded content of the Entry.

Returns:ByteBuf

the un-decoded content of the Entry

Annotations
@Override
getMimeTypeback to summary
public String getMimeType()

Implements io.rsocket.metadata.CompositeMetadata.Entry.getMimeType.

Doc from io.rsocket.metadata.CompositeMetadata.Entry.getMimeType.

Returns the MIME type of the entry, if it can be decoded.

Returns:String

the MIME type of the entry, if it can be decoded, otherwise null.

Annotations
@Override
iteratorback to summary
public Iterator<String> iterator()

Implements java.lang.Iterable.iterator.

Doc from java.lang.Iterable.iterator.

Returns an iterator over elements of type T.

Returns:Iterator<String>

an Iterator.

Annotations
@Override
streamback to summary
public Stream<String> stream()