org.codehaus.httpcache4j
Class MIMEType
java.lang.Object
org.codehaus.httpcache4j.MIMEType
public final class MIMEType
- extends java.lang.Object
Media type used in representations and preferences.
- See Also:
- MIME types on Wikipedia
|
Constructor Summary |
MIMEType(java.lang.String MIMEType)
|
MIMEType(java.lang.String primaryType,
java.lang.String subType)
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
ALL
public static final MIMEType ALL
APPLICATION_OCTET_STREAM
public static final MIMEType APPLICATION_OCTET_STREAM
MIMEType
public MIMEType(java.lang.String MIMEType)
MIMEType
public MIMEType(java.lang.String primaryType,
java.lang.String subType)
addParameter
public void addParameter(java.lang.String name,
java.lang.String value)
getSubType
public java.lang.String getSubType()
getPrimaryType
public java.lang.String getPrimaryType()
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
includes
public boolean includes(MIMEType mimeType)
getParameters
public java.util.List<Parameter> getParameters()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2008. All Rights Reserved.