getCapability(String capability) Given a capability string, look up the corresponding capability object.
Parameters: capability - The string representation of a capability.
getCapabilityMap(String userAgent) Creates a Capability Map with Capabilities, Mimetypes and mediaTypes for the given UserAgentPattern
Parameters: userAgent - Agent from the request CapabilityMap populated with Capabilities, Mimetypes and Mediatypethat match the userAgent.
getMediaType(String mediaType) Given a media type string, look up the corresponding media type object.
Parameters: mediaType - The string representation of a media type.
getMimeType(String mimeType) Given a mime type string, look up the corresponding mime type object.
Parameters: mimeType - The string representation of a mime type.
Create a new capability in the system or return the existing one if already exists
Parameters: capabilityName - The string describing the capability A new (or existing) capability
Create a new client in the system or return the existing one if already exists
Parameters: clientName - The string describing the client A new (or existing) client
Create a new mediaType in the system or return the existing one if already exists
Parameters: mediaTypeName - The string describing the mediaType A new (or existing) MediaType
Create a new mimetype in the system or return the existing one if already exists
Parameters: mimeTypeName - The string describing the mimeType A new (or existing) MimeType
Given a capability string, look up the corresponding capability object.
Parameters: capability - The string representation of a capability. The found capability object or if not found, null.
Creates a Capability Map with Capabilities, Mimetypes and mediaTypes for the given UserAgentPattern
Parameters: userAgent - Agent from the request CapabilityMap populated with Capabilities, Mimetypes and Mediatypethat match the userAgent. Never returns null throws: UnableToBuildCapabilityMapException - If a capability could not be created
Given a client name, look up the corresponding client object.
Parameters: clientName - The name of the client. The found client object or if not found, null.
Given a media type string, look up the corresponding media type object.
Parameters: mediaType - The string representation of a media type. The found media type object or if not found, null.
Given a Mimetype string lookup the corresponding media type object
Parameters: mimeTypeName - to use for lookup MediaTypeEntry that matches the lookup in the MEDIATYPE_TO_MIMETYPE table
Returns a collection of MediaTypes that matches the MimeTypes defined in the mimetype parameter
Parameters: Mimetype - Collection of Mediatypes that matches the mimetypes
Given a mime type string, look up the corresponding mime type object.
Parameters: mimeType - The string representation of a mime type. The found mime type object or if not found, null.