public class ContentType extends Object
| Constructor and Description |
|---|
ContentType(String str)
Constructor that takes a Content-Type string.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCharset()
Return the charset parameter value.
|
String |
getTypeSubtype()
Return the type/subtype value.
|
void |
setTypeSubtype(String typeSubtype)
Set the type/subtype value.
|
String |
toString()
Generates string representation of this content type which can be used as the value of a Content-Type header.
|
public ContentType(String str)
str - Content-Type stringpublic String getTypeSubtype()
public void setTypeSubtype(String typeSubtype)
typeSubtype - type/subtypepublic String getCharset()
Copyright © 2014–2015 JBoss, a division of Red Hat. All rights reserved.