public interface MediaType
| Modifier and Type | Method and Description |
|---|---|
void |
addCapability(Capability capability)
Add Capability to the Capability collection
|
void |
addMimetype(MimeType mimeType)
Add MimeType to the MimeType map
|
Collection<Capability> |
getCapabilities()
Returns all supported capablities as
CapabilityMap. |
String |
getCharacterSet() |
String |
getDescription()
Get MediaType description
|
int |
getMediatypeId()
Get MediaType ID -- Return ID
|
Collection<MimeType> |
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<Capability> 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<MimeType> mimetypes)
Set mime types
|
void |
setName(String name)
Set Name of MediaType
|
void |
setTitle(String title)
Set MediaType title
|
void setMediatypeId(int id)
id - int getMediatypeId()
String getCharacterSet()
void setCharacterSet(String charSet)
Collection<Capability> getCapabilities()
CapabilityMap.
The CapabilityMap contains all capabilities in arbitrary
order.void setCapabilities(Collection<Capability> capabilities)
capabilities - of capabilitiesCollection<MimeType> getMimetypes()
MimeTypeMap.
The MimeTypeMap contains all mimetypes in decreasing
order of importance.MimeTypevoid setMimetypes(Collection<MimeType> 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 stringCopyright © 1999–2016 The Apache Software Foundation. All rights reserved.