| |
|
| java.lang.Object org.apache.jetspeed.capabilities.impl.CapabilityMapImpl
CapabilityMapImpl | class CapabilityMapImpl implements CapabilityMap(Code) | | Implementation for capabilityMap interface
author: Roger Ruttimann version: $Id: CapabilityMapImpl.java 553014 2007-07-03 23:10:53Z ate $ |
addCapability | public void addCapability(Capability capability)(Code) | | Add capability to the CapabilityMap
|
addMediaType | public void addMediaType(MediaType mediatype)(Code) | | Add MediaType to the MediaTypeMap
|
addMimetype | public void addMimetype(MimeType mimetype)(Code) | | Add Mimetype to the MimetypeMap
|
getAgent | public String getAgent()(Code) | | Returns the user-agent string
|
getClient | public Client getClient()(Code) | | Returns the Client for the CapabilityMap
|
getMimeTypes | public Iterator getMimeTypes()(Code) | | Get the mime types that this CapabilityMap supports.
|
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 capability)(Code) | | Checks to see if the current agent has the specified capability
|
hasCapability | public boolean hasCapability(String capability)(Code) | | Checks to see 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
|
setAgent | public void setAgent(String userAgent)(Code) | | set userAgent
|
setClient | public void setClient(Client client)(Code) | | Sets the client for the CapabilityMap
|
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) | | Return true if this CapabilityMap supports the given MimeType
|
toString | public String toString()(Code) | | Create a map -> string representation
|
|
|
|