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.
|
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 ParameterList getParameterList()
Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.