|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Capabilities Component Interface
Method Summary | |
void |
deleteCapabilityMapCache()
Clears CapabilityMap cache TODO: Roger, why is this on the public interface. |
Client |
findClient(String userAgent)
Finds a client for a given userAgentPattern |
CapabilityMap |
getCapabilityMap(String userAgent)
Creates a Capability Map with Capabilities, Mimetypes and mediaTypes for the given UserAgentPattern |
Iterator |
getClients()
Obtain an iterator of all existing clients. |
MediaType |
getMediaType(String mediaType)
Given a media type string, look up the corresponding media type object. |
MediaType |
getMediaTypeForMimeType(String mimeTypeName)
Given a Mimetype string lookup the corresponding media type object |
Collection |
getMediaTypesForMimeTypes(Iterator mimetypes)
Returns a collection of MediaTypes that matches the MimeTypes defined in the mimetype parameter |
Method Detail |
public CapabilityMap getCapabilityMap(String userAgent) throws UnableToBuildCapabilityMapException
userAgent
- Agent from the request
null
UnableToBuildCapabilityMapException
- If a capability could not be createdpublic Iterator getClients()
public Client findClient(String userAgent)
userAgent
-
public Collection getMediaTypesForMimeTypes(Iterator mimetypes)
public void deleteCapabilityMapCache()
public MediaType getMediaType(String mediaType)
mediaType
- The string representation of a media type.
public MediaType getMediaTypeForMimeType(String mimeTypeName)
mimeTypeName
- to use for lookup
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |