| |
|
| org.apache.jetspeed.capabilities.CapabilityMap
All known Subclasses: org.apache.jetspeed.capabilities.impl.CapabilityMapImpl,
CapabilityMap | public interface CapabilityMap (Code) | | This interface provides lookup features on the capabilities supported
by a client user agent.
author: Rapha\u00ebl Luta author: Kevin A. Burton version: $Id: CapabilityMap.java 516448 2007-03-09 16:25:47Z ate $ |
addCapability | public void addCapability(Capability capability)(Code) | | Add capability to the CapabilityMap
Parameters: capability - |
addMediaType | public void addMediaType(MediaType mediatype)(Code) | | Add MediaType to the MediaTypeMap
Parameters: Mediatype - to add |
addMimetype | public void addMimetype(MimeType mimetype)(Code) | | Add Mimetype to the MimetypeMap
Parameters: mimetype - |
getAgent | public String getAgent()(Code) | | Returns the user-agent string |
getClient | public Client getClient()(Code) | | Returns the Client for the CapabilityMap
The client associated with this map |
getMimeTypes | public Iterator getMimeTypes()(Code) | | Get the mime types that this CapabilityMap supports.
Returns an Iterator over the MimeType map |
getPreferredMediaType | public MediaType getPreferredMediaType()(Code) | | Returns the preferred media type for the current user-agent |
getPreferredType | public MimeType getPreferredType()(Code) | | Returns the preferred MIME type for the current user-agent |
hasCapability | public boolean hasCapability(int cap)(Code) | | Parameters: CApabilityID - Returns true if the current agent has the specified capabilityID |
hasCapability | public boolean hasCapability(String capability)(Code) | | Parameters: Capability - returns true if the current agent has the specified capability |
listMediaTypes | public Iterator listMediaTypes()(Code) | | Returns an ordered list of supported media-types, from most preferred
to least preferred
|
setClient | public void setClient(Client client)(Code) | | Sets the client for the CapabilityMap
Parameters: client - The client associated with this map |
setPreferredMediaType | public void setPreferredMediaType(MediaType type)(Code) | | Sets the preferred MediaType for this CapabilityMap
Parameters: MediaTypeEntry - |
supportsMediaType | public boolean supportsMediaType(String media)(Code) | | Return true if this CapabilityMap supports the given media type
Parameters: media - the name of a media type registered in theMediaType registry true is the capabilities of this agent at least match thoserequired by the media type |
supportsMimeType | public boolean supportsMimeType(MimeType mimeType)(Code) | | Parameters: MimeType - Return true if this CapabilityMap supports the given MimeType |
toString | public String toString()(Code) | | Create a map -> string representation |
|
|
|