javax.mail.internet
Class ContentType

java.lang.Object
  extended by javax.mail.internet.ContentType

public class ContentType
extends Object

Version:
$Rev: 669445 $ $Date: 2008-06-19 06:48:18 -0400 (Thu, 19 Jun 2008) $

Constructor Summary
ContentType()
           
ContentType(String type)
           
ContentType(String major, String minor, ParameterList list)
           
 
Method Summary
 String getBaseType()
           
 String getParameter(String name)
           
 ParameterList getParameterList()
           
 String getPrimaryType()
           
 String getSubType()
           
 boolean match(ContentType other)
           
 boolean match(String contentType)
           
 void setParameter(String name, String value)
           
 void setParameterList(ParameterList list)
           
 void setPrimaryType(String major)
           
 void setSubType(String minor)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContentType

public ContentType()

ContentType

public ContentType(String major,
                   String minor,
                   ParameterList list)

ContentType

public ContentType(String type)
            throws ParseException
Throws:
ParseException
Method Detail

getPrimaryType

public String getPrimaryType()

getSubType

public String getSubType()

getBaseType

public String getBaseType()

getParameter

public String getParameter(String name)

getParameterList

public ParameterList getParameterList()

setPrimaryType

public void setPrimaryType(String major)

setSubType

public void setSubType(String minor)

setParameter

public void setParameter(String name,
                         String value)

setParameterList

public void setParameterList(ParameterList list)

toString

public String toString()
Overrides:
toString in class Object

match

public boolean match(ContentType other)

match

public boolean match(String contentType)


Copyright © 2003-2009 The Apache Software Foundation. All Rights Reserved.