Package co.arago.hiro.client.model
Class VersionResponse
- java.lang.Object
-
- co.arago.hiro.client.model.HiroJsonMap
-
- co.arago.hiro.client.model.HiroMessage
-
- co.arago.hiro.client.model.VersionResponse
-
- All Implemented Interfaces:
JsonMessage,ToMap,java.io.Serializable
public class VersionResponse extends HiroMessage
The response to a version GET request against "/api/version".{ "[name of first api]": { "endpoint": "...", "version": "...", ... }, "[name of second api]": { ... }, ... }- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVersionResponse.VersionEntry
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<java.lang.String,VersionResponse.VersionEntry>versionEntryMap-
Fields inherited from class co.arago.hiro.client.model.HiroMessage
hiroError
-
Fields inherited from class co.arago.hiro.client.model.HiroJsonMap
fieldsMap
-
-
Constructor Summary
Constructors Constructor Description VersionResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,?>getMap()Returns the map of fields that have NOT been assigned to fields of derived children directly.VersionResponse.VersionEntrygetVersionEntryOf(java.lang.String apiName)voidsetField(java.lang.String key, java.lang.Object value)Jackson Setter that transforms incoming maps into VersionEntries.-
Methods inherited from class co.arago.hiro.client.model.HiroMessage
catchError, getError, isError
-
Methods inherited from class co.arago.hiro.client.model.HiroJsonMap
addFields, getField, getUnmappedField, setFields, toMap
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface co.arago.hiro.client.model.JsonMessage
toJsonString, toJsonStringNoNull, toPrettyJsonString, toPrettyJsonStringNoNull
-
-
-
-
Field Detail
-
versionEntryMap
protected final java.util.Map<java.lang.String,VersionResponse.VersionEntry> versionEntryMap
-
-
Method Detail
-
getMap
public java.util.Map<java.lang.String,?> getMap()
Description copied from class:HiroJsonMapReturns the map of fields that have NOT been assigned to fields of derived children directly.- Overrides:
getMapin classHiroJsonMap- Returns:
- A merged map of
versionEntryMapandHiroJsonMap.fieldsMap. This is a shallow copy of both.
-
setField
public void setField(java.lang.String key, java.lang.Object value)Jackson Setter that transforms incoming maps into VersionEntries.- Overrides:
setFieldin classHiroMessage- Parameters:
key- Incoming JSON keyvalue- Incoming JSON value
-
getVersionEntryOf
public VersionResponse.VersionEntry getVersionEntryOf(java.lang.String apiName) throws HiroException
- Parameters:
apiName- Name of the API- Returns:
- The
VersionResponse.VersionEntryof that API. - Throws:
HiroException- If no API with this name can be found.
-
-