Java Code Examples for io.rsocket.metadata.WellKnownMimeType#getIdentifier()
The following examples show how to use
io.rsocket.metadata.WellKnownMimeType#getIdentifier() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MessageMimeTypeMetadata.java From alibaba-rsocket-broker with Apache License 2.0 | 5 votes |
public MessageMimeTypeMetadata(String mimeType) { this.mimeType = mimeType; WellKnownMimeType wellKnownMimeType = WellKnownMimeType.fromString(mimeType); if (wellKnownMimeType != null) { this.mimeTypeId = wellKnownMimeType.getIdentifier(); } }
Example 2
Source File: MessageMimeTypeMetadata.java From alibaba-rsocket-broker with Apache License 2.0 | 4 votes |
public MessageMimeTypeMetadata(WellKnownMimeType knownMimeType) { this.mimeTypeId = knownMimeType.getIdentifier(); this.mimeType = knownMimeType.getString(); }