public class MediaTypeMapImpl<V> extends Object implements MediaTypeMap<V>
| Constructor and Description |
|---|
MediaTypeMapImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(MediaType mediaType)
Returns true if the map declares the specified media type.
|
boolean |
contains(MediaType mediaType,
V value)
Returns true if the map declares the specified media type with a specified value.
|
boolean |
contains(TypeDef type)
Returns true if the map declares the specified type.
|
boolean |
contains(TypeDef type,
V value)
Returns true if the map declares the specified type with a specific value.
|
boolean |
contains(V value)
Returns true if the map declares the specified value for any media type or any type.
|
Set<V> |
get(MediaType mediaType)
Returns the set of values declared for a given media type.
|
Set<V> |
get(TypeDef type)
Returns the set of values declared for a given type.
|
Set<MediaType> |
getMediaTypes()
Returns the set of declared media types.
|
Set<TypeDef> |
getTypes()
Returns the set of declared types.
|
Set<V> |
getValues()
Returns the set of declared values.
|
boolean |
isSupported(MediaType mediaType)
Returns true if the map supports the specified media type.
|
boolean |
isSupported(MediaType mediaType,
V value)
Returns true if the map supports the specified media type with a specified value.
|
boolean |
isSupported(TypeDef type)
Returns true if the map supports the specified type.
|
boolean |
isSupported(TypeDef type,
V value)
Returns true if the map supports the specified type with a specific value.
|
boolean |
isSupported(V value)
Returns true if the map supports the specified value for any media type or any type.
|
void |
put(MediaType mediaType,
V value)
Adds a value to the map.
|
void |
put(String mediaTypePattern,
V value)
Adds a value to the map using a media type pattern.
|
void |
put(TypeDef type,
V value)
Adds a value to the map.
|
void |
put(V value)
Adds a value to the map.
|
Set<V> |
resolve(MediaType mediaType)
Returns the set of values supported for a given media type.
|
Set<V> |
resolve(TypeDef type)
Returns the set of values supported for a given type.
|
public void put(String mediaTypePattern, V value) throws IllegalArgumentException
mediaTypePattern - the media type patternvalue - the valueIllegalArgumentException - if any argument is null or the media type pattern is not validpublic void put(MediaType mediaType, V value) throws IllegalArgumentException
mediaType - the media typevalue - the valueIllegalArgumentException - if any argument is nullpublic void put(TypeDef type, V value) throws IllegalArgumentException
type - the typevalue - the valueIllegalArgumentException - if any argument is nullpublic void put(V value)
value - the valueIllegalArgumentException - if any argument is nullpublic Set<V> resolve(MediaType mediaType)
MediaTypeMapresolve in interface MediaTypeMap<V>mediaType - the media typepublic Set<V> resolve(TypeDef type)
MediaTypeMapresolve in interface MediaTypeMap<V>type - the typepublic Set<V> get(MediaType mediaType)
MediaTypeMapget in interface MediaTypeMap<V>mediaType - the media typepublic Set<V> get(TypeDef type)
MediaTypeMapget in interface MediaTypeMap<V>type - the typepublic Set<V> getValues()
MediaTypeMapgetValues in interface MediaTypeMap<V>public boolean isSupported(MediaType mediaType)
MediaTypeMapisSupported in interface MediaTypeMap<V>mediaType - the media typepublic boolean isSupported(TypeDef type)
MediaTypeMapisSupported in interface MediaTypeMap<V>type - the typepublic boolean isSupported(MediaType mediaType, V value)
MediaTypeMapisSupported in interface MediaTypeMap<V>mediaType - the media typevalue - the valuepublic boolean isSupported(TypeDef type, V value)
MediaTypeMapisSupported in interface MediaTypeMap<V>type - the typevalue - the valuepublic boolean isSupported(V value)
MediaTypeMapisSupported in interface MediaTypeMap<V>value - the valuepublic boolean contains(MediaType mediaType)
MediaTypeMapcontains in interface MediaTypeMap<V>mediaType - the media typepublic boolean contains(TypeDef type)
MediaTypeMapcontains in interface MediaTypeMap<V>type - the typepublic boolean contains(MediaType mediaType, V value)
MediaTypeMapcontains in interface MediaTypeMap<V>mediaType - the media typevalue - the valuepublic boolean contains(TypeDef type, V value)
MediaTypeMapcontains in interface MediaTypeMap<V>type - the typevalue - the valuepublic boolean contains(V value)
MediaTypeMapcontains in interface MediaTypeMap<V>value - the valuepublic Set<MediaType> getMediaTypes()
MediaTypeMapgetMediaTypes in interface MediaTypeMap<V>public Set<TypeDef> getTypes()
MediaTypeMapgetTypes in interface MediaTypeMap<V>Copyright © 2025 JBoss by Red Hat. All Rights Reserved.