|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MediaTypeMap<V>
A map containing values associated with media types. The map has the capability to map wildcard subtypes (for instance text / *) or the wildcard type (* / *). In order to make the distinction between what the map declares and what it supports it is possible to query the map with resolution or not.
| Method Summary | |
|---|---|
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. |
java.util.Set<V> |
get(MediaType mediaType)
Returns the set of values declared for a given media type. |
java.util.Set<V> |
get(TypeDef type)
Returns the set of values declared for a given type. |
java.util.Set<MediaType> |
getMediaTypes()
Returns the set of declared media types. |
java.util.Set<TypeDef> |
getTypes()
Returns the set of declared types. |
java.util.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. |
java.util.Set<V> |
resolve(MediaType mediaType)
Returns the set of values supported for a given media type. |
java.util.Set<V> |
resolve(TypeDef type)
Returns the set of values supported for a given type. |
| Method Detail |
|---|
boolean contains(MediaType mediaType)
throws java.lang.IllegalArgumentException
mediaType - the media type
java.lang.IllegalArgumentException - if the argument is null
boolean contains(TypeDef type)
throws java.lang.IllegalArgumentException
type - the type
java.lang.IllegalArgumentException - if the argument is null
boolean contains(MediaType mediaType,
V value)
throws java.lang.IllegalArgumentException
mediaType - the media typevalue - the value
java.lang.IllegalArgumentException - if any argument is null
boolean contains(TypeDef type,
V value)
throws java.lang.IllegalArgumentException
type - the typevalue - the value
java.lang.IllegalArgumentException - if any argument is null
boolean contains(V value)
throws java.lang.IllegalArgumentException
value - the value
java.lang.IllegalArgumentException - if any argument is null
java.util.Set<V> get(MediaType mediaType)
throws java.lang.IllegalArgumentException
mediaType - the media type
java.lang.IllegalArgumentException - if any argument is null
java.util.Set<V> get(TypeDef type)
throws java.lang.IllegalArgumentException
type - the type
java.lang.IllegalArgumentException - if any argument is null
boolean isSupported(MediaType mediaType)
throws java.lang.IllegalArgumentException
mediaType - the media type
java.lang.IllegalArgumentException - if the argument is null
boolean isSupported(TypeDef type)
throws java.lang.IllegalArgumentException
type - the type
java.lang.IllegalArgumentException - if the argument is null
boolean isSupported(MediaType mediaType,
V value)
throws java.lang.IllegalArgumentException
mediaType - the media typevalue - the value
java.lang.IllegalArgumentException - if any argument is null
boolean isSupported(TypeDef type,
V value)
throws java.lang.IllegalArgumentException
type - the typevalue - the value
java.lang.IllegalArgumentException - if any argument is null
boolean isSupported(V value)
throws java.lang.IllegalArgumentException
value - the value
java.lang.IllegalArgumentException - if any argument is null
java.util.Set<V> resolve(MediaType mediaType)
throws java.lang.IllegalArgumentException
mediaType - the media type
java.lang.IllegalArgumentException - if any argument is null
java.util.Set<V> resolve(TypeDef type)
throws java.lang.IllegalArgumentException
type - the type
java.lang.IllegalArgumentException - if any argument is nulljava.util.Set<MediaType> getMediaTypes()
java.util.Set<TypeDef> getTypes()
java.util.Set<V> getValues()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||