public class TaggingMetadataFlyweight extends Object
ByteBuf. This is intended for low-level efficient manipulation of such buffers. See TaggingMetadata for an Iterator-like approach to decoding entries.| Constructor and Description |
|---|
TaggingMetadataFlyweight() |
| Modifier and Type | Method and Description |
|---|---|
static RoutingMetadata |
createRoutingMetadata(ByteBufAllocator allocator,
Collection<String> tags)
create routing metadata
|
static ByteBuf |
createTaggingContent(ByteBufAllocator allocator,
Collection<String> tags)
create tagging content
|
static TaggingMetadata |
createTaggingMetadata(ByteBufAllocator allocator,
String knownMimeType,
Collection<String> tags)
create tagging metadata
|
static TaggingMetadata |
createTaggingMetadata(CompositeMetadata.Entry entry)
create tagging metadata from composite metadata entry
|
public static RoutingMetadata createRoutingMetadata(ByteBufAllocator allocator, Collection<String> tags)
allocator - the ByteBufAllocator to use to create intermediate buffers as needed.tags - tag valuespublic static TaggingMetadata createTaggingMetadata(CompositeMetadata.Entry entry)
entry - composite metadata entrypublic static TaggingMetadata createTaggingMetadata(ByteBufAllocator allocator, String knownMimeType, Collection<String> tags)
allocator - the ByteBufAllocator to use to create intermediate buffers as needed.knownMimeType - the WellKnownMimeType to encode.tags - tag valuespublic static ByteBuf createTaggingContent(ByteBufAllocator allocator, Collection<String> tags)
allocator - the ByteBufAllocator to use to create intermediate buffers as needed.tags - tag values