|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Capabilities
Capabilities Component Interface
| Method Summary | |
|---|---|
Capability |
createCapability(String capabilityName)
Create a new capability in the system or return the existing one if already exists |
Client |
createClient(String clientName)
Create a new client in the system or return the existing one if already exists |
MediaType |
createMediaType(String mediaTypeName)
Create a new mediaType in the system or return the existing one if already exists |
MimeType |
createMimeType(String mimeTypeName)
Create a new mimetype in the system or return the existing one if already exists |
void |
deleteCapability(Capability capability)
delete existing capability from backend storage |
void |
deleteCapabilityMapCache()
Clears CapabilityMap cache TODO: Roger, why is this on the public interface. |
void |
deleteClient(Client client)
delete existing client from backend storage |
void |
deleteMediaType(MediaType mediaType)
delete existing media type from backend storage |
void |
deleteMimeType(MimeType mimeType)
delete existing mime type from backend storage |
Client |
findClient(String userAgent)
Finds a client for a given userAgentPattern |
Iterator |
getCapabilities()
Obtain an iterator of all existing capabilities. |
Capability |
getCapability(String capability)
Given a capability string, look up the corresponding capability object. |
String |
getCapabilityBeanName()
Obtain the name of the CapabilityBean reference |
CapabilityMap |
getCapabilityMap(String userAgent)
Creates a Capability Map with Capabilities, Mimetypes and mediaTypes for the given UserAgentPattern |
Client |
getClient(String clientName)
Given a client name, look up the corresponding client object. |
String |
getClientBeanName()
Obtain the name of the ClientBean reference |
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. |
String |
getMediaTypeBeanName()
Obtain the name of the Media Type reference |
MediaType |
getMediaTypeForMimeType(String mimeTypeName)
Given a Mimetype string lookup the corresponding media type object |
Iterator |
getMediaTypes()
Obtain an iterator of all existing media types. |
Collection |
getMediaTypesForMimeTypes(Iterator mimetypes)
Returns a collection of MediaTypes that matches the MimeTypes defined in the mimetype parameter |
MimeType |
getMimeType(String mimeType)
Given a mime type string, look up the corresponding mime type object. |
String |
getMimeTypeBeanName()
Obtain the name of the Mime Type reference |
Iterator |
getMimeTypes()
Obtain an iterator of all existing mime types. |
void |
setCapabilityBeanName(String capabilityBeanName)
Set the name of the CapabilityBean reference - used exclusively in IoC |
void |
setClientBeanName(String clientBeanName)
Set the name of the ClientBean reference - used exclusively in IoC |
void |
setMediaTypeBeanName(String mediaTypeBeanName)
Set the name of the MediaType bean reference - used exclusively in IoC |
void |
setMimeTypeBeanName(String mimeTypeBeanName)
Set the name of the MimeType bean reference - used exclusively in IoC |
void |
storeCapability(Capability capability)
Save capability to backend storage |
void |
storeClient(Client client)
Save client to backend storage |
void |
storeMediaType(MediaType mediaType)
Save media type to backend storage |
void |
storeMimeType(MimeType mimeType)
Save mime type to backend storage |
| Method Detail |
|---|
CapabilityMap getCapabilityMap(String userAgent)
throws UnableToBuildCapabilityMapException
userAgent - Agent from the request
null
UnableToBuildCapabilityMapException - If a capability could not be createdIterator getClients()
Client findClient(String userAgent)
userAgent -
Collection getMediaTypesForMimeTypes(Iterator mimetypes)
Mimetype -
void deleteCapabilityMapCache()
MediaType getMediaType(String mediaType)
mediaType - The string representation of a media type.
MediaType getMediaTypeForMimeType(String mimeTypeName)
mimeTypeName - to use for lookup
Capability getCapability(String capability)
capability - The string representation of a capability.
MimeType getMimeType(String mimeType)
mimeType - The string representation of a mime type.
Client getClient(String clientName)
clientName - The name of the client.
Iterator getCapabilities()
CapabilityIterator getMimeTypes()
MimeTypeIterator getMediaTypes()
MediaTypeString getCapabilityBeanName()
void setCapabilityBeanName(String capabilityBeanName)
capabilityBeanName - The ref-id of the capability bean.String getClientBeanName()
void setClientBeanName(String clientBeanName)
clientBeanName - The ref-id of the client bean.String getMediaTypeBeanName()
void setMediaTypeBeanName(String mediaTypeBeanName)
mediaTypeBeanName - The ref-id of the mediaType bean.String getMimeTypeBeanName()
void setMimeTypeBeanName(String mimeTypeBeanName)
mimeTypeBeanName - The ref-id of the mimeType bean.
Capability createCapability(String capabilityName)
throws ClassNotFoundException
capabilityName - The string describing the capability
ClassNotFoundException
MimeType createMimeType(String mimeTypeName)
throws ClassNotFoundException
mimeTypeName - The string describing the mimeType
ClassNotFoundException
MediaType createMediaType(String mediaTypeName)
throws ClassNotFoundException
mediaTypeName - The string describing the mediaType
ClassNotFoundException
Client createClient(String clientName)
throws ClassNotFoundException
clientName - The string describing the client
ClassNotFoundException
void storeMediaType(MediaType mediaType)
throws CapabilitiesException
mediaType - valid mediatype object
CapabilitiesException
void deleteMediaType(MediaType mediaType)
throws CapabilitiesException
mediaType - valid mediatype object
CapabilitiesException
void storeCapability(Capability capability)
throws CapabilitiesException
capability - valid capability object
CapabilitiesException
void deleteCapability(Capability capability)
throws CapabilitiesException
capability - valid capability object
CapabilitiesException
void storeMimeType(MimeType mimeType)
throws CapabilitiesException
mimeType - valid mimetype object
CapabilitiesException
void deleteMimeType(MimeType mimeType)
throws CapabilitiesException
mimeType - valid mimetype object
CapabilitiesException
void storeClient(Client client)
throws CapabilitiesException
client - valid Client object
CapabilitiesException
void deleteClient(Client client)
throws CapabilitiesException
client - valid client object
CapabilitiesException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||