Package co.arago.hiro.client.model
Interface JsonMessage
-
- All Superinterfaces:
java.io.Serializable
- All Known Subinterfaces:
ActionHandlerCodeMessage,ActionHandlerIdMessage,ActionHandlerMessage
- All Known Implementing Classes:
AbstractActionHandlerIdMessage,AbstractRemoteAuthTokenAPIHandler.TokenInfo,AbstractTokenRequest,ActionHandlerAck,ActionHandlerConfigChanged,ActionHandlerError,ActionHandlerNack,ActionHandlerResult,ActionHandlerSubmit,ClearEventsMessage,CodeFlowTokenRequest,DecodedToken,DecodedToken.Data,DefaultHiroItemListMessage,EventRegisterMessage,EventsFilter,EventsMessage,EventUnregisterMessage,HiroError,HiroError.HiroErrorEntry,HiroItemListMessage,HiroJsonMap,HiroMessage,HiroTimeseriesListMessage,HiroTimeseriesListMessage.TimeseriesEntry,HiroVertexListMessage,HiroVertexMessage,MetaValueList,MetaValueList.MetaValueField,PasswordTokenRequest,SubscribeScopeMessage,TokenRefreshMessage,TokenRefreshRequest,TokenResponse,TokenRevokeRequest,VersionResponse,VersionResponse.VersionEntry
public interface JsonMessage extends java.io.SerializableThis interface defines a default method to create a JSON String from this object.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default java.lang.StringtoJsonString()default java.lang.StringtoJsonStringNoNull()default java.lang.StringtoPrettyJsonString()default java.lang.StringtoPrettyJsonStringNoNull()
-
-
-
Method Detail
-
toJsonString
default java.lang.String toJsonString() throws com.fasterxml.jackson.core.JsonProcessingException- Returns:
- JSON representation of this object.
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- When no JSON string can be created from this object.
-
toJsonStringNoNull
default java.lang.String toJsonStringNoNull() throws com.fasterxml.jackson.core.JsonProcessingException- Returns:
- JSON representation of this object without null values.
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- When no JSON string can be created from this object.
-
toPrettyJsonString
default java.lang.String toPrettyJsonString() throws com.fasterxml.jackson.core.JsonProcessingException- Returns:
- Pretty formatted JSON representation of this object.
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- When no JSON string can be created from this object.
-
toPrettyJsonStringNoNull
default java.lang.String toPrettyJsonStringNoNull() throws com.fasterxml.jackson.core.JsonProcessingException- Returns:
- Pretty formatted JSON representation of this object without null values.
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- When no JSON string can be created from this object.
-
-