|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.portal.common.net.media.MediaTypeMapImpl<V>
public class MediaTypeMapImpl<V>
An implementation of the media type map interface.
| Constructor Summary | |
|---|---|
MediaTypeMapImpl()
|
|
| 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. |
void |
put(MediaType mediaType,
V value)
Adds a value to the map. |
void |
put(java.lang.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. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MediaTypeMapImpl()
| Method Detail |
|---|
public void put(java.lang.String mediaTypePattern,
V value)
throws java.lang.IllegalArgumentException
mediaTypePattern - the media type patternvalue - the value
java.lang.IllegalArgumentException - if any argument is null or the media type pattern is not valid
public void put(MediaType mediaType,
V value)
throws java.lang.IllegalArgumentException
mediaType - the media typevalue - the value
java.lang.IllegalArgumentException - if any argument is null
public void put(TypeDef type,
V value)
throws java.lang.IllegalArgumentException
type - the typevalue - the value
java.lang.IllegalArgumentException - if any argument is nullpublic void put(V value)
value - the value
java.lang.IllegalArgumentException - if any argument is nullpublic java.util.Set<V> resolve(MediaType mediaType)
MediaTypeMap
resolve in interface MediaTypeMap<V>mediaType - the media type
public java.util.Set<V> resolve(TypeDef type)
MediaTypeMap
resolve in interface MediaTypeMap<V>type - the type
public java.util.Set<V> get(MediaType mediaType)
MediaTypeMap
get in interface MediaTypeMap<V>mediaType - the media type
public java.util.Set<V> get(TypeDef type)
MediaTypeMap
get in interface MediaTypeMap<V>type - the type
public java.util.Set<V> getValues()
MediaTypeMap
getValues in interface MediaTypeMap<V>public boolean isSupported(MediaType mediaType)
MediaTypeMap
isSupported in interface MediaTypeMap<V>mediaType - the media type
public boolean isSupported(TypeDef type)
MediaTypeMap
isSupported in interface MediaTypeMap<V>type - the type
public boolean isSupported(MediaType mediaType,
V value)
MediaTypeMap
isSupported in interface MediaTypeMap<V>mediaType - the media typevalue - the value
public boolean isSupported(TypeDef type,
V value)
MediaTypeMap
isSupported in interface MediaTypeMap<V>type - the typevalue - the value
public boolean isSupported(V value)
MediaTypeMap
isSupported in interface MediaTypeMap<V>value - the value
public boolean contains(MediaType mediaType)
MediaTypeMap
contains in interface MediaTypeMap<V>mediaType - the media type
public boolean contains(TypeDef type)
MediaTypeMap
contains in interface MediaTypeMap<V>type - the type
public boolean contains(MediaType mediaType,
V value)
MediaTypeMap
contains in interface MediaTypeMap<V>mediaType - the media typevalue - the value
public boolean contains(TypeDef type,
V value)
MediaTypeMap
contains in interface MediaTypeMap<V>type - the typevalue - the value
public boolean contains(V value)
MediaTypeMap
contains in interface MediaTypeMap<V>value - the value
public java.util.Set<MediaType> getMediaTypes()
MediaTypeMap
getMediaTypes in interface MediaTypeMap<V>public java.util.Set<TypeDef> getTypes()
MediaTypeMap
getTypes in interface MediaTypeMap<V>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||