|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.ws.encoding.ContentType
public final class ContentType
This class represents a MIME ContentType value. It provides methods to parse a ContentType string into individual components and to generate a MIME style ContentType string.
| Constructor Summary | |
|---|---|
ContentType(String s)
Constructor that takes a Content-Type string. |
|
| Method Summary | |
|---|---|
String |
getBaseType()
Return the MIME type string, without the parameters. |
String |
getParameter(String name)
Return the specified parameter value. |
ParameterList |
getParameterList()
Return a ParameterList object that holds all the available parameters. |
String |
getPrimaryType()
Return the primary type. |
String |
getSubType()
Return the subType. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContentType(String s)
throws WebServiceException
s - the Content-Type string.
WebServiceException - if the parse fails.| Method Detail |
|---|
public String getPrimaryType()
public String getSubType()
public String getBaseType()
public String getParameter(String name)
null
if this parameter is absent.
name - parameter name
public ParameterList getParameterList()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||