public class ContentTypeImpl extends org.refcodes.configuration.PropertiesBuilderImpl implements ContentType
ContentType
interface.AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
TopLevelTypeAccessor.TopLevelTypeBuilder<B extends TopLevelTypeAccessor.TopLevelTypeBuilder<B>>, TopLevelTypeAccessor.TopLevelTypeMutator, TopLevelTypeAccessor.TopLevelTypeProperty
MediaTypeAccessor.MediaTypeBuilder<B extends MediaTypeAccessor.MediaTypeBuilder<B>>, MediaTypeAccessor.MediaTypeMutator, MediaTypeAccessor.MediaTypeProperty
org.refcodes.configuration.Properties.MutableProperties, org.refcodes.configuration.Properties.PropertiesBuilder
org.refcodes.structure.CanonicalMap.CanonicalMapBuilder, org.refcodes.structure.CanonicalMap.MutableCanonicalMap
org.refcodes.structure.PropertiesAccessorMixin.PropertiesBuilderMixin<T>, org.refcodes.structure.PropertiesAccessorMixin.PropertiesMixin, org.refcodes.structure.PropertiesAccessorMixin.PropertiesMutatorMixin
org.refcodes.structure.PathMap.MutablePathMap<T>, org.refcodes.structure.PathMap.PathMapBuilder<T>
org.refcodes.mixin.DelimiterAccessor.DelimiterBuilder<B extends org.refcodes.mixin.DelimiterAccessor.DelimiterBuilder<B>>, org.refcodes.mixin.DelimiterAccessor.DelimiterMutator, org.refcodes.mixin.DelimiterAccessor.DelimiterProperty
org.refcodes.mixin.TypeAccessor.TypeMutator<T>, org.refcodes.mixin.TypeAccessor.TypeProperty<T>
Constructor and Description |
---|
ContentTypeImpl(MediaType aMediaType)
|
ContentTypeImpl(MediaType aMediaType,
Map<String,String> aProperties)
Instantiates a new content type impl.
|
ContentTypeImpl(String aHttpMediaType)
Constructs a
ContentType instance form a Media-Argument
String as passed in the according HTTP Header-Fields. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
MediaType |
getMediaType()
Retrieves the Media-Type from the Media-Type property.
|
int |
hashCode() |
String |
toString() |
retrieveFrom, retrieveTo
compute, computeIfAbsent, computeIfPresent, containsKey, get, getDelimiter, getOrDefault, getType, merge, put, putIfAbsent, remove, remove, replace, replace, toDataStructure
clear, clone, containsValue, entrySet, forEach, isEmpty, keySet, putAll, replaceAll, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
getCharsetParametrer, getTopLevelType, put, putCharsetParametrer, toHttpMediaType, withCharsetParametrer, withPut, withPut, withPut
withInsert, withInsert, withInsert, withInsert, withInsertFrom, withInsertFrom, withInsertTo, withInsertTo, withPutBoolean, withPutByte, withPutDouble, withPutFloat, withPutInteger, withPutLong, withPutShort, withRemoveFrom
withInsert, withInsert, withInsertFrom, withInsertTo
withInsert, withInsert, withInsertFrom, withInsertTo
withPut
put, put, putBoolean, putBoolean, putByte, putByte, putDouble, putDouble, putFloat, putFloat, putInteger, putInteger, putLong, putLong, putShort, putShort
containsValue, delete, delete, insert, insert, insertFrom, insertTo, put, putAll, putAll, putAll
getType, retrieve, retrieveFrom, retrieveTo, toMap, toProperties, toPropertyPath
insert, insert, insertFrom, insertTo, putAll, toDump, toSourceCode
toInstance, toInstance, toType, toType
containsKey, 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, useShort
insert, insert, insert, insert, insertFrom, insertFrom, insertTo, insertTo, put, putArray, putArray, removeAll
directories, directories, entries, entries, fromExternalKey, getArray, getArray, hasParentPath, isArray, isArray, isDirectory, isEntry, isRecord, isRootPath, keySet, paths, paths, records, records, toDataStructure, toDataStructure, toExternalKey, toMap, toNormalizedPath, toNormalizedPath, toParentPath, toRootPath
public ContentTypeImpl(MediaType aMediaType)
aMediaType
- The MediaType
from which to create the
ContentType
instance.public ContentTypeImpl(String aHttpMediaType)
ContentType
instance form a Media-Argument
String
as passed in the according HTTP Header-Fields. A
Media-Argument String
may look as follows:
"application/json;charset=UTF-8". The properties introduced by a
semicolon (";") are parsed into the ContentType
's parameters map
(accessible via HashMap.keySet()
, HashMap.values()
,
PathMapBuilderImpl.get(Object)
or adjustable by PathMapBuilderImpl.put(String, Object)
and
the such Properties
operations).aHttpMediaType
- A HTTP Header-Fields Media-Argument String
.public String toString()
toString
in class AbstractMap<String,String>
public int hashCode()
public boolean equals(Object obj)
public MediaType getMediaType()
getMediaType
in interface MediaTypeAccessor
Copyright © 2017. All rights reserved.