public final class ContentType extends Object
Constructor and Description |
---|
ContentType(String s)
Constructor that takes a Content-Type string.
|
Modifier and Type | Method and Description |
---|---|
String |
getBaseType()
Return the MIME type string, without the parameters.
|
String |
getParameter(String name)
Return the specified parameter value.
|
com.sun.xml.ws.encoding.ParameterList |
getParameterList()
Return a ParameterList object that holds all the available
parameters.
|
String |
getPrimaryType()
Return the primary type.
|
String |
getSubType()
Return the subType.
|
public ContentType(String s) throws WebServiceException
s
- the Content-Type string.WebServiceException
- if the parse fails.public String getPrimaryType()
public String getSubType()
public String getBaseType()
public String getParameter(String name)
null
if this parameter is absent.name
- parameter namepublic com.sun.xml.ws.encoding.ParameterList getParameterList()
Copyright © 2015 Oracle Corporation. All rights reserved.