public class ContentTypeImpl extends org.refcodes.collection.impls.PropertiesImpl.PropertiesBuilderImpl implements ContentType
ContentType
interface.org.refcodes.collection.impls.PropertiesImpl.MutablePropertiesImpl, org.refcodes.collection.impls.PropertiesImpl.PropertiesBuilderImpl
TopLevelTypeAccessor.TopLevelTypeBuilder<B extends TopLevelTypeAccessor.TopLevelTypeBuilder<B>>, TopLevelTypeAccessor.TopLevelTypeMutator, TopLevelTypeAccessor.TopLevelTypeProperty
MediaTypeAccessor.MediaTypeBuilder<B extends MediaTypeAccessor.MediaTypeBuilder<B>>, MediaTypeAccessor.MediaTypeMutator, MediaTypeAccessor.MediaTypeProperty
org.refcodes.collection.Properties.ClearableProperties, org.refcodes.collection.Properties.MutableProperties, org.refcodes.collection.Properties.PropertiesBuilder
org.refcodes.collection.Dictionary.MutableDictionary.DictionaryBuilder<K,V,T extends org.refcodes.structure.Relation<K,V>,B extends org.refcodes.collection.Dictionary.MutableDictionary.DictionaryBuilder<K,V,T,B>>
Constructor and Description |
---|
ContentTypeImpl(MediaType aMediaType)
|
ContentTypeImpl(MediaType aMediaType,
org.refcodes.collection.Properties aProperties) |
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() |
ContentType |
withPut(org.refcodes.structure.Property aProperty) |
ContentType |
withPut(String aKey,
String aValue) |
clear, put, put, put, removeKey
containsKey, get, isEmpty, keySet, size, values
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getCharsetParametrer, getTopLevelType, put, putCharsetParametrer, toHttpMediaType, withCharsetParametrer, withPut
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 parameters map (as of
#getParameters()
).aHttpMediaType
- A HTTP header fields Media-Argument String
.public ContentTypeImpl(MediaType aMediaType, org.refcodes.collection.Properties aProperties)
public ContentType withPut(String aKey, String aValue)
withPut
in interface org.refcodes.collection.Dictionary.MutableDictionary.DictionaryBuilder<String,String,org.refcodes.structure.Property,org.refcodes.collection.Properties.PropertiesBuilder>
withPut
in interface org.refcodes.collection.Properties.PropertiesBuilder
withPut
in interface ContentType
withPut
in class org.refcodes.collection.impls.PropertiesImpl.PropertiesBuilderImpl
public ContentType withPut(org.refcodes.structure.Property aProperty)
withPut
in interface org.refcodes.collection.Dictionary.MutableDictionary.DictionaryBuilder<String,String,org.refcodes.structure.Property,org.refcodes.collection.Properties.PropertiesBuilder>
withPut
in interface org.refcodes.collection.Properties.PropertiesBuilder
withPut
in interface ContentType
withPut
in class org.refcodes.collection.impls.PropertiesImpl.PropertiesBuilderImpl
public int hashCode()
hashCode
in class org.refcodes.collection.impls.PropertiesImpl.PropertiesBuilderImpl
public boolean equals(Object obj)
equals
in class org.refcodes.collection.impls.PropertiesImpl.PropertiesBuilderImpl
public MediaType getMediaType()
MediaTypeAccessor
getMediaType
in interface MediaTypeAccessor
Copyright © 2016. All rights reserved.