public class ContentType extends Object
Constructor and Description |
---|
ContentType() |
ContentType(String type) |
ContentType(String major,
String minor,
ParameterList list) |
Modifier and Type | Method and Description |
---|---|
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() |
public ContentType()
public ContentType(String major, String minor, ParameterList list)
public ContentType(String type) throws ParseException
ParseException
public String getPrimaryType()
public String getSubType()
public String getBaseType()
public ParameterList getParameterList()
public void setPrimaryType(String major)
public void setSubType(String minor)
public void setParameterList(ParameterList list)
public boolean match(ContentType other)
public boolean match(String contentType)
Copyright © 2013. All Rights Reserved.