| |
|
| org.apache.jetspeed.capabilities.MediaType
All known Subclasses: org.apache.jetspeed.capabilities.impl.MediaTypeImpl,
MediaType | public interface MediaType (Code) | | This entry describes all the properties that should be present in
a RegistryEntry describing a MediaType
FIXME: we should add some additionnal attrbutes for separating 2 versions
of the same mime type
author: Rapha\u00ebl Luta version: $Id: MediaType.java 517121 2007-03-12 07:45:49Z ate $ |
addCapability | public void addCapability(Capability capability)(Code) | | Add Capability to the Capability collection
Parameters: capability - capability object to add |
addMimetype | public void addMimetype(MimeType mimeType)(Code) | | Add MimeType to the MimeType map
Parameters: mimeType - mimetype object to add |
getCapabilities | public Collection getCapabilities()(Code) | | Returns all supported capablities as CapabilityMap .
The CapabilityMap contains all capabilities in arbitrary
order.
a collection of capabilities |
getCharacterSet | public String getCharacterSet()(Code) | | the character set associated with this MediaType |
getDescription | public String getDescription()(Code) | | Get MediaType description
Returns description of MediaType |
getMediatypeId | public int getMediatypeId()(Code) | | Get MediaType ID -- Return ID
MediaTypeID |
getMimetypes | public Collection getMimetypes()(Code) | | Returns all supported mimetypes as MimeTypeMap .
The MimeTypeMap contains all mimetypes in decreasing
order of importance.
the MimeTypeMap See Also: MimeTypeMap |
getName | public String getName()(Code) | | Get Name of MediaType
Name of MediaType |
getTitle | public String getTitle()(Code) | | Get Title of MediaType
Title of MediaType |
removeMimetype | public void removeMimetype(String name)(Code) | | Removes the MimeType to the MimeType map
Parameters: name - of MimeType to remove |
setCapabilities | public void setCapabilities(Collection capabilities)(Code) | | Set the capabilities
Parameters: vector - of capabilities |
setCharacterSet | public void setCharacterSet(String charSet)(Code) | | Sets the character set associated with this MediaType
|
setDescription | public void setDescription(String desc)(Code) | | Set description of MediaType
Parameters: desc - Description string |
setMediatypeId | public void setMediatypeId(int id)(Code) | | Set MediaType ID -- Assigns ID
Parameters: id - |
setMimetypes | public void setMimetypes(Collection mimetypes)(Code) | | Set mime types
Parameters: mimetypes - |
setName | public void setName(String name)(Code) | | Set Name of MediaType
Parameters: name - Name of MediaType |
setTitle | public void setTitle(String title)(Code) | | Set MediaType title
Parameters: title - |
|
|
|