|
||||||||||
| 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(java.lang.String capabilityName)
Create a new capability in the system or return the existing one if already exists |
Client |
createClient(java.lang.String clientName)
Create a new client in the system or return the existing one if already exists |
MediaType |
createMediaType(java.lang.String mediaTypeName)
Create a new mediaType in the system or return the existing one if already exists |
MimeType |
createMimeType(java.lang.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(java.lang.String userAgent)
Finds a client for a given userAgentPattern |
java.util.Iterator |
getCapabilities()
Obtain an iterator of all existing capabilities. |
Capability |
getCapability(java.lang.String capability)
Given a capability string, look up the corresponding capability object. |
java.lang.String |
getCapabilityBeanName()
Obtain the name of the CapabilityBean reference |
CapabilityMap |
getCapabilityMap(java.lang.String userAgent)
Creates a Capability Map with Capabilities, Mimetypes and mediaTypes for the given UserAgentPattern |
Client |
getClient(java.lang.String clientName)
Given a client name, look up the corresponding client object. |
java.lang.String |
getClientBeanName()
Obtain the name of the ClientBean reference |
java.util.Iterator |
getClients()
Obtain an iterator of all existing clients. |
MediaType |
getMediaType(java.lang.String mediaType)
Given a media type string, look up the corresponding media type object. |
java.lang.String |
getMediaTypeBeanName()
Obtain the name of the Media Type reference |
MediaType |
getMediaTypeForMimeType(java.lang.String mimeTypeName)
Given a Mimetype string lookup the corresponding media type object |
java.util.Iterator |
getMediaTypes()
Obtain an iterator of all existing media types. |
java.util.Collection |
getMediaTypesForMimeTypes(java.util.Iterator mimetypes)
Returns a collection of MediaTypes that matches the MimeTypes defined in the mimetype parameter |
MimeType |
getMimeType(java.lang.String mimeType)
Given a mime type string, look up the corresponding mime type object. |
java.lang.String |
getMimeTypeBeanName()
Obtain the name of the Mime Type reference |
java.util.Iterator |
getMimeTypes()
Obtain an iterator of all existing mime types. |
void |
setCapabilityBeanName(java.lang.String capabilityBeanName)
Set the name of the CapabilityBean reference - used exclusively in IoC |
void |
setClientBeanName(java.lang.String clientBeanName)
Set the name of the ClientBean reference - used exclusively in IoC |
void |
setMediaTypeBeanName(java.lang.String mediaTypeBeanName)
Set the name of the MediaType bean reference - used exclusively in IoC |
void |
setMimeTypeBeanName(java.lang.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(java.lang.String userAgent)
throws UnableToBuildCapabilityMapException
userAgent - Agent from the request
null
UnableToBuildCapabilityMapException - If a capability could not be createdjava.util.Iterator getClients()
Client findClient(java.lang.String userAgent)
userAgent -
java.util.Collection getMediaTypesForMimeTypes(java.util.Iterator mimetypes)
Mimetype -
void deleteCapabilityMapCache()
MediaType getMediaType(java.lang.String mediaType)
mediaType - The string representation of a media type.
MediaType getMediaTypeForMimeType(java.lang.String mimeTypeName)
mimeTypeName - to use for lookup
Capability getCapability(java.lang.String capability)
capability - The string representation of a capability.
MimeType getMimeType(java.lang.String mimeType)
mimeType - The string representation of a mime type.
Client getClient(java.lang.String clientName)
clientName - The name of the client.
java.util.Iterator getCapabilities()
Capabilityjava.util.Iterator getMimeTypes()
MimeTypejava.util.Iterator getMediaTypes()
MediaTypejava.lang.String getCapabilityBeanName()
void setCapabilityBeanName(java.lang.String capabilityBeanName)
capabilityBeanName - The ref-id of the capability bean.java.lang.String getClientBeanName()
void setClientBeanName(java.lang.String clientBeanName)
clientBeanName - The ref-id of the client bean.java.lang.String getMediaTypeBeanName()
void setMediaTypeBeanName(java.lang.String mediaTypeBeanName)
mediaTypeBeanName - The ref-id of the mediaType bean.java.lang.String getMimeTypeBeanName()
void setMimeTypeBeanName(java.lang.String mimeTypeBeanName)
mimeTypeBeanName - The ref-id of the mimeType bean.
Capability createCapability(java.lang.String capabilityName)
throws java.lang.ClassNotFoundException
capabilityName - The string describing the capability
java.lang.ClassNotFoundException
MimeType createMimeType(java.lang.String mimeTypeName)
throws java.lang.ClassNotFoundException
mimeTypeName - The string describing the mimeType
java.lang.ClassNotFoundException
MediaType createMediaType(java.lang.String mediaTypeName)
throws java.lang.ClassNotFoundException
mediaTypeName - The string describing the mediaType
java.lang.ClassNotFoundException
Client createClient(java.lang.String clientName)
throws java.lang.ClassNotFoundException
clientName - The string describing the client
java.lang.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 | |||||||||