public class ContentType
extends java.util.HashMap<java.lang.String,java.lang.String>
Besides an underlying MIME type, "Content-Type" headers
include a set of properties, for example, a character set for text bodyparts.
This class implements the Map
Modifier and Type | Class and Description |
---|---|
static class |
ContentType.Authority |
Modifier and Type | Field and Description |
---|---|
static HeaderParser |
parser
use to get decoded ContentType objects from
HeaderSet s |
Constructor and Description |
---|
ContentType(ContentType.Authority authority,
java.lang.String basic)
Create a new ContentType from a basic MIME type string.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other)
Tests if two MIME types represent the same basic type.
|
ContentType.Authority |
getAuthority() |
java.lang.String |
getMainType() |
java.lang.String |
getSubType() |
java.lang.String |
getType() |
java.lang.String |
toString()
Convert the object into a string suitable for insertion as a value for a
"Content-Type:" header in a MIME message.
|
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
public static final HeaderParser parser
HeaderSet
sHeaderSet.getParsed(HeaderParser)
public ContentType(ContentType.Authority authority, java.lang.String basic)
public ContentType.Authority getAuthority()
public java.lang.String getMainType()
public java.lang.String getSubType()
public java.lang.String getType()
public java.lang.String toString()
toString
in class java.util.AbstractMap<java.lang.String,java.lang.String>
public boolean equals(java.lang.Object other)
NOTE: this does _not_ take account of attribute values.
equals
in interface java.util.Map<java.lang.String,java.lang.String>
equals
in class java.util.AbstractMap<java.lang.String,java.lang.String>
This documentation and all its contents and graphics, copyright © 1999 - 2011 Vordel