public class ContentType extends Object
| Constructor and Description |
|---|
ContentType(MediaType mediaType) |
ContentType(MediaType mediaType,
List<Parameter> parameters) |
| Modifier and Type | Method and Description |
|---|---|
static ContentType |
create(String contentTypeValue)
Creates a content type header value by parsing a content type value.
|
MediaType |
getMediaType() |
List<Parameter> |
getParameters() |
String |
getValue()
Returns the value of the content type which is the concatenation of the media type name
followed by the parameters.
|
public ContentType(MediaType mediaType)
public static ContentType create(String contentTypeValue) throws IllegalArgumentException
contentTypeValue - the content type valueIllegalArgumentException - if thepublic MediaType getMediaType()
public String getValue()
Copyright © 2025 JBoss by Red Hat. All Rights Reserved.