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<String,String>, org.refcodes.structure.Dictionary.MutableDictionary<String,String>, org.refcodes.structure.Dictionary.MutableDictionary.DictionaryBuilder<String,String,org.refcodes.structure.PathMap.PathMapBuilder<String>>, org.refcodes.mixin.Dumpable, HttpMediaType, HttpMediaTypeAccessor.HttpMediaTypeProvider<RuntimeException>, org.refcodes.structure.Keys<String,String>, org.refcodes.structure.Keys.MutableKeys<String,String>, org.refcodes.structure.Keys.MutableValues<String,String>, Map<String,String>, MediaTypeAccessor, org.refcodes.structure.PathMap<String>, org.refcodes.structure.PathMap.MutablePathMap<String>, org.refcodes.structure.PathMap.PathMapBuilder<String>, org.refcodes.configuration.Properties, org.refcodes.configuration.Properties.MutableProperties, org.refcodes.configuration.Properties.PropertiesBuilder, org.refcodes.structure.PropertiesAccessorMixin, org.refcodes.structure.PropertiesAccessorMixin.PropertiesBuilderMixin<org.refcodes.structure.CanonicalMap.CanonicalMapBuilder>, org.refcodes.structure.PropertiesAccessorMixin.PropertiesMixin, org.refcodes.structure.PropertiesAccessorMixin.PropertiesMutatorMixin, TopLevelTypeAccessor, org.refcodes.mixin.TypeAccessor<String>ContentTypeImplpublic interface ContentType extends TopLevelTypeAccessor, MediaTypeAccessor, org.refcodes.configuration.Properties.PropertiesBuilder, HttpMediaType
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.org.refcodes.structure.CanonicalMap.CanonicalMapBuilder, org.refcodes.structure.CanonicalMap.MutableCanonicalMaporg.refcodes.mixin.DelimiterAccessor.DelimiterBuilder<B extends org.refcodes.mixin.DelimiterAccessor.DelimiterBuilder<B>>, org.refcodes.mixin.DelimiterAccessor.DelimiterMutator, org.refcodes.mixin.DelimiterAccessor.DelimiterPropertyorg.refcodes.structure.Dictionary.MutableDictionary<K extends Object,V extends Object>org.refcodes.structure.Dictionary.MutableDictionary.DictionaryBuilder<K extends Object,V extends Object,B extends org.refcodes.structure.Dictionary.MutableDictionary.DictionaryBuilder<K,V,B>>MediaTypeAccessor.MediaTypeBuilder<B extends MediaTypeAccessor.MediaTypeBuilder<B>>, MediaTypeAccessor.MediaTypeMutator, MediaTypeAccessor.MediaTypePropertyorg.refcodes.structure.PathMap.MutablePathMap<T extends Object>, org.refcodes.structure.PathMap.PathMapBuilder<T extends Object>org.refcodes.configuration.Properties.MutableProperties, org.refcodes.configuration.Properties.PropertiesBuilderorg.refcodes.structure.PropertiesAccessorMixin.PropertiesBuilderMixin<T extends Object>, org.refcodes.structure.PropertiesAccessorMixin.PropertiesMixin, org.refcodes.structure.PropertiesAccessorMixin.PropertiesMutatorMixinTopLevelTypeAccessor.TopLevelTypeBuilder<B extends TopLevelTypeAccessor.TopLevelTypeBuilder<B>>, TopLevelTypeAccessor.TopLevelTypeMutator, TopLevelTypeAccessor.TopLevelTypeProperty| Modifier and Type | Method | Description |
|---|---|---|
default 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 String |
put(MediaTypeParameter aParameter,
String aValue) |
Put.
|
default String |
putCharsetParametrer(String aCharsetCode) |
Sets the charset parameter's charset-code.
|
default 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(String aValue) |
Sets the charset parameter's charset-code.
|
default ContentType |
withPut(String aKey,
String aValue) |
|
default ContentType |
withPut(MediaTypeParameter aParameter,
String aValue) |
With put.
|
default ContentType |
withPut(org.refcodes.structure.Relation<String,String> aProperty) |
toInstance, toInstance, toType, toTypewithInsert, withInsert, withInsertFrom, withInsertToinsert, insert, insertFrom, insertTo, putAll, toDump, toSourceCode, toSourceCodegetMediaTypedirectories, directories, entries, entries, fromExternalKey, getArray, getArray, getRootPath, hasParentPath, isArray, isArray, isDirectory, isEntry, isRecord, isRootPath, keySet, paths, paths, records, records, toDataStructure, toDataStructure, toExternalKey, toMap, toNormalizedPath, toNormalizedPath, toParentPath, toPathinsert, insert, insert, insert, insertFrom, insertFrom, insertTo, insertTo, put, putArray, putArray, removeAllwithInsert, withInsert, withInsertFrom, withInsertTogetDelimiter, getType, toMap, toProperties, toPropertyPathcontainsValue, delete, delete, insert, insert, insertFrom, insertTo, put, putAll, putAll, putAllchildrenOf, retrieve, retrieveFrom, retrieveTo, withInsert, withInsert, withInsert, withInsert, withInsertFrom, withInsertFrom, withInsertTo, withInsertTo, withPutBoolean, withPutByte, withPutDouble, withPutFloat, withPutInteger, withPutLong, withPutShort, withRemoveFromcontainsKey, get, getBoolean, getBoolean, getByte, getByte, getCharacter, getCharacter, getDouble, getDouble, getFloat, getFloat, getInteger, getInteger, getLong, getLong, getShort, getShort, use, useBoolean, useBoolean, useByte, useByte, useDouble, useDouble, useFloat, useFloat, useInteger, useInteger, useLong, useLong, useShort, useShortdefault TopLevelType getTopLevelType()
getTopLevelType in interface TopLevelTypeAccessordefault ContentType withPut(String aKey, String aValue)
withPut in interface org.refcodes.structure.CanonicalMap.CanonicalMapBuilderwithPut in interface org.refcodes.structure.Dictionary.MutableDictionary.DictionaryBuilder<String,String,org.refcodes.structure.PathMap.PathMapBuilder<String>>withPut in interface org.refcodes.structure.PathMap.PathMapBuilder<String>withPut in interface org.refcodes.configuration.Properties.PropertiesBuilderwithPut in interface org.refcodes.structure.PropertiesAccessorMixin.PropertiesBuilderMixin<org.refcodes.structure.CanonicalMap.CanonicalMapBuilder>default ContentType withPut(org.refcodes.structure.Relation<String,String> aProperty)
withPut in interface org.refcodes.structure.CanonicalMap.CanonicalMapBuilderwithPut in interface org.refcodes.structure.Dictionary.MutableDictionary.DictionaryBuilder<String,String,org.refcodes.structure.PathMap.PathMapBuilder<String>>withPut in interface org.refcodes.structure.PathMap.PathMapBuilder<String>withPut in interface org.refcodes.configuration.Properties.PropertiesBuilderdefault String put(MediaTypeParameter aParameter, String aValue)
aParameter - the parameteraValue - the valuedefault ContentType withPut(MediaTypeParameter aParameter, String aValue)
aParameter - the aarameteraValue - the valuedefault String getCharsetParametrer()
ContentType instance.default String putCharsetParametrer(String aCharsetCode)
aCharsetCode - The code of the charset to be set (e.g. "UTF-8"), see
Encoding for some common codes.default ContentType withCharsetParametrer(String aValue)
aValue - the valueContentType instance as of the Builder-Pattern.default String toHttpMediaType()
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".toHttpMediaType in interface HttpMediaTypetoHttpMediaType in interface HttpMediaTypeAccessor.HttpMediaTypeProvider<RuntimeException>Copyright © 2018. All rights reserved.