|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CapabilityMap
This interface provides lookup features on the capabilities supported by a client user agent.
Method Summary | |
---|---|
void |
addCapability(Capability capability)
Add capability to the CapabilityMap |
void |
addMediaType(MediaType mediatype)
Add MediaType to the MediaTypeMap |
void |
addMimetype(MimeType mimetype)
Add Mimetype to the MimetypeMap |
java.lang.String |
getAgent()
|
Client |
getClient()
Returns the Client for the CapabilityMap |
java.util.Iterator |
getMimeTypes()
Get the mime types that this CapabilityMap supports. |
MediaType |
getPreferredMediaType()
|
MimeType |
getPreferredType()
|
boolean |
hasCapability(int cap)
|
boolean |
hasCapability(java.lang.String capability)
|
java.util.Iterator |
listMediaTypes()
Returns an ordered list of supported media-types, from most preferred to least preferred |
void |
setAgent(java.lang.String userAgent)
|
void |
setClient(Client client)
Sets the client for the CapabilityMap |
void |
setPreferredMediaType(MediaType type)
Sets the preferred MediaType for this CapabilityMap |
boolean |
supportsMediaType(java.lang.String media)
Return true if this CapabilityMap supports the given media type |
boolean |
supportsMimeType(MimeType mimeType)
|
java.lang.String |
toString()
|
Method Detail |
---|
void setClient(Client client)
client
- The client associated with this mapClient getClient()
void addCapability(Capability capability)
capability
- void addMimetype(MimeType mimetype)
mimetype
- void addMediaType(MediaType mediatype)
Mediatype
- to addMimeType getPreferredType()
MediaType getPreferredMediaType()
void setPreferredMediaType(MediaType type)
MediaTypeEntry
- java.util.Iterator listMediaTypes()
java.lang.String getAgent()
void setAgent(java.lang.String userAgent)
boolean hasCapability(int cap)
CApabilityID
-
boolean hasCapability(java.lang.String capability)
Capability
-
java.util.Iterator getMimeTypes()
boolean supportsMimeType(MimeType mimeType)
MimeType
-
boolean supportsMediaType(java.lang.String media)
media
- the name of a media type registered in the
MediaType registry
java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |