org.apache.jetspeed.capabilities
Interface MediaType


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

Version:
$Id: MediaType.java 188405 2005-03-19 12:47:14Z sgala $
Author:
Rapha?l Luta

Method Summary
 void addMimetype(String name)
          Add MimeType to the MimeType map
 Vector 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(Vector 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

setMediatypeId

public void setMediatypeId(int id)
Set MediaType ID -- Assigns ID

Parameters:
id -

getMediatypeId

public int getMediatypeId()
Get MediaType ID -- Return ID

Returns:
MediaTypeID

getCharacterSet

public String getCharacterSet()
Returns:
the character set associated with this MediaType

setCharacterSet

public void setCharacterSet(String charSet)
Sets the character set associated with this MediaType


getCapabilities

public Vector getCapabilities()
Returns all supported capablities as CapabilityMap. The CapabilityMap contains all capabilities in arbitrary order.

Returns:
a vector of capabilities

setCapabilities

public void setCapabilities(Vector capabilities)
Set the capabilities


getMimetypes

public Collection getMimetypes()
Returns all supported mimetypes as MimeTypeMap. The MimeTypeMap contains all mimetypes in decreasing order of importance.

Returns:
the MimeTypeMap
See Also:
MimeTypeMap

setMimetypes

public void setMimetypes(Collection mimetypes)
Set mime types

Parameters:
mimetypes -

removeMimetype

public void removeMimetype(String name)
Removes the MimeType to the MimeType map

Parameters:
name - of MimeType to remove

addMimetype

public void addMimetype(String name)
Add MimeType to the MimeType map

Parameters:
name -

setName

public void setName(String name)
Set Name of MediaType

Parameters:
name - Name of MediaType

getName

public String getName()
Get Name of MediaType

Returns:
Name of MediaType

getTitle

public String getTitle()
Get Title of MediaType

Returns:
Title of MediaType

setTitle

public void setTitle(String title)
Set MediaType title

Parameters:
title -

getDescription

public String getDescription()
Get MediaType description

Returns:
Returns description of MediaType

setDescription

public void setDescription(String desc)
Set description of MediaType

Parameters:
desc - Description string


Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.