Interface ContentType

  • All Superinterfaces:
    org.refcodes.structure.CanonicalMap, org.refcodes.structure.CanonicalMap.CanonicalMapBuilder, org.refcodes.structure.CanonicalMap.MutableCanonicalMap, org.refcodes.structure.Clearable, org.refcodes.structure.Containable, org.refcodes.mixin.DelimiterAccessor, org.refcodes.structure.Dictionary<java.lang.String,T>, org.refcodes.structure.Dictionary.MutableDictionary<java.lang.String,T>, org.refcodes.structure.Dictionary.MutableDictionary.DictionaryBuilder<java.lang.String,T,org.refcodes.structure.PathMap.PathMapBuilder<T>>, org.refcodes.mixin.Dumpable, HttpMediaType, HttpMediaTypeAccessor.HttpMediaTypeProvider<java.lang.String>, org.refcodes.structure.Keys<java.lang.String,T>, org.refcodes.structure.Keys.MutableKeys<java.lang.String,T>, org.refcodes.structure.Keys.MutableValues<java.lang.String,T>, java.util.Map<java.lang.String,T>, MediaTypeAccessor, org.refcodes.structure.PathMap<java.lang.String>, org.refcodes.structure.PathMap.MutablePathMap<java.lang.String>, org.refcodes.structure.PathMap.PathMapBuilder<java.lang.String>, org.refcodes.configuration.Properties, org.refcodes.configuration.Properties.MutableProperties, org.refcodes.configuration.Properties.PropertiesBuilder, org.refcodes.structure.PropertiesAccessorMixin, org.refcodes.structure.PropertiesAccessorMixin.PropertiesBuilderMixin<java.lang.String>, org.refcodes.structure.PropertiesAccessorMixin.PropertiesMixin, org.refcodes.structure.PropertiesAccessorMixin.PropertiesMutatorMixin, TopLevelTypeAccessor, org.refcodes.mixin.TypeAccessor<java.lang.String>
    All Known Implementing Classes:
    ContentTypeImpl


    public interface ContentType
    extends TopLevelTypeAccessor, MediaTypeAccessor, org.refcodes.configuration.Properties.PropertiesBuilder, HttpMediaType
    A ContentType represents a MediaType and its according TopLevelType with additional (optional) suffixed parameters (as of the according HTTP Header-Fields). In other words, it is a concrete occurrence of a MediaType in an HTTP header including the particular parameters. A ContentType with the particular parameters may look as follows: "application/json;charset=UTF-8" in case of MediaType.APPLICATION_JSON and the parameter' MediaTypeParameter.CHARSET name set to the Encoding.UTF_8 code.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.refcodes.structure.CanonicalMap

        org.refcodes.structure.CanonicalMap.CanonicalMapBuilder, org.refcodes.structure.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.structure.Dictionary

        org.refcodes.structure.Dictionary.MutableDictionary<K extends java.lang.Object,V extends java.lang.Object>
      • Nested classes/interfaces inherited from interface org.refcodes.structure.Dictionary.MutableDictionary

        org.refcodes.structure.Dictionary.MutableDictionary.DictionaryBuilder<K extends java.lang.Object,V extends java.lang.Object,B extends org.refcodes.structure.Dictionary.MutableDictionary.DictionaryBuilder<K,V,B>>
      • Nested classes/interfaces inherited from interface org.refcodes.structure.PathMap

        org.refcodes.structure.PathMap.MutablePathMap<T extends java.lang.Object>, org.refcodes.structure.PathMap.PathMapBuilder<T extends java.lang.Object>
      • Nested classes/interfaces inherited from interface org.refcodes.configuration.Properties

        org.refcodes.configuration.Properties.MutableProperties, org.refcodes.configuration.Properties.PropertiesBuilder
      • Nested classes/interfaces inherited from interface org.refcodes.structure.PropertiesAccessorMixin

        org.refcodes.structure.PropertiesAccessorMixin.PropertiesBuilderMixin<T extends java.lang.Object>, org.refcodes.structure.PropertiesAccessorMixin.PropertiesMixin, org.refcodes.structure.PropertiesAccessorMixin.PropertiesMutatorMixin
      • Nested classes/interfaces inherited from interface org.refcodes.mixin.TypeAccessor

        org.refcodes.mixin.TypeAccessor.TypeMutator<T extends java.lang.Object>, org.refcodes.mixin.TypeAccessor.TypeProperty<T extends java.lang.Object>
    • Field Summary

      • Fields inherited from interface org.refcodes.configuration.Properties

        DEFAULT_COMMENT
    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default java.lang.String getCharsetParametrer​()
      Retrieves the charset parameter from the properties of this ContentType instance.
      default TopLevelType getTopLevelType​()
      Retrieves the Media-Top-Level-Type from the Media-Top-Level-Type property.
      default java.lang.String put​(MediaTypeParameter aParameter, java.lang.String aValue)
      Put.
      default java.lang.String putCharsetParametrer​(java.lang.String aCharsetCode)
      Sets the charset parameter's charset-code.
      default java.lang.String toHttpMediaType​()
      Returns the HTTP media type: It consists of the Media-Top-Level-Type ( getTopLevelType() and the Media-Subtype ( MediaTypeAccessor.getMediaType()) as well as some (optional) suffixed parameters (as of Keys.keySet() and Keys.get(Object), mutable via Keys.MutableValues.put(Object, Object)) all being concatenated in an HTTP valid manner, such as: "application/json;charset=UTF-8".
      default ContentType withCharsetParametrer​(java.lang.String aValue)
      Sets the charset parameter's charset-code.
      default ContentType withPut​(java.lang.Object[] aPathElements, java.lang.String aValue)
      default ContentType withPut​(java.lang.Object aPath, java.lang.String aValue)
      default ContentType withPut​(java.lang.String[] aPathElements, java.lang.String aValue)
      default ContentType withPut​(java.lang.String aKey, java.lang.String aValue)
      default ContentType withPut​(MediaTypeParameter aParameter, java.lang.String aValue)
      With put.
      default ContentType withPut​(org.refcodes.structure.Relation<java.lang.String,java.lang.String> aProperty)
      default ContentType withPutBoolean​(java.lang.Object[] aPathElements, java.lang.Boolean aValue)
      default ContentType withPutBoolean​(java.lang.String[] aPathElements, java.lang.Boolean aValue)
      default ContentType withPutBoolean​(java.lang.String aKey, java.lang.Boolean aValue)
      default ContentType withPutByte​(java.lang.Object[] aPathElements, java.lang.Byte aValue)
      default ContentType withPutByte​(java.lang.String[] aPathElements, java.lang.Byte aValue)
      default ContentType withPutByte​(java.lang.String aKey, java.lang.Byte aValue)
      default ContentType withPutDouble​(java.lang.Object[] aPathElements, java.lang.Double aValue)
      default ContentType withPutDouble​(java.lang.String[] aPathElements, java.lang.Double aValue)
      default ContentType withPutDouble​(java.lang.String aKey, java.lang.Double aValue)
      default ContentType withPutFloat​(java.lang.Object[] aPathElements, java.lang.Float aValue)
      default ContentType withPutFloat​(java.lang.String[] aPathElements, java.lang.Float aValue)
      default ContentType withPutFloat​(java.lang.String aKey, java.lang.Float aValue)
      default ContentType withPutInteger​(java.lang.Object[] aPathElements, java.lang.Integer aValue)
      default ContentType withPutInteger​(java.lang.String[] aPathElements, java.lang.Integer aValue)
      default ContentType withPutInteger​(java.lang.String aKey, java.lang.Integer aValue)
      default ContentType withPutLong​(java.lang.Object[] aPathElements, java.lang.Long aValue)
      default ContentType withPutLong​(java.lang.String[] aPathElements, java.lang.Long aValue)
      default ContentType withPutLong​(java.lang.String aKey, java.lang.Long aValue)
      default ContentType withPutShort​(java.lang.Object[] aPathElements, java.lang.Short aValue)
      default ContentType withPutShort​(java.lang.String[] aPathElements, java.lang.Short aValue)
      default ContentType withPutShort​(java.lang.String aKey, java.lang.Short aValue)
      default ContentType withRemoveFrom​(java.lang.String aPath)
      • Methods inherited from interface org.refcodes.structure.CanonicalMap

        getBoolean, getBoolean, getByte, getByte, getCharacter, getCharacter, getDouble, getDouble, getFloat, getFloat, getInteger, getInteger, getLong, getLong, getShort, getShort, toInstance, toInstance, toType, toType
      • Methods inherited from interface org.refcodes.structure.CanonicalMap.CanonicalMapBuilder

        withInsert, withInsert, withInsertFrom, withInsertTo
      • Methods inherited from interface org.refcodes.structure.CanonicalMap.MutableCanonicalMap

        insert, insert, insertFrom, insertTo, put, put, putAll, putBoolean, putBoolean, putByte, putByte, putDouble, putDouble, putFloat, putFloat, putInteger, putInteger, putLong, putLong, putShort, putShort, toDump, toSourceCode, toSourceCode
      • Methods inherited from interface org.refcodes.structure.Clearable

        clear
      • Methods inherited from interface org.refcodes.structure.Containable

        isEmpty, size
      • Methods inherited from interface org.refcodes.mixin.Dumpable

        toDump
      • Methods inherited from interface org.refcodes.structure.Keys.MutableValues

        put
      • Methods inherited from interface org.refcodes.structure.PathMap

        children, children, children, children, children, containsKey, containsKey, dirs, dirs, dirs, dirs, dirs, fromExternalPath, get, get, getArray, getArray, getArray, getArray, getArrayIndexes, getArrayIndexes, getArrayIndexes, getArrayIndexes, getDirAt, getDirAt, getDirAt, getDirIndexes, getDirIndexes, getDirIndexes, getDirIndexes, getRootPath, getValueAt, getValueAt, getValueAt, getValueAt, getValueAt, hasChildren, hasChildren, hasChildren, hasChildren, hasDirAt, hasDirAt, hasDirAt, hasDirAt, hasDirAt, hasDirAt, hasDirAt, hasDirAt, hasDirAt, hasParentPath, hasPath, hasPath, hasPath, hasValueAt, hasValueAt, hasValueAt, hasValueAt, isArray, isArray, isArray, isArray, isArray, isArrayIndex, isArrayIndex, isArrayIndex, isArrayIndex, isArrayIndex, isChild, isChild, isChild, isDir, isDir, isDir, isDir, isDirIndex, isDirIndex, isDirIndex, isDirIndex, isLeaf, isLeaf, isLeaf, isLeaf, isRootPath, keySet, lastArrayIndex, lastArrayIndex, lastArrayIndex, lastArrayIndex, lastArrayIndex, lastDirIndex, lastDirIndex, lastDirIndex, lastDirIndex, lastDirIndex, leaves, leaves, leaves, leaves, leaves, nextArrayIndex, nextArrayIndex, nextArrayIndex, nextArrayIndex, nextArrayIndex, nextDirIndex, nextDirIndex, nextDirIndex, nextDirIndex, nextDirIndex, paths, paths, paths, paths, paths, queryPaths, toDataStructure, toDataStructure, toExternalPath, toLeaf, toMap, toNormalizedPath, toParentPath, toPath, toPath, toPath, toPathElements
      • Methods inherited from interface org.refcodes.structure.PathMap.MutablePathMap

        appendDirTo, appendDirTo, appendDirTo, appendDirTo, appendValueTo, appendValueTo, appendValueTo, appendValueTo, insert, insert, insert, insert, insertFrom, insertFrom, insertTo, insertTo, put, putArray, putArray, putArray, putArray, putArray, putDirAt, putDirAt, putDirAt, putDirAt, putDirAt, putValueAt, putValueAt, putValueAt, putValueAt, putValueAt, remove, remove, removeValueAt, removeValueAt, removeValueAt, removeValueAt, removeValueAt
      • Methods inherited from interface org.refcodes.structure.PathMap.PathMapBuilder

        withInsert, withInsert, withInsertFrom, withInsertTo
      • Methods inherited from interface org.refcodes.configuration.Properties

        getDelimiter, getType, query, query, queryFrom, queryTo, retrieve, retrieveFrom, retrieveFrom, retrieveFrom, retrieveFrom, retrieveTo, retrieveTo, retrieveTo, retrieveTo, toMap, toProperties, toPropertyPath
      • Methods inherited from interface org.refcodes.configuration.Properties.MutableProperties

        containsValue, delete, delete, insert, insert, insertFrom, insertTo, put, putAll, putAll, putAll, removeAll, removeAll, removeDirAt, removeDirAt, removeDirAt, removeDirAt, removeDirAt, removeFrom, removeFrom, removeFrom, removeFrom
      • Methods inherited from interface org.refcodes.configuration.Properties.PropertiesBuilder

        getDirAt, getDirAt, withInsert, withInsert, withInsert, withInsert, withInsertFrom, withInsertFrom, withInsertTo, withInsertTo
      • Methods inherited from interface org.refcodes.structure.PropertiesAccessorMixin

        asArray, asArray, asArray, asArray, asArray, asArray, asBooleanArray, asBooleanArray, asBooleanArray, asBooleanArray, asBooleanArray, asBooleanArray, asByteArray, asByteArray, asByteArray, asByteArray, asByteArray, asByteArray, asCharacterArray, asCharacterArray, asCharacterArray, asCharacterArray, asCharacterArray, asCharacterArray, asDoubleArray, asDoubleArray, asDoubleArray, asDoubleArray, asDoubleArray, asDoubleArray, asFloatArray, asFloatArray, asFloatArray, asFloatArray, asFloatArray, asFloatArray, asIntegerArray, asIntegerArray, asIntegerArray, asIntegerArray, asIntegerArray, asIntegerArray, asLongArray, asLongArray, asLongArray, asLongArray, asLongArray, asLongArray, asShortArray, asShortArray, asShortArray, asShortArray, asShortArray, asShortArray, containsKey, get, getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getCharacter, getCharacter, getCharacter, getDouble, getDouble, getDouble, getFloat, getFloat, getFloat, getInteger, getInteger, getInteger, getLong, getLong, getLong, getShort, getShort, getShort, use, useBoolean, useBoolean, useByte, useByte, useDouble, useDouble, useFloat, useFloat, useInteger, useInteger, useLong, useLong, useShort, useShort
      • Methods inherited from interface org.refcodes.structure.PropertiesAccessorMixin.PropertiesBuilderMixin

        withPut
      • Methods inherited from interface org.refcodes.structure.PropertiesAccessorMixin.PropertiesMutatorMixin

        put, put, putBoolean, putBoolean, putByte, putByte, putDouble, putDouble, putFloat, putFloat, putInteger, putInteger, putLong, putLong, putShort, putShort
    • Method Detail

      • getTopLevelType

        default TopLevelType getTopLevelType​()
        Retrieves the Media-Top-Level-Type from the Media-Top-Level-Type property.
        Specified by:
        getTopLevelType in interface TopLevelTypeAccessor
        Returns:
        The Media-Top-Level-Type stored by the Media-Top-Level-Type property.
      • withPut

        default ContentType withPut​(java.lang.String aKey,
                                    java.lang.String aValue)
        Specified by:
        withPut in interface org.refcodes.structure.CanonicalMap.CanonicalMapBuilder
        Specified by:
        withPut in interface org.refcodes.structure.Dictionary.MutableDictionary.DictionaryBuilder<java.lang.String,T extends java.lang.Object,org.refcodes.structure.PathMap.PathMapBuilder<T extends java.lang.Object>>
        Specified by:
        withPut in interface org.refcodes.structure.PathMap.PathMapBuilder<java.lang.String>
        Specified by:
        withPut in interface org.refcodes.configuration.Properties.PropertiesBuilder
        Specified by:
        withPut in interface org.refcodes.structure.PropertiesAccessorMixin.PropertiesBuilderMixin<java.lang.String>
      • withPut

        default ContentType withPut​(org.refcodes.structure.Relation<java.lang.String,java.lang.String> aProperty)
        Specified by:
        withPut in interface org.refcodes.structure.CanonicalMap.CanonicalMapBuilder
        Specified by:
        withPut in interface org.refcodes.structure.Dictionary.MutableDictionary.DictionaryBuilder<java.lang.String,T extends java.lang.Object,org.refcodes.structure.PathMap.PathMapBuilder<T extends java.lang.Object>>
        Specified by:
        withPut in interface org.refcodes.structure.PathMap.PathMapBuilder<java.lang.String>
        Specified by:
        withPut in interface org.refcodes.configuration.Properties.PropertiesBuilder
      • withPut

        default ContentType withPut​(java.lang.Object aPath,
                                    java.lang.String aValue)
        Specified by:
        withPut in interface org.refcodes.structure.CanonicalMap.CanonicalMapBuilder
        Specified by:
        withPut in interface org.refcodes.configuration.Properties.PropertiesBuilder
      • withPut

        default ContentType withPut​(java.lang.Object[] aPathElements,
                                    java.lang.String aValue)
                             throws java.lang.NumberFormatException
        Specified by:
        withPut in interface org.refcodes.structure.CanonicalMap.CanonicalMapBuilder
        Specified by:
        withPut in interface org.refcodes.configuration.Properties.PropertiesBuilder
        Throws:
        java.lang.NumberFormatException
      • withPut

        default ContentType withPut​(java.lang.String[] aPathElements,
                                    java.lang.String aValue)
                             throws java.lang.NumberFormatException
        Specified by:
        withPut in interface org.refcodes.structure.CanonicalMap.CanonicalMapBuilder
        Specified by:
        withPut in interface org.refcodes.configuration.Properties.PropertiesBuilder
        Throws:
        java.lang.NumberFormatException
      • withPutBoolean

        default ContentType withPutBoolean​(java.lang.Object[] aPathElements,
                                           java.lang.Boolean aValue)
        Specified by:
        withPutBoolean in interface org.refcodes.structure.CanonicalMap.CanonicalMapBuilder
        Specified by:
        withPutBoolean in interface org.refcodes.configuration.Properties.PropertiesBuilder
      • withPutBoolean

        default ContentType withPutBoolean​(java.lang.String aKey,
                                           java.lang.Boolean aValue)
        Specified by:
        withPutBoolean in interface org.refcodes.structure.CanonicalMap.CanonicalMapBuilder
        Specified by:
        withPutBoolean in interface org.refcodes.configuration.Properties.PropertiesBuilder
        Specified by:
        withPutBoolean in interface org.refcodes.structure.PropertiesAccessorMixin.PropertiesBuilderMixin<java.lang.String>
      • withPutBoolean

        default ContentType withPutBoolean​(java.lang.String[] aPathElements,
                                           java.lang.Boolean aValue)
        Specified by:
        withPutBoolean in interface org.refcodes.structure.CanonicalMap.CanonicalMapBuilder
        Specified by:
        withPutBoolean in interface org.refcodes.configuration.Properties.PropertiesBuilder
      • withPutByte

        default ContentType withPutByte​(java.lang.Object[] aPathElements,
                                        java.lang.Byte aValue)
        Specified by:
        withPutByte in interface org.refcodes.structure.CanonicalMap.CanonicalMapBuilder
        Specified by:
        withPutByte in interface org.refcodes.configuration.Properties.PropertiesBuilder
      • withPutByte

        default ContentType withPutByte​(java.lang.String aKey,
                                        java.lang.Byte aValue)
        Specified by:
        withPutByte in interface org.refcodes.structure.CanonicalMap.CanonicalMapBuilder
        Specified by:
        withPutByte in interface org.refcodes.configuration.Properties.PropertiesBuilder
        Specified by:
        withPutByte in interface org.refcodes.structure.PropertiesAccessorMixin.PropertiesBuilderMixin<java.lang.String>
      • withPutByte

        default ContentType withPutByte​(java.lang.String[] aPathElements,
                                        java.lang.Byte aValue)
        Specified by:
        withPutByte in interface org.refcodes.structure.CanonicalMap.CanonicalMapBuilder
        Specified by:
        withPutByte in interface org.refcodes.configuration.Properties.PropertiesBuilder
      • withPutDouble

        default ContentType withPutDouble​(java.lang.Object[] aPathElements,
                                          java.lang.Double aValue)
        Specified by:
        withPutDouble in interface org.refcodes.structure.CanonicalMap.CanonicalMapBuilder
        Specified by:
        withPutDouble in interface org.refcodes.configuration.Properties.PropertiesBuilder
      • withPutDouble

        default ContentType withPutDouble​(java.lang.String aKey,
                                          java.lang.Double aValue)
        Specified by:
        withPutDouble in interface org.refcodes.structure.CanonicalMap.CanonicalMapBuilder
        Specified by:
        withPutDouble in interface org.refcodes.configuration.Properties.PropertiesBuilder
        Specified by:
        withPutDouble in interface org.refcodes.structure.PropertiesAccessorMixin.PropertiesBuilderMixin<java.lang.String>
      • withPutDouble

        default ContentType withPutDouble​(java.lang.String[] aPathElements,
                                          java.lang.Double aValue)
        Specified by:
        withPutDouble in interface org.refcodes.structure.CanonicalMap.CanonicalMapBuilder
        Specified by:
        withPutDouble in interface org.refcodes.configuration.Properties.PropertiesBuilder
      • withPutFloat

        default ContentType withPutFloat​(java.lang.Object[] aPathElements,
                                         java.lang.Float aValue)
        Specified by:
        withPutFloat in interface org.refcodes.structure.CanonicalMap.CanonicalMapBuilder
        Specified by:
        withPutFloat in interface org.refcodes.configuration.Properties.PropertiesBuilder
      • withPutFloat

        default ContentType withPutFloat​(java.lang.String aKey,
                                         java.lang.Float aValue)
        Specified by:
        withPutFloat in interface org.refcodes.structure.CanonicalMap.CanonicalMapBuilder
        Specified by:
        withPutFloat in interface org.refcodes.configuration.Properties.PropertiesBuilder
        Specified by:
        withPutFloat in interface org.refcodes.structure.PropertiesAccessorMixin.PropertiesBuilderMixin<java.lang.String>
      • withPutFloat

        default ContentType withPutFloat​(java.lang.String[] aPathElements,
                                         java.lang.Float aValue)
        Specified by:
        withPutFloat in interface org.refcodes.structure.CanonicalMap.CanonicalMapBuilder
        Specified by:
        withPutFloat in interface org.refcodes.configuration.Properties.PropertiesBuilder
      • withPutInteger

        default ContentType withPutInteger​(java.lang.Object[] aPathElements,
                                           java.lang.Integer aValue)
        Specified by:
        withPutInteger in interface org.refcodes.structure.CanonicalMap.CanonicalMapBuilder
        Specified by:
        withPutInteger in interface org.refcodes.configuration.Properties.PropertiesBuilder
      • withPutInteger

        default ContentType withPutInteger​(java.lang.String aKey,
                                           java.lang.Integer aValue)
        Specified by:
        withPutInteger in interface org.refcodes.structure.CanonicalMap.CanonicalMapBuilder
        Specified by:
        withPutInteger in interface org.refcodes.configuration.Properties.PropertiesBuilder
        Specified by:
        withPutInteger in interface org.refcodes.structure.PropertiesAccessorMixin.PropertiesBuilderMixin<java.lang.String>
      • withPutInteger

        default ContentType withPutInteger​(java.lang.String[] aPathElements,
                                           java.lang.Integer aValue)
        Specified by:
        withPutInteger in interface org.refcodes.structure.CanonicalMap.CanonicalMapBuilder
        Specified by:
        withPutInteger in interface org.refcodes.configuration.Properties.PropertiesBuilder
      • withPutLong

        default ContentType withPutLong​(java.lang.Object[] aPathElements,
                                        java.lang.Long aValue)
        Specified by:
        withPutLong in interface org.refcodes.structure.CanonicalMap.CanonicalMapBuilder
        Specified by:
        withPutLong in interface org.refcodes.configuration.Properties.PropertiesBuilder
      • withPutLong

        default ContentType withPutLong​(java.lang.String aKey,
                                        java.lang.Long aValue)
        Specified by:
        withPutLong in interface org.refcodes.structure.CanonicalMap.CanonicalMapBuilder
        Specified by:
        withPutLong in interface org.refcodes.configuration.Properties.PropertiesBuilder
        Specified by:
        withPutLong in interface org.refcodes.structure.PropertiesAccessorMixin.PropertiesBuilderMixin<java.lang.String>
      • withPutLong

        default ContentType withPutLong​(java.lang.String[] aPathElements,
                                        java.lang.Long aValue)
        Specified by:
        withPutLong in interface org.refcodes.structure.CanonicalMap.CanonicalMapBuilder
        Specified by:
        withPutLong in interface org.refcodes.configuration.Properties.PropertiesBuilder
      • withPutShort

        default ContentType withPutShort​(java.lang.Object[] aPathElements,
                                         java.lang.Short aValue)
        Specified by:
        withPutShort in interface org.refcodes.structure.CanonicalMap.CanonicalMapBuilder
        Specified by:
        withPutShort in interface org.refcodes.configuration.Properties.PropertiesBuilder
      • withPutShort

        default ContentType withPutShort​(java.lang.String aKey,
                                         java.lang.Short aValue)
        Specified by:
        withPutShort in interface org.refcodes.structure.CanonicalMap.CanonicalMapBuilder
        Specified by:
        withPutShort in interface org.refcodes.configuration.Properties.PropertiesBuilder
        Specified by:
        withPutShort in interface org.refcodes.structure.PropertiesAccessorMixin.PropertiesBuilderMixin<java.lang.String>
      • withPutShort

        default ContentType withPutShort​(java.lang.String[] aPathElements,
                                         java.lang.Short aValue)
        Specified by:
        withPutShort in interface org.refcodes.structure.CanonicalMap.CanonicalMapBuilder
        Specified by:
        withPutShort in interface org.refcodes.configuration.Properties.PropertiesBuilder
      • withRemoveFrom

        default ContentType withRemoveFrom​(java.lang.String aPath)
        Specified by:
        withRemoveFrom in interface org.refcodes.structure.CanonicalMap.CanonicalMapBuilder
        Specified by:
        withRemoveFrom in interface org.refcodes.structure.PathMap.PathMapBuilder<java.lang.String>
        Specified by:
        withRemoveFrom in interface org.refcodes.configuration.Properties.PropertiesBuilder
      • put

        default java.lang.String put​(MediaTypeParameter aParameter,
                                     java.lang.String aValue)
        Put.
        Parameters:
        aParameter - the parameter
        aValue - the value
        Returns:
        the string
      • withPut

        default ContentType withPut​(MediaTypeParameter aParameter,
                                    java.lang.String aValue)
        With put.
        Parameters:
        aParameter - the aarameter
        aValue - the value
        Returns:
        the content type
      • getCharsetParametrer

        default java.lang.String getCharsetParametrer​()
        Retrieves the charset parameter from the properties of this ContentType instance.
        Returns:
        The charset parameter or null if none is found.
      • putCharsetParametrer

        default java.lang.String putCharsetParametrer​(java.lang.String aCharsetCode)
        Sets the charset parameter's charset-code.
        Parameters:
        aCharsetCode - The code of the charset to be set (e.g. "UTF-8"), see Encoding for some common codes.
        Returns:
        The charset parameter's charset-code (if previously been set) or null if none was set before.
      • withCharsetParametrer

        default ContentType withCharsetParametrer​(java.lang.String aValue)
        Sets the charset parameter's charset-code.
        Parameters:
        aValue - the value
        Returns:
        This ContentType instance as of the Builder-Pattern.
      • toHttpMediaType

        default java.lang.String toHttpMediaType​()
        Returns the HTTP media type: It consists of the Media-Top-Level-Type ( getTopLevelType() and the Media-Subtype ( MediaTypeAccessor.getMediaType()) as well as some (optional) suffixed parameters (as of Keys.keySet() and Keys.get(Object), mutable via Keys.MutableValues.put(Object, Object)) all being concatenated in an HTTP valid manner, such as: "application/json;charset=UTF-8".
        Specified by:
        toHttpMediaType in interface HttpMediaType
        Specified by:
        toHttpMediaType in interface HttpMediaTypeAccessor.HttpMediaTypeProvider<java.lang.String>
        Returns:
        The HTTP header Media-Type as of the IANA specification.