|
||||||||||
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 |
String |
getAgent()
|
Client |
getClient()
Returns the Client for the CapabilityMap |
Iterator |
getMimeTypes()
Get the mime types that this CapabilityMap supports. |
MediaType |
getPreferredMediaType()
|
MimeType |
getPreferredType()
|
boolean |
hasCapability(int cap)
|
boolean |
hasCapability(String capability)
|
Iterator |
listMediaTypes()
Returns an ordered list of supported media-types, from most preferred to least preferred |
void |
setAgent(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(String media)
Return true if this CapabilityMap supports the given media type |
boolean |
supportsMimeType(MimeType mimeType)
|
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
- Iterator listMediaTypes()
String getAgent()
void setAgent(String userAgent)
boolean hasCapability(int cap)
CApabilityID
-
boolean hasCapability(String capability)
Capability
-
Iterator getMimeTypes()
boolean supportsMimeType(MimeType mimeType)
MimeType
-
boolean supportsMediaType(String media)
media
- the name of a media type registered in the
MediaType registry
String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |