|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.loader.CmsMimeType
public class CmsMimeType
Describes a MIME type configured in OpenCms.
Constructor Summary | |
---|---|
CmsMimeType(java.lang.String extension,
java.lang.String type)
Default constructor for MIME types. |
|
CmsMimeType(java.lang.String extension,
java.lang.String type,
boolean configured)
Special constructor for "marked" MIME types. |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object obj)
MIME-types are compared according to the type first, and to the extension second. |
boolean |
equals(java.lang.Object obj)
MIME-types are equal is the extension is equal. |
java.lang.String |
getExtension()
Returns the MIME type file extension. |
java.lang.String |
getType()
Returns the MIME type description. |
int |
hashCode()
The hash code of MIME types is build only from the extension. |
boolean |
isConfigured()
Returns true if this MIME type has been read from the OpenCms configuration. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CmsMimeType(java.lang.String extension, java.lang.String type)
If the extension does not start with a dot '.', then a dot is automatically added as a prefix.
extension
- the MIME type extensiontype
- the MIME type descriptionpublic CmsMimeType(java.lang.String extension, java.lang.String type, boolean configured)
If the extension does not start with a dot '.', then a dot is automatically added as a prefix.
extension
- the MIME type extensiontype
- the MIME type descriptionconfigured
- indicates if this a MIME type read from the OpenCms configurationMethod Detail |
---|
public int compareTo(java.lang.Object obj)
compareTo
in interface java.lang.Comparable
Comparable.compareTo(java.lang.Object)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public java.lang.String getExtension()
public java.lang.String getType()
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public boolean isConfigured()
true
if this MIME type has been read from the OpenCms configuration.
true
if this MIME type has been read from the OpenCms configuration
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |