MessageFormat

public enum MessageFormat

Message formats supported by the Spine web API.

Entries

Link copied to clipboard

The JSON message stringification format.

Link copied to clipboard

The Base64 bytes message stringification format.

Functions

Link copied to clipboard
public static Optional<MessageFormat> formatOf(HttpServletRequest request)
Finds the required format for the given request.
Link copied to clipboard
public Optional<T> parse<T extends Message>(String rawMessage, Class<T> type)
Parses a given string representation into a message of the given type.
Link copied to clipboard
public static MessageFormat valueOf(String name)

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard
public static Array<MessageFormat> values()

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.