1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.jetspeed.om.registry;
18
19 /***
20 * This entry describes all the properties that should be present in
21 * a RegistryEntry describing a MediaType
22 *
23 * FIXME: we should add some additionnal attrbutes for separating 2 versions
24 * of the same mime type
25 *
26 * @author <a href="mailto:raphael@apache.org">Raphaël Luta</a>
27 * @version $Id: MediaTypeEntry.java,v 1.4 2004/02/23 03:11:39 jford Exp $
28 */
29 public interface MediaTypeEntry extends RegistryEntry
30 {
31
32 /*** @return the mime type associated with this MediaType */
33 public String getMimeType();
34
35 /*** Sets the MimeType associated with this MediaType
36 * @param mimeType the MIME type to associate
37 */
38 public void setMimeType( String mimeType );
39
40 /*** @return the character set associated with this MediaType */
41 public String getCharacterSet();
42
43 /*** Sets the character set associated with this MediaType */
44 public void setCharacterSet( String charSet);
45
46 /***
47 * Returns all supported capablities as <CODE>CapabilityMap</CODE>.
48 * The <CODE>CapabilityMap</CODE> contains all capabilities in arbitrary
49 * order.
50 *
51 * @return the CapabilityMap
52 * @see CapabilityMap
53 */
54 public CapabilityMap getCapabilityMap();
55 }