View Javadoc

1   /*
2    * Copyright 2000-2001,2004 The Apache Software Foundation.
3    * 
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
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  }