Name
ContentType
Synopsis
This class represents a MIME ContentType
, including a
primary type (such as "text
“) and a subtype (such as
"html
“).
public class ContentType { // Public Constructors public ContentType(); public ContentType( String s) throws javax.mail.internet.ParseException; public ContentType(String primaryType, String subType, ParameterList list); // Property Accessor Methods (by property name) public String getBaseType(); // default:"null/null” public ParameterList getParameterList(); // default:null public void setParameterList( ParameterList list); public String getPrimaryType(); // default:null public void setPrimaryType( String primaryType); public String getSubType(); // default:null public void setSubType( String subType); // Public Instance Methods public String getParameter( String name); public boolean match( ContentType cType); public boolean match( String s); public void setParameter( String name, String value); // Public Methods Overriding Object public String toString(); }
Passed To
ContentType.match()
Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.