01: /*
02: * Created on May 15, 2006
03: */
04: package com.openedit.page.manage;
05:
06: /**
07: * <p>
08: * Interface for a map to determine the MIME type for a file or path
09: * based upon its extension. This interface was extracted from the
10: * class of the same name originally from JPublish (http://www.jpublish.org)
11: * and adapted by Open Edit (http://www.openedit.org).
12: * </p>
13: *
14: * @author Eric Broyles <eric@sandra.com>
15: * @version $Id: MimeTypeMap.java,v 1.11 2006/05/22 18:07:32 ebroyles Exp $
16: */
17: public interface MimeTypeMap {
18:
19: /**
20: * Set the default MIME type.
21: *
22: * @param inMimeType The new default MIME type. If null, the DEAFULT_MIME_TYPE is used.
23: */
24: public void setDefaultMimeType(String inMimeType);
25:
26: /**
27: * Get the default MIME type.
28: *
29: * @return The default MIME type.
30: */
31: public String getDefaultMimeType();
32:
33: /**
34: * Get the MIME type for the given file extension.
35: *
36: * @param inExtension The extension to map to a MIME type.
37: *
38: * @return The MIME type
39: */
40: public String getMimeType(String inExtension);
41:
42: /**
43: * Get the MIME type for the given path.
44: *
45: * @param path The path to map the a MIME type.
46: *
47: * @return The MIME type.
48: */
49: public String getPathMimeType(String path);
50:
51: public Object get(Object key);
52:
53: public Object put(Object arg0, Object arg1);
54:
55: }
|