java.lang.Object
org.refcodes.struct.PathMapBuilderImpl<String>
org.refcodes.struct.CanonicalMapBuilderImpl
org.refcodes.web.HttpBodyMap
- All Implemented Interfaces:
Serializable
,Map<String,
,String> org.refcodes.mixin.AnnotatorAccessor
,org.refcodes.mixin.Clearable
,org.refcodes.mixin.DelimiterAccessor
,org.refcodes.mixin.Dumpable
,org.refcodes.mixin.EmptyAccessor
,org.refcodes.mixin.TypeAccessor<String>
,org.refcodes.struct.CanonicalMap
,org.refcodes.struct.CanonicalMap.CanonicalMapBuilder
,org.refcodes.struct.CanonicalMap.MutableCanonicalMap
,org.refcodes.struct.Containable
,org.refcodes.struct.InterOperableMap<String>
,org.refcodes.struct.InterOperableMap.InterOperableMapBuilder<String>
,org.refcodes.struct.InterOperableMap.MutableInterOperableMap<String>
,org.refcodes.struct.Keys<String,
,String> org.refcodes.struct.Keys.MutableKeys<String,
,String> org.refcodes.struct.Keys.MutableValues<String,
,String> org.refcodes.struct.PathMap<String>
,org.refcodes.struct.PathMap.MutablePathMap<String>
,org.refcodes.struct.PathMap.PathMapBuilder<String>
,org.refcodes.struct.Table<String,
,String> org.refcodes.struct.Table.TableDictionary<String,
,String> org.refcodes.struct.Table.TableDictionary.TableBuilder<String,
String, org.refcodes.struct.PathMap.PathMapBuilder<String>>
public class HttpBodyMap
extends org.refcodes.struct.CanonicalMapBuilderImpl
The
HttpBodyMap
type is a "dynamic" type in terms of it's structure
being represented by paths'. When a data structure is parsed e.g. from JSON
or XML, then the data structure's internal structure and values are reflected
by according paths's and values in the HttpBodyMap
. The
HttpBodyMap
is actually a https://www.metacodes.proization of the
PathMap
using String
objects as values and a slash ("/") as
path delimiter. Using the HttpBodyMap
it is convenient to navigate or
address elements from unknown or dynamic data structures. The other way round
the HttpBodyMap
may be used to construct dynamic data types by adding
the according paths's and values for marshaling into e.g. JSON or XML. Think
of an HttpBodyMap
as a flattened JSON or XML structure. The
HttpClientResponse
, HttpServerRequest
,
HttpServerResponse
as well as the HttpClientResponse
implementations directly support the HttpBodyMap
, given that the
MediaTypeFactory
being used supports marshaling and unmarshaling from
and to nested Map
instances. The HttpBodyMap
acts as a view
of the nested Map
structures, which are somehow inconvenient to
navigate through. The HttpClientRequest.setRequest(Object)
implementation supports the HttpBodyMap
to marshal an
HttpBodyMap
into an HTTP Request-Body. The
HttpClientResponse.getResponse(Class)
implementation supports the
HttpBodyMap
to unmarshal an HTTP Response-Body into an
HttpBodyMap
. The HttpServerRequest.getRequest(Class)
implementation supports the HttpBodyMap
to unmarshal an HTTP
Request-Body into an HttpBodyMap
. The
HttpServerResponse.setResponse(Object)
implementation supports the
HttpBodyMap
to marshal an HttpBodyMap
into an HTTP
Request-Body.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.mixin.AnnotatorAccessor
org.refcodes.mixin.AnnotatorAccessor.AnnotatorBuilder<B extends org.refcodes.mixin.AnnotatorAccessor.AnnotatorBuilder<B>>, org.refcodes.mixin.AnnotatorAccessor.AnnotatorMutator, org.refcodes.mixin.AnnotatorAccessor.AnnotatorProperty
Nested classes/interfaces inherited from interface org.refcodes.struct.CanonicalMap
org.refcodes.struct.CanonicalMap.CanonicalMapBuilder, org.refcodes.struct.CanonicalMap.MutableCanonicalMap
Nested classes/interfaces inherited from interface org.refcodes.mixin.DelimiterAccessor
org.refcodes.mixin.DelimiterAccessor.DelimiterBuilder<B extends org.refcodes.mixin.DelimiterAccessor.DelimiterBuilder<B>>, org.refcodes.mixin.DelimiterAccessor.DelimiterMutator, org.refcodes.mixin.DelimiterAccessor.DelimiterProperty
Nested classes/interfaces inherited from interface org.refcodes.mixin.EmptyAccessor
org.refcodes.mixin.EmptyAccessor.EmptyMutator, org.refcodes.mixin.EmptyAccessor.EmptyProperty
Nested classes/interfaces inherited from interface org.refcodes.struct.InterOperableMap
org.refcodes.struct.InterOperableMap.InterOperableMapBuilder<T extends Object>, org.refcodes.struct.InterOperableMap.MutableInterOperableMap<T extends Object>
Nested classes/interfaces inherited from interface org.refcodes.struct.Keys
org.refcodes.struct.Keys.MutableKeys<K extends Object,
V extends Object>, org.refcodes.struct.Keys.MutableValues<K extends Object, V extends Object> Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K extends Object,
V extends Object> Nested classes/interfaces inherited from interface org.refcodes.struct.PathMap
org.refcodes.struct.PathMap.MutablePathMap<T extends Object>, org.refcodes.struct.PathMap.PathMapBuilder<T extends Object>
Nested classes/interfaces inherited from interface org.refcodes.struct.Table
org.refcodes.struct.Table.TableDictionary<K extends Object,
V extends Object> Nested classes/interfaces inherited from interface org.refcodes.struct.Table.TableDictionary
org.refcodes.struct.Table.TableDictionary.TableBuilder<K extends Object,
V extends Object, B extends org.refcodes.struct.Table.TableDictionary.TableBuilder<K, V, B>> Nested classes/interfaces inherited from interface org.refcodes.mixin.TypeAccessor
org.refcodes.mixin.TypeAccessor.TypeBuilder<T extends Object,
B extends org.refcodes.mixin.TypeAccessor.TypeBuilder<T, B>>, org.refcodes.mixin.TypeAccessor.TypeMutator<T extends Object>, org.refcodes.mixin.TypeAccessor.TypeProperty<T extends Object> -
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
Fields inherited from interface org.refcodes.struct.PathMap
ANNOTATOR, DELIMITER
-
Constructor Summary
ConstructorDescriptionCreate an emptyHttpBodyMap
instance using the public path delimiter "/" (Delimiter.PATH
) for the path declarations.HttpBodyMap
(Object aObj) Create aHttpBodyMap
instance containing the elements as ofPathMap.MutablePathMap.insert(Object)
using the public path delimiter "/" (Delimiter.PATH
) for the path declarations.HttpBodyMap
(Object aObj, String aFromPath) Creates aHttpBodyMap
instance containing the elements as ofPathMap.MutablePathMap.insert(Object)
using the public path delimiter "/" (Delimiter.PATH
) for the path declarations.HttpBodyMap
(String aToPath, Object aObj) Create aHttpBodyMap
instance containing the elements as ofPathMap.MutablePathMap.insert(Object)
using the public path delimiter "/" (Delimiter.PATH
) for the path declarations.HttpBodyMap
(String aToPath, Object aObj, String aFromPath) Creates aHttpBodyMap
instance containing the elements as ofPathMap.MutablePathMap.insert(Object)
using the public path delimiter "/" (Delimiter.PATH
for the path declarations. -
Method Summary
Modifier and TypeMethodDescriptiongetDirAt
(int aIndex) Retrieves the public path's ("status/alias") status alias.Retrieves the public path's ("status/code") status code.Class<?>
Retrieves the public path's ("status/exception") status exception.Retrieves the public path's ("status/aMessage") status aMessage.Retrieves the public path's ("status/Time-Stamp") status Time-Stamp.boolean
Determines whether a public path's ("status/alias") status alias exists.boolean
Determines whether a public path's ("status/code") status code exists.boolean
Determines whether a public path's ("status/exception") status exception exists.boolean
Determines whether a public path's ("status/aMessage") status aMessage exists.boolean
Determines whether a public path's ("status/Time-Stamp") status Time-Stamp in milliseconds exists.putDirAt
(Collection<?> aPathElements, int aIndex, Object aDir) putDirAt
(Collection<?> aPathElements, int aIndex, org.refcodes.struct.PathMap<String> aDir) putStatusAlias
(String aStatusAlias) Puts a public path's ("status/alias") status alias.putStatusAlias
(HttpStatusCode aStatusCode) Puts a public path's ("status/alias") status alias.putStatusCode
(int aStatusCode) Puts a public path's ("status/code") status code.putStatusCode
(HttpStatusCode aStatusCode) Puts a public path's ("status/code") status code.putStatusException
(Class<Exception> aStatusException) Puts a public path's ("status/exception") status exception.putStatusException
(Exception aStatusException) Puts a public path's ("status/exception") status exception.putStatusMessage
(String aStatusMessage) Puts a public path's ("status/aMessage") status aMessage.Puts a public path's ("status/Time-Stamp") status Time-Stamp to the current time in milliseconds as ofSystem.currentTimeMillis()
putStatusTimeStamp
(long aStatusTimeStamp) Puts a public path's ("status/Time-Stamp") status Time-Stamp in milliseconds.query
(Collection<?> aQueryElements) queryBetween
(Object[] aFromPath, Object[] aPathQuery, Object[] aToPath) queryBetween
(Object aFromPath, Object aPathQuery, Object aToPath) queryBetween
(String[] aFromPath, String[] aPathQuery, String[] aToPath) queryBetween
(String aFromPath, String aPathQuery, String aToPath) queryBetween
(String aFromPath, Pattern aRegExp, String aToPath) queryBetween
(Collection<?> aFromPath, Collection<?> aPathQuery, Collection<?> aToPath) queryFrom
(Collection<?> aPathQuery, Collection<?> aFromPath) queryTo
(Collection<?> aPathQuery, String aToPath) removeAll
(Collection<?> aPathQueryElements) removeDirAt
(int aIndex) removeDirAt
(Object[] aPathElements, int aIndex) removeDirAt
(Object aPath, int aIndex) removeDirAt
(String[] aPathElements, int aIndex) removeDirAt
(String aPath, int aIndex) removeFrom
(Object aPath) removeFrom
(Object... aPathElements) removeFrom
(String aPath) removeFrom
(String... aPathElements) removePaths
(String... aPaths) removePaths
(Collection<?> aPaths) retrieveBetween
(Object[] aFromPath, Object[] aToPath) retrieveBetween
(Object aFromPath, Object aToPath) retrieveBetween
(String[] aFromPath, String[] aToPath) retrieveBetween
(String aFromPath, String aToPath) retrieveBetween
(Collection<?> aFromPath, Collection<?> aToPath) retrieveFrom
(Object aParentPath) retrieveFrom
(Object... aPathElements) retrieveFrom
(String aFromPath) retrieveFrom
(String... aPathElements) retrieveFrom
(Collection<?> aPathElements) retrieveTo
(Object aToPath) retrieveTo
(Object... aToPathElements) retrieveTo
(String aToPath) retrieveTo
(String... aToPathElements) retrieveTo
(Collection<?> aToPathElements) withInsert
(Object aObj) withInsert
(org.refcodes.struct.PathMap<String> aFrom) withInsertBetween
(Object[] aToPathElements, Object aFrom, Object[] aFromPathElements) withInsertBetween
(Object[] aToPathElements, org.refcodes.struct.PathMap<String> aFrom, Object[] aFromPathElements) withInsertBetween
(Object aToPath, Object aFrom, Object aFromPath) withInsertBetween
(Object aToPath, org.refcodes.struct.PathMap<String> aFrom, Object aFromPath) withInsertBetween
(String[] aToPathElements, Object aFrom, String[] aFromPathElements) withInsertBetween
(String[] aToPathElements, org.refcodes.struct.PathMap<String> aFrom, String[] aFromPathElements) withInsertBetween
(String aToPath, Object aFrom, String aFromPath) withInsertBetween
(String aToPath, org.refcodes.struct.PathMap<String> aFrom, String aFromPath) withInsertBetween
(Collection<?> aToPathElements, Object aFrom, Collection<?> aFromPathElements) withInsertBetween
(Collection<?> aToPathElements, org.refcodes.struct.PathMap<String> aFrom, Collection<?> aFromPathElements) withInsertFrom
(Object aFrom, Object aFromPath) withInsertFrom
(Object aFrom, Object... aFromPathElements) withInsertFrom
(Object aFrom, String aFromPath) withInsertFrom
(Object aFrom, String... aFromPathElements) withInsertFrom
(Object aFrom, Collection<?> aFromPathElements) withInsertFrom
(org.refcodes.struct.PathMap<String> aFrom, Object aFromPath) withInsertFrom
(org.refcodes.struct.PathMap<String> aFrom, Object... aFromPathElements) withInsertFrom
(org.refcodes.struct.PathMap<String> aFrom, String aFromPath) withInsertFrom
(org.refcodes.struct.PathMap<String> aFrom, String... aFromPathElements) withInsertFrom
(org.refcodes.struct.PathMap<String> aFrom, Collection<?> aFromPathElements) withInsertTo
(Object[] aToPathElements, Object aFrom) withInsertTo
(Object[] aToPathElements, org.refcodes.struct.PathMap<String> aFrom) withInsertTo
(Object aToPath, Object aFrom) withInsertTo
(Object aToPath, org.refcodes.struct.PathMap<String> aFrom) withInsertTo
(String[] aToPathElements, Object aFrom) withInsertTo
(String[] aToPathElements, org.refcodes.struct.PathMap<String> aFrom) withInsertTo
(String aToPath, Object aFrom) withInsertTo
(String aToPath, org.refcodes.struct.PathMap<String> aFrom) withInsertTo
(Collection<?> aToPathElements, Object aFrom) withInsertTo
(Collection<?> aToPathElements, org.refcodes.struct.PathMap<String> aFrom) withMergeBetween
(Object[] aToPathElements, Object aFrom, Object[] aFromPathElements) withMergeBetween
(Object[] aToPathElements, org.refcodes.struct.PathMap<String> aFrom, Object[] aFromPathElements) withMergeBetween
(Object aToPath, Object aFrom, Object aFromPath) withMergeBetween
(Object aToPath, org.refcodes.struct.PathMap<String> aFrom, Object aFromPath) withMergeBetween
(String[] aToPathElements, Object aFrom, String[] aFromPathElements) withMergeBetween
(String[] aToPathElements, org.refcodes.struct.PathMap<String> aFrom, String[] aFromPathElements) withMergeBetween
(String aToPath, Object aFrom, String aFromPath) withMergeBetween
(String aToPath, org.refcodes.struct.PathMap<String> aFrom, String aFromPath) withMergeBetween
(Collection<?> aToPathElements, Object aFrom, Collection<?> aFromPathElements) withMergeBetween
(Collection<?> aToPathElements, org.refcodes.struct.PathMap<String> aFrom, Collection<?> aFromPathElements) withMergeFrom
(Object aFrom, Object aFromPath) withMergeFrom
(Object aFrom, Object... aFromPathElements) withMergeFrom
(Object aFrom, String aFromPath) withMergeFrom
(Object aFrom, String... aFromPathElements) withMergeFrom
(Object aFrom, Collection<?> aFromPathElements) withMergeFrom
(org.refcodes.struct.PathMap<String> aFrom, Object aFromPath) withMergeFrom
(org.refcodes.struct.PathMap<String> aFrom, Object... aFromPathElements) withMergeFrom
(org.refcodes.struct.PathMap<String> aFrom, String aFromPath) withMergeFrom
(org.refcodes.struct.PathMap<String> aFrom, String... aFromPathElements) withMergeFrom
(org.refcodes.struct.PathMap<String> aFrom, Collection<?> aFromPathElements) withMergeTo
(Object[] aToPathElements, Object aFrom) withMergeTo
(Object[] aToPathElements, org.refcodes.struct.PathMap<String> aFrom) withMergeTo
(Object aToPath, Object aFrom) withMergeTo
(Object aToPath, org.refcodes.struct.PathMap<String> aFrom) withMergeTo
(String[] aToPathElements, Object aFrom) withMergeTo
(String[] aToPathElements, org.refcodes.struct.PathMap<String> aFrom) withMergeTo
(String aToPath, Object aFrom) withMergeTo
(String aToPath, org.refcodes.struct.PathMap<String> aFrom) withMergeTo
(Collection<?> aToPathElements, Object aFrom) withMergeTo
(Collection<?> aToPathElements, org.refcodes.struct.PathMap<String> aFrom) withPut
(Collection<?> aPathElements, String aValue) withPut
(org.refcodes.struct.Property aProperty) withPutBoolean
(Object[] aPathElements, Boolean aValue) withPutBoolean
(Object aKey, Boolean aValue) withPutBoolean
(String[] aPathElements, Boolean aValue) withPutBoolean
(String aKey, Boolean aValue) withPutBoolean
(Collection<?> aPathElements, Boolean aValue) withPutByte
(Object[] aPathElements, Byte aValue) withPutByte
(Object aKey, Byte aValue) withPutByte
(String[] aPathElements, Byte aValue) withPutByte
(String aKey, Byte aValue) withPutByte
(Collection<?> aPathElements, Byte aValue) withPutChar
(Object[] aPathElements, Character aValue) withPutChar
(Object aKey, Character aValue) withPutChar
(String[] aPathElements, Character aValue) withPutChar
(String aKey, Character aValue) withPutChar
(Collection<?> aPathElements, Character aValue) <C> HttpBodyMap
withPutClass
(Object[] aPathElements, Class<C> aValue) <C> HttpBodyMap
withPutClass
(Object aKey, Class<C> aValue) <C> HttpBodyMap
withPutClass
(String[] aPathElements, Class<C> aValue) <C> HttpBodyMap
withPutClass
(String aKey, Class<C> aValue) <C> HttpBodyMap
withPutClass
(Collection<?> aPathElements, Class<C> aValue) withPutDirAt
(int aIndex, Object aDir) withPutDirAt
(int aIndex, org.refcodes.struct.PathMap<String> aDir) withPutDirAt
(Object[] aPathElements, int aIndex, Object aDir) withPutDirAt
(Object[] aPathElements, int aIndex, org.refcodes.struct.PathMap<String> aDir) withPutDirAt
(Object aPath, int aIndex, Object aDir) withPutDirAt
(Object aPath, int aIndex, org.refcodes.struct.PathMap<String> aDir) withPutDirAt
(String[] aPathElements, int aIndex, Object aDir) withPutDirAt
(String[] aPathElements, int aIndex, org.refcodes.struct.PathMap<String> aDir) withPutDirAt
(String aPath, int aIndex, Object aDir) withPutDirAt
(String aPath, int aIndex, org.refcodes.struct.PathMap<String> aDir) withPutDirAt
(Collection<?> aPathElements, int aIndex, Object aDir) withPutDirAt
(Collection<?> aPathElements, int aIndex, org.refcodes.struct.PathMap<String> aDir) withPutDouble
(Object[] aPathElements, Double aValue) withPutDouble
(Object aKey, Double aValue) withPutDouble
(String[] aPathElements, Double aValue) withPutDouble
(String aKey, Double aValue) withPutDouble
(Collection<?> aPathElements, Double aValue) <E extends Enum<E>>
HttpBodyMapwithPutEnum
(Object[] aPathElements, E aValue) <E extends Enum<E>>
HttpBodyMapwithPutEnum
(Object aKey, E aValue) <E extends Enum<E>>
HttpBodyMapwithPutEnum
(String[] aPathElements, E aValue) <E extends Enum<E>>
HttpBodyMapwithPutEnum
(String aKey, E aValue) <E extends Enum<E>>
HttpBodyMapwithPutEnum
(Collection<?> aPathElements, E aValue) withPutFloat
(Object[] aPathElements, Float aValue) withPutFloat
(Object aKey, Float aValue) withPutFloat
(String[] aPathElements, Float aValue) withPutFloat
(String aKey, Float aValue) withPutFloat
(Collection<?> aPathElements, Float aValue) withPutInt
(Object[] aPathElements, Integer aValue) withPutInt
(Object aKey, Integer aValue) withPutInt
(String[] aPathElements, Integer aValue) withPutInt
(String aKey, Integer aValue) withPutInt
(Collection<?> aPathElements, Integer aValue) withPutLong
(Object[] aPathElements, Long aValue) withPutLong
(Object aKey, Long aValue) withPutLong
(String[] aPathElements, Long aValue) withPutLong
(String aKey, Long aValue) withPutLong
(Collection<?> aPathElements, Long aValue) withPutShort
(Object[] aPathElements, Short aValue) withPutShort
(Object aKey, Short aValue) withPutShort
(String[] aPathElements, Short aValue) withPutShort
(String aKey, Short aValue) withPutShort
(Collection<?> aPathElements, Short aValue) withPutStatusAlias
(String aStatusAlias) Puts a public path's ("status/alias") status alias.withPutStatusAlias
(HttpStatusCode aStatusCode) Puts a public path's ("status/alias") status alias.withPutStatusCode
(int aStatusCode) Puts a public path's ("status/code") status code.withPutStatusCode
(HttpStatusCode aStatusCode) Puts a public path's ("status/code") status code.withPutString
(Object[] aPathElements, String aValue) withPutString
(Object aKey, String aValue) withPutString
(String[] aPathElements, String aValue) withPutString
(String aKey, String aValue) withPutString
(Collection<?> aPathElements, String aValue) withRemoveFrom
(Object aPath) withRemoveFrom
(Object... aPathElements) withRemoveFrom
(String aPath) withRemoveFrom
(String... aPathElements) withRemoveFrom
(Collection<?> aPathElements) withRemovePaths
(String... aPathElements) Methods inherited from class org.refcodes.struct.CanonicalMapBuilderImpl
fromInstance, fromObject, toInstance
Methods inherited from class org.refcodes.struct.PathMapBuilderImpl
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, createBackingMap, entrySet, equals, forEach, fromValue, fromValue, get, getAnnotator, getDelimiter, getOrDefault, getType, hashCode, insert, insertBetween, insertFrom, insertTo, isEmpty, keySet, merge, merge, mergeBetween, mergeFrom, mergeTo, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, toDataStructure, toType, values
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.refcodes.mixin.AnnotatorAccessor
getAnnotator
Methods inherited from interface org.refcodes.struct.CanonicalMap
asArray, asArray, asArray, asArray, asBooleanArray, asBooleanArray, asBooleanArray, asBooleanArray, asByteArray, asByteArray, asByteArray, asByteArray, asCharArray, asCharArray, asCharArray, asCharArray, asDoubleArray, asDoubleArray, asDoubleArray, asDoubleArray, asFloatArray, asFloatArray, asFloatArray, asFloatArray, asIntArray, asIntArray, asIntArray, asIntArray, asLongArray, asLongArray, asLongArray, asLongArray, asShortArray, asShortArray, asShortArray, asShortArray, getDir, getDir, getDir, getDir, getDir, getDirAt, getDirAt, getDirAt, getDirAt, getDirs, getDirs, getDirs, getDirs, getDirs, toMap, toProperties
Methods inherited from interface org.refcodes.struct.CanonicalMap.MutableCanonicalMap
containsValue, insert, insertBetween, insertFrom, insertTo, put, put, put, put, put, putAll, putAll, putAll, removeFrom, toDump
Methods inherited from interface org.refcodes.mixin.Clearable
clear
Methods inherited from interface org.refcodes.struct.Containable
size
Methods inherited from interface org.refcodes.mixin.DelimiterAccessor
getDelimiter
Methods inherited from interface org.refcodes.mixin.Dumpable
toDump
Methods inherited from interface org.refcodes.mixin.EmptyAccessor
isEmpty
Methods inherited from interface org.refcodes.struct.InterOperableMap
getBoolean, getBoolean, getBoolean, getBoolean, getBoolean, getBooleanOr, getBooleanOr, getBooleanOr, getBooleanOr, getBooleanOr, getByte, getByte, getByte, getByte, getByte, getByteOr, getByteOr, getByteOr, getByteOr, getByteOr, getChar, getChar, getChar, getChar, getChar, getCharOr, getCharOr, getCharOr, getCharOr, getCharOr, getClass, getClass, getClass, getClass, getClass, getClassOr, getClassOr, getClassOr, getClassOr, getClassOr, getDouble, getDouble, getDouble, getDouble, getDouble, getDoubleOr, getDoubleOr, getDoubleOr, getDoubleOr, getDoubleOr, getEnum, getEnum, getEnum, getEnum, getEnum, getEnumOr, getEnumOr, getEnumOr, getEnumOr, getEnumOr, getEnumOr, getEnumOr, getEnumOr, getEnumOr, getEnumOr, getFloat, getFloat, getFloat, getFloat, getFloat, getFloatOr, getFloatOr, getFloatOr, getFloatOr, getFloatOr, getInt, getInt, getInt, getInt, getInt, getIntOr, getIntOr, getIntOr, getIntOr, getIntOr, getLong, getLong, getLong, getLong, getLong, getLongOr, getLongOr, getLongOr, getLongOr, getLongOr, getShort, getShort, getShort, getShort, getShort, getShortOr, getShortOr, getShortOr, getShortOr, getShortOr, getString, getString, getString, getString, getString, getStringOr, getStringOr, getStringOr, getStringOr, getStringOr
Methods inherited from interface org.refcodes.struct.InterOperableMap.MutableInterOperableMap
containsValue, insert, insertBetween, insertFrom, insertTo, putBoolean, putBoolean, putBoolean, putBoolean, putBoolean, putByte, putByte, putByte, putByte, putByte, putChar, putChar, putChar, putChar, putChar, putClass, putClass, putClass, putClass, putClass, putDouble, putDouble, putDouble, putDouble, putDouble, putEnum, putEnum, putEnum, putEnum, putEnum, putFloat, putFloat, putFloat, putFloat, putFloat, putInt, putInt, putInt, putInt, putInt, putLong, putLong, putLong, putLong, putLong, putShort, putShort, putShort, putShort, putShort, putString, putString, putString, putString, putString
Methods inherited from interface org.refcodes.struct.Keys
containsKey, get, getOr, keySet, use, values
Methods inherited from interface org.refcodes.struct.Keys.MutableValues
put
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
Methods inherited from interface org.refcodes.struct.PathMap
children, children, children, children, children, children, containsKey, containsKey, containsKey, dirs, dirs, dirs, dirs, dirs, dirs, findPaths, fromExternalPath, get, get, get, getArray, getArray, getArray, getArray, getArray, getArray, getArrayIndexes, getArrayIndexes, getArrayIndexes, getArrayIndexes, getArrayIndexes, getArrayOr, getArrayOr, getArrayOr, getArrayOr, getArrayOr, getArrayOr, getDirIndexes, getDirIndexes, getDirIndexes, getDirIndexes, getDirIndexes, getDirIndexes, getRootPath, getValueAt, getValueAt, getValueAt, getValueAt, getValueAt, getValueAt, hasChildren, hasChildren, hasChildren, hasChildren, hasChildren, hasDirAt, hasDirAt, hasDirAt, hasDirAt, hasDirAt, hasDirAt, hasDirAt, hasDirAt, hasDirAt, hasDirAt, hasDirAt, hasParentPath, hasPath, hasPath, hasPath, hasPath, hasPath, hasSubDirs, hasSubDirs, hasSubDirs, hasSubDirs, hasValue, hasValue, hasValue, hasValue, hasValue, hasValueAt, hasValueAt, hasValueAt, hasValueAt, hasValueAt, hasValueAt, hasValueAt, hasValueAt, isArray, isArray, isArray, isArray, isArray, isArray, isChild, isChild, isChild, isChild, isDir, isDir, isDir, isDir, isDir, isEqualTo, isIndexDir, isIndexDir, isIndexDir, isIndexDir, isIndexDir, isLeaf, isLeaf, isLeaf, isLeaf, isLeaf, isRootPath, keySet, keySet, keySet, keySet, keySet, lastArrayIndex, lastArrayIndex, lastArrayIndex, lastArrayIndex, lastArrayIndex, lastArrayIndex, lastDirIndex, lastDirIndex, lastDirIndex, lastDirIndex, lastDirIndex, lastDirIndex, leaves, leaves, leaves, leaves, leaves, leaves, nextArrayIndex, nextArrayIndex, nextArrayIndex, nextArrayIndex, nextArrayIndex, nextArrayIndex, nextDirIndex, nextDirIndex, nextDirIndex, nextDirIndex, nextDirIndex, nextDirIndex, paths, paths, paths, paths, paths, paths, queryPaths, queryPaths, queryPaths, queryPaths, queryPaths, queryPaths, sortedKeys, sortedKeys, sortedKeys, sortedKeys, sortedKeys, sortedKeys, sortedKeys, sortedKeys, sortedKeys, sortedKeys, sortedKeys, sortedKeys, sortedKeys, sortedKeys, sortedKeys, sortedKeys, sortedKeys, sortedKeys, toDataStructure, toDataStructure, toExternalPath, toInstance, toInstance, toLeaf, toMap, toNormalizedPath, toParentPath, toPath, toPath, toPath, toPath, toPathElements, toPathList, toPathStack, toPrintable, toPropertyPath, toType, toType, toType, toType, toType, toType, toType, toType
Methods inherited from interface org.refcodes.struct.PathMap.MutablePathMap
add, add, add, add, add, add, appendDirTo, appendDirTo, appendDirTo, appendDirTo, appendDirTo, appendDirTo, appendDirTo, appendDirTo, appendDirTo, appendDirTo, appendDirTo, appendDirTo, appendValueTo, appendValueTo, appendValueTo, appendValueTo, appendValueTo, appendValueTo, delete, delete, delete, delete, delete, fromType, fromType, fromType, fromType, fromType, fromType, fromType, fromType, insert, insert, insertBetween, insertBetween, insertBetween, insertBetween, insertBetween, insertBetween, insertBetween, insertBetween, insertBetween, insertBetween, insertFrom, insertFrom, insertFrom, insertFrom, insertFrom, insertFrom, insertFrom, insertFrom, insertFrom, insertFrom, insertTo, insertTo, insertTo, insertTo, insertTo, insertTo, insertTo, insertTo, insertTo, insertTo, merge, merge, mergeBetween, mergeBetween, mergeBetween, mergeBetween, mergeBetween, mergeBetween, mergeBetween, mergeBetween, mergeBetween, mergeBetween, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeTo, mergeTo, mergeTo, mergeTo, mergeTo, mergeTo, mergeTo, mergeTo, mergeTo, mergeTo, put, putArray, putArray, putArray, putArray, putArray, putArray, putArray, putArray, putArray, putArray, putArray, putArray, putValueAt, putValueAt, putValueAt, putValueAt, putValueAt, putValueAt, remove, remove, remove, removeValueAt, removeValueAt, removeValueAt, removeValueAt, removeValueAt, toSourceCode, toSourceCode
Methods inherited from interface org.refcodes.mixin.TypeAccessor
getType
-
Field Details
-
STATUS_CODE_PATH
- See Also:
-
STATUS_ALIAS_PATH
- See Also:
-
STATUS_MESSAGE_PATH
- See Also:
-
STATUS_EXCEPTION_PATH
- See Also:
-
STATUS_TIMESTAMP_PATH
- See Also:
-
-
Constructor Details
-
HttpBodyMap
public HttpBodyMap()Create an emptyHttpBodyMap
instance using the public path delimiter "/" (Delimiter.PATH
) for the path declarations. -
HttpBodyMap
Create aHttpBodyMap
instance containing the elements as ofPathMap.MutablePathMap.insert(Object)
using the public path delimiter "/" (Delimiter.PATH
) for the path declarations.- Parameters:
aObj
- The object from which the elements are to be added.
-
HttpBodyMap
Create aHttpBodyMap
instance containing the elements as ofPathMap.MutablePathMap.insert(Object)
using the public path delimiter "/" (Delimiter.PATH
) for the path declarations.- Parameters:
aToPath
- The sub-path where to insert the object's introspected values to.aObj
- The object from which the elements are to be added.
-
HttpBodyMap
Creates aHttpBodyMap
instance containing the elements as ofPathMap.MutablePathMap.insert(Object)
using the public path delimiter "/" (Delimiter.PATH
) for the path declarations.- Parameters:
aObj
- The object from which the elements are to be added.aFromPath
- The path from where to start adding elements of the provided object.
-
HttpBodyMap
Creates aHttpBodyMap
instance containing the elements as ofPathMap.MutablePathMap.insert(Object)
using the public path delimiter "/" (Delimiter.PATH
for the path declarations.- Parameters:
aToPath
- The sub-path where to insert the object's introspected values to.aObj
- The object from which the elements are to be added.aFromPath
- The path from where to start adding elements of the provided object.
-
-
Method Details
-
retrieveFrom
- Specified by:
retrieveFrom
in interfaceorg.refcodes.struct.CanonicalMap
- Specified by:
retrieveFrom
in interfaceorg.refcodes.struct.PathMap<String>
- Overrides:
retrieveFrom
in classorg.refcodes.struct.CanonicalMapBuilderImpl
-
retrieveTo
- Specified by:
retrieveTo
in interfaceorg.refcodes.struct.CanonicalMap
- Specified by:
retrieveTo
in interfaceorg.refcodes.struct.PathMap<String>
- Overrides:
retrieveTo
in classorg.refcodes.struct.CanonicalMapBuilderImpl
-
retrieveBetween
-
withPut
- Specified by:
withPut
in interfaceorg.refcodes.struct.InterOperableMap.InterOperableMapBuilder<String>
- Specified by:
withPut
in interfaceorg.refcodes.struct.Table.TableDictionary.TableBuilder<String,
String, org.refcodes.struct.PathMap.PathMapBuilder<String>> - Overrides:
withPut
in classorg.refcodes.struct.CanonicalMapBuilderImpl
-
getDirAt
-
getDirAt
-
getStatusAlias
Retrieves the public path's ("status/alias") status alias.- Returns:
- The previously set value for the status alias public path.
-
getStatusCode
Retrieves the public path's ("status/code") status code.- Returns:
- The previously set value for the status code public path.
-
getStatusException
Retrieves the public path's ("status/exception") status exception.- Returns:
- The previously set value for the status exception public path.
-
getStatusMessage
Retrieves the public path's ("status/aMessage") status aMessage.- Returns:
- The previously set value for the status aMessage public path.
-
getStatusTimeStamp
Retrieves the public path's ("status/Time-Stamp") status Time-Stamp.- Returns:
- The previously set value for the status Time-Stamp public path.
-
hasStatusAlias
public boolean hasStatusAlias()Determines whether a public path's ("status/alias") status alias exists.- Returns:
- True in case there is a valid value for the status alias default path.
-
hasStatusCode
public boolean hasStatusCode()Determines whether a public path's ("status/code") status code exists.- Returns:
- True in case there is a valid value for the status code default path.
-
hasStatusException
public boolean hasStatusException()Determines whether a public path's ("status/exception") status exception exists.- Returns:
- True in case there is a valid value for the status exception public path.
-
hasStatusMessage
public boolean hasStatusMessage()Determines whether a public path's ("status/aMessage") status aMessage exists.- Returns:
- True in case there is a valid value for the status aMessage public path.
-
hasStatusTimeStamp
public boolean hasStatusTimeStamp()Determines whether a public path's ("status/Time-Stamp") status Time-Stamp in milliseconds exists.- Returns:
- True in case there is a valid value for the status Time-Stamp public path.
-
putDirAt
-
putDirAt
public HttpBodyMap putDirAt(Collection<?> aPathElements, int aIndex, org.refcodes.struct.PathMap<String> aDir) -
putDirAt
-
putDirAt
-
putDirAt
-
putDirAt
-
putDirAt
-
putDirAt
public HttpBodyMap putDirAt(Object[] aPathElements, int aIndex, org.refcodes.struct.PathMap<String> aDir) -
putDirAt
-
putDirAt
-
putDirAt
-
putDirAt
public HttpBodyMap putDirAt(String[] aPathElements, int aIndex, org.refcodes.struct.PathMap<String> aDir) -
putStatusAlias
Puts a public path's ("status/alias") status alias.- Parameters:
aStatusCode
- TheHttpStatusCode
, which's verbose alias is to be set.- Returns:
- The previously set value for the status alias public path.
-
putStatusAlias
Puts a public path's ("status/alias") status alias.- Parameters:
aStatusAlias
- The status alias value to be set.- Returns:
- The previously set value for the status alias public path.
-
putStatusCode
Puts a public path's ("status/code") status code.- Parameters:
aStatusCode
- TheHttpStatusCode
to be set.- Returns:
- The previously set value for the status code public path.
-
putStatusCode
Puts a public path's ("status/code") status code.- Parameters:
aStatusCode
- The status code value to be set.- Returns:
- The previously set value for the status code public path.
-
putStatusException
Puts a public path's ("status/exception") status exception.- Parameters:
aStatusException
- The status exception value to be set.- Returns:
- The previously set value for the status exception public path.
-
putStatusException
Puts a public path's ("status/exception") status exception.- Parameters:
aStatusException
- The status exception value to be set.- Returns:
- The previously set value for the status exception public path.
-
putStatusMessage
Puts a public path's ("status/aMessage") status aMessage.- Parameters:
aStatusMessage
- The status aMessage value to be set.- Returns:
- The previously set value for the status aMessage public path.
-
putStatusTimeStamp
Puts a public path's ("status/Time-Stamp") status Time-Stamp to the current time in milliseconds as ofSystem.currentTimeMillis()
- Returns:
- The previously set value for the status Time-Stamp public path.
-
putStatusTimeStamp
Puts a public path's ("status/Time-Stamp") status Time-Stamp in milliseconds.- Parameters:
aStatusTimeStamp
- The status Time-Stamp value to be set.- Returns:
- The previously set value for the status Time-Stamp public path.
-
query
-
query
-
query
-
query
-
query
-
queryBetween
public HttpBodyMap queryBetween(Collection<?> aFromPath, Collection<?> aPathQuery, Collection<?> aToPath) -
queryBetween
-
queryBetween
-
queryBetween
-
queryBetween
-
queryBetween
-
queryFrom
-
queryFrom
-
queryFrom
-
queryFrom
-
queryFrom
-
queryFrom
-
queryTo
-
queryTo
-
queryTo
-
queryTo
-
queryTo
-
queryTo
-
removePaths
-
removePaths
-
removeAll
-
removeAll
-
removeAll
-
removeAll
-
removeAll
-
removeAll
-
removeDirAt
-
removeDirAt
-
removeDirAt
-
removeDirAt
-
removeDirAt
-
removeFrom
-
removeFrom
-
removeFrom
-
removeFrom
-
retrieveBetween
-
retrieveBetween
-
retrieveBetween
-
retrieveBetween
-
retrieveFrom
-
retrieveFrom
-
retrieveFrom
-
retrieveFrom
-
retrieveTo
-
retrieveTo
-
retrieveTo
-
retrieveTo
-
withPutStatusAlias
Puts a public path's ("status/alias") status alias.- Parameters:
aStatusCode
- TheHttpStatusCode
, which's verbose alias is to be set.- Returns:
- The previously set value for the status alias public path.
-
withPutStatusAlias
Puts a public path's ("status/alias") status alias.- Parameters:
aStatusAlias
- The status alias value to be set.- Returns:
- The previously set value for the status alias public path.
-
withPutStatusCode
Puts a public path's ("status/code") status code.- Parameters:
aStatusCode
- TheHttpStatusCode
to be set.- Returns:
- The previously set value for the status code public path.
-
withPutStatusCode
Puts a public path's ("status/code") status code.- Parameters:
aStatusCode
- The status code value to be set.- Returns:
- The previously set value for the status code public path.
-
withPut
-
withPut
-
withPut
-
withPut
-
withPut
-
withPutBoolean
-
withPutBoolean
-
withPutBoolean
-
withPutBoolean
-
withPutBoolean
-
withPutByte
-
withPutByte
-
withPutByte
-
withPutByte
-
withPutByte
-
withPutChar
-
withPutChar
-
withPutChar
-
withPutChar
-
withPutChar
-
withPutClass
-
withPutClass
-
withPutClass
-
withPutClass
-
withPutClass
-
withPutDouble
-
withPutDouble
-
withPutDouble
-
withPutDouble
-
withPutDouble
-
withPutEnum
-
withPutEnum
-
withPutEnum
-
withPutEnum
-
withPutEnum
-
withPutFloat
-
withPutFloat
-
withPutFloat
-
withPutFloat
-
withPutFloat
-
withPutInt
-
withPutInt
-
withPutInt
-
withPutInt
-
withPutInt
-
withPutLong
-
withPutLong
-
withPutLong
-
withPutLong
-
withPutLong
-
withPutShort
-
withPutShort
-
withPutShort
-
withPutShort
-
withPutShort
-
withPutString
-
withPutString
-
withPutString
-
withPutString
-
withPutString
-
withInsert
-
withInsert
-
withInsertBetween
public HttpBodyMap withInsertBetween(Collection<?> aToPathElements, Object aFrom, Collection<?> aFromPathElements) -
withInsertBetween
public HttpBodyMap withInsertBetween(Collection<?> aToPathElements, org.refcodes.struct.PathMap<String> aFrom, Collection<?> aFromPathElements) -
withInsertBetween
-
withInsertBetween
public HttpBodyMap withInsertBetween(Object aToPath, org.refcodes.struct.PathMap<String> aFrom, Object aFromPath) -
withInsertBetween
public HttpBodyMap withInsertBetween(Object[] aToPathElements, Object aFrom, Object[] aFromPathElements) -
withInsertBetween
public HttpBodyMap withInsertBetween(Object[] aToPathElements, org.refcodes.struct.PathMap<String> aFrom, Object[] aFromPathElements) -
withInsertBetween
-
withInsertBetween
public HttpBodyMap withInsertBetween(String aToPath, org.refcodes.struct.PathMap<String> aFrom, String aFromPath) -
withInsertBetween
public HttpBodyMap withInsertBetween(String[] aToPathElements, Object aFrom, String[] aFromPathElements) -
withInsertBetween
public HttpBodyMap withInsertBetween(String[] aToPathElements, org.refcodes.struct.PathMap<String> aFrom, String[] aFromPathElements) -
withInsertFrom
-
withInsertFrom
-
withInsertFrom
-
withInsertFrom
-
withInsertFrom
-
withInsertFrom
public HttpBodyMap withInsertFrom(org.refcodes.struct.PathMap<String> aFrom, Collection<?> aFromPathElements) -
withInsertFrom
-
withInsertFrom
public HttpBodyMap withInsertFrom(org.refcodes.struct.PathMap<String> aFrom, Object... aFromPathElements) -
withInsertFrom
-
withInsertFrom
public HttpBodyMap withInsertFrom(org.refcodes.struct.PathMap<String> aFrom, String... aFromPathElements) -
withInsertTo
-
withInsertTo
public HttpBodyMap withInsertTo(Collection<?> aToPathElements, org.refcodes.struct.PathMap<String> aFrom) -
withInsertTo
-
withInsertTo
-
withInsertTo
-
withInsertTo
public HttpBodyMap withInsertTo(Object[] aToPathElements, org.refcodes.struct.PathMap<String> aFrom) -
withInsertTo
-
withInsertTo
-
withInsertTo
-
withInsertTo
public HttpBodyMap withInsertTo(String[] aToPathElements, org.refcodes.struct.PathMap<String> aFrom) -
withMerge
-
withMerge
-
withMergeBetween
public HttpBodyMap withMergeBetween(Collection<?> aToPathElements, Object aFrom, Collection<?> aFromPathElements) -
withMergeBetween
public HttpBodyMap withMergeBetween(Collection<?> aToPathElements, org.refcodes.struct.PathMap<String> aFrom, Collection<?> aFromPathElements) -
withMergeBetween
-
withMergeBetween
public HttpBodyMap withMergeBetween(Object aToPath, org.refcodes.struct.PathMap<String> aFrom, Object aFromPath) -
withMergeBetween
public HttpBodyMap withMergeBetween(Object[] aToPathElements, Object aFrom, Object[] aFromPathElements) -
withMergeBetween
public HttpBodyMap withMergeBetween(Object[] aToPathElements, org.refcodes.struct.PathMap<String> aFrom, Object[] aFromPathElements) -
withMergeBetween
-
withMergeBetween
public HttpBodyMap withMergeBetween(String aToPath, org.refcodes.struct.PathMap<String> aFrom, String aFromPath) -
withMergeBetween
public HttpBodyMap withMergeBetween(String[] aToPathElements, Object aFrom, String[] aFromPathElements) -
withMergeBetween
public HttpBodyMap withMergeBetween(String[] aToPathElements, org.refcodes.struct.PathMap<String> aFrom, String[] aFromPathElements) -
withMergeFrom
-
withMergeFrom
-
withMergeFrom
-
withMergeFrom
-
withMergeFrom
-
withMergeFrom
public HttpBodyMap withMergeFrom(org.refcodes.struct.PathMap<String> aFrom, Collection<?> aFromPathElements) -
withMergeFrom
-
withMergeFrom
public HttpBodyMap withMergeFrom(org.refcodes.struct.PathMap<String> aFrom, Object... aFromPathElements) -
withMergeFrom
-
withMergeFrom
public HttpBodyMap withMergeFrom(org.refcodes.struct.PathMap<String> aFrom, String... aFromPathElements) -
withMergeTo
-
withMergeTo
public HttpBodyMap withMergeTo(Collection<?> aToPathElements, org.refcodes.struct.PathMap<String> aFrom) -
withMergeTo
-
withMergeTo
-
withMergeTo
-
withMergeTo
-
withMergeTo
-
withMergeTo
-
withMergeTo
-
withMergeTo
-
withPutDirAt
-
withPutDirAt
public HttpBodyMap withPutDirAt(Collection<?> aPathElements, int aIndex, org.refcodes.struct.PathMap<String> aDir) -
withPutDirAt
-
withPutDirAt
-
withPutDirAt
-
withPutDirAt
-
withPutDirAt
-
withPutDirAt
public HttpBodyMap withPutDirAt(Object[] aPathElements, int aIndex, org.refcodes.struct.PathMap<String> aDir) -
withPutDirAt
-
withPutDirAt
-
withPutDirAt
-
withPutDirAt
public HttpBodyMap withPutDirAt(String[] aPathElements, int aIndex, org.refcodes.struct.PathMap<String> aDir) -
withRemoveFrom
-
withRemoveFrom
-
withRemoveFrom
-
withRemoveFrom
-
withRemoveFrom
-
withRemovePaths
-