|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MediaType
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
| Method Summary | |
|---|---|
void |
addCapability(Capability capability)
Add Capability to the Capability collection |
void |
addMimetype(MimeType mimeType)
Add MimeType to the MimeType map |
Collection |
getCapabilities()
Returns all supported capablities as CapabilityMap. |
String |
getCharacterSet()
|
String |
getDescription()
Get MediaType description |
int |
getMediatypeId()
Get MediaType ID -- Return ID |
Collection |
getMimetypes()
Returns all supported mimetypes as MimeTypeMap. |
String |
getName()
Get Name of MediaType |
String |
getTitle()
Get Title of MediaType |
void |
removeMimetype(String name)
Removes the MimeType to the MimeType map |
void |
setCapabilities(Collection capabilities)
Set the capabilities |
void |
setCharacterSet(String charSet)
Sets the character set associated with this MediaType |
void |
setDescription(String desc)
Set description of MediaType |
void |
setMediatypeId(int id)
Set MediaType ID -- Assigns ID |
void |
setMimetypes(Collection mimetypes)
Set mime types |
void |
setName(String name)
Set Name of MediaType |
void |
setTitle(String title)
Set MediaType title |
| Method Detail |
|---|
void setMediatypeId(int id)
id - int getMediatypeId()
String getCharacterSet()
void setCharacterSet(String charSet)
Collection getCapabilities()
CapabilityMap.
The CapabilityMap contains all capabilities in arbitrary
order.
void setCapabilities(Collection capabilities)
vector - of capabilitiesCollection getMimetypes()
MimeTypeMap.
The MimeTypeMap contains all mimetypes in decreasing
order of importance.
MimeTypeMapvoid setMimetypes(Collection mimetypes)
mimetypes - void removeMimetype(String name)
name - of MimeType to removevoid addMimetype(MimeType mimeType)
mimeType - mimetype object to addvoid addCapability(Capability capability)
capability - capability object to addvoid setName(String name)
name - Name of MediaTypeString getName()
String getTitle()
void setTitle(String title)
title - String getDescription()
void setDescription(String desc)
desc - Description string
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||