|
|||||||||
| Home >> All >> javax >> mail >> [ internet overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
javax.mail.internet
Class ContentType

java.lang.Objectjavax.mail.internet.ContentType
- public class ContentType
- extends java.lang.Object
- Version:
- $Rev: 54266 $ $Date: 2004-10-10 14:02:50 -0700 (Sun, 10 Oct 2004) $
| Field Summary | |
private ParameterList |
_list
|
private java.lang.String |
_major
|
private java.lang.String |
_minor
|
| Constructor Summary | |
ContentType()
|
|
ContentType(java.lang.String type)
|
|
ContentType(java.lang.String major,
java.lang.String minor,
ParameterList list)
|
|
| Method Summary | |
java.lang.String |
getBaseType()
|
java.lang.String |
getParameter(java.lang.String name)
|
ParameterList |
getParameterList()
|
java.lang.String |
getPrimaryType()
|
java.lang.String |
getSubType()
|
boolean |
match(ContentType other)
|
boolean |
match(java.lang.String contentType)
|
void |
setParameter(java.lang.String name,
java.lang.String value)
|
void |
setParameterList(ParameterList list)
|
void |
setPrimaryType(java.lang.String major)
|
void |
setSubType(java.lang.String minor)
|
java.lang.String |
toString()
Convert this Object to a human-readable String. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
_list
private ParameterList _list
_minor
private java.lang.String _minor
_major
private java.lang.String _major
| Constructor Detail |
ContentType
public ContentType()
ContentType
public ContentType(java.lang.String major, java.lang.String minor, ParameterList list)
ContentType
public ContentType(java.lang.String type) throws ParseException
| Method Detail |
getPrimaryType
public java.lang.String getPrimaryType()
getSubType
public java.lang.String getSubType()
getBaseType
public java.lang.String getBaseType()
getParameter
public java.lang.String getParameter(java.lang.String name)
getParameterList
public ParameterList getParameterList()
setPrimaryType
public void setPrimaryType(java.lang.String major)
setSubType
public void setSubType(java.lang.String minor)
setParameter
public void setParameter(java.lang.String name, java.lang.String value)
setParameterList
public void setParameterList(ParameterList list)
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object - Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string concatenation with this object. If the result is
null, string concatenation will instead use"null".The default implementation returns
getClass().getName() + "@" + Integer.toHexString(hashCode()).
match
public boolean match(ContentType other)
match
public boolean match(java.lang.String contentType)
|
|||||||||
| Home >> All >> javax >> mail >> [ internet overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
javax.mail.internet.ContentType