public class ApiDeserializer extends Object
| Constructor and Description |
|---|
ApiDeserializer() |
| Modifier and Type | Method and Description |
|---|---|
<T extends BasicMessage> |
deserialize(String nameAndJson) |
static String |
toHawkularFormat(BasicMessage msg)
Returns a string that encodes the given object as a JSON message but then
prefixes that JSON with additional information that a Hawkular client will
need to be able to deserialize the JSON.
|
public static String toHawkularFormat(BasicMessage msg)
deserialize(String).msg - the message object that will be serialized into JSONpublic <T extends BasicMessage> T deserialize(String nameAndJson)
Copyright © 2015 Red Hat, Inc.. All rights reserved.