public static final class CompositeMetadata.WellKnownMimeTypeEntry extends Object implements CompositeMetadata.Entry
CompositeMetadata.Entry
backed by a WellKnownMimeType
.Constructor and Description |
---|
WellKnownMimeTypeEntry(ByteBuf content,
WellKnownMimeType type) |
Modifier and Type | Method and Description |
---|---|
ByteBuf |
getContent()
Returns the un-decoded content of the
CompositeMetadata.Entry . |
String |
getMimeType()
Returns the MIME type of the entry, if it can be decoded.
|
WellKnownMimeType |
getType()
Returns the
WellKnownMimeType for this entry. |
public WellKnownMimeTypeEntry(ByteBuf content, WellKnownMimeType type)
public ByteBuf getContent()
CompositeMetadata.Entry
CompositeMetadata.Entry
.getContent
in interface CompositeMetadata.Entry
CompositeMetadata.Entry
public String getMimeType()
CompositeMetadata.Entry
getMimeType
in interface CompositeMetadata.Entry
null
.public WellKnownMimeType getType()
WellKnownMimeType
for this entry.WellKnownMimeType
for this entry