org.apache.jetspeed.om.registry
Interface MimetypeMap

All Known Implementing Classes:
BaseMimetypeMap

public interface MimetypeMap

The MimeTypeMap interface represents a list that stores all mimetypes a client supports. The mimetypes are stored in decreasing order of importance. The very first mimetype is the preferred mimetype of the client.

Version:
$Id: MimetypeMap.java,v 1.4 2005/03/21 18:21:37 sgala Exp $
Author:
Stephan Hesmer, RaphaŽl Luta

Method Summary
 void addMimetype(java.lang.String name)
          Adds the given mimetype
 java.util.Iterator getMimetypes()
          Returns an enumeration of all mimetypes the client supports.
 MimeType getPreferredMimetype()
          Returns the preferred mimetype of the client.
 void removeMimetype(java.lang.String name)
          Removes the given mimetype
 

Method Detail

getMimetypes

public java.util.Iterator getMimetypes()
Returns an enumeration of all mimetypes the client supports.

Returns:
an enumeration of all mimetypes

getPreferredMimetype

public MimeType getPreferredMimetype()
Returns the preferred mimetype of the client.

Returns:
the preferred mimetype

addMimetype

public void addMimetype(java.lang.String name)
Adds the given mimetype

Parameters:
name - the name of the mimetype

removeMimetype

public void removeMimetype(java.lang.String name)
Removes the given mimetype

Parameters:
name - the mimetype to be removed


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