public class HttpHeaders extends Object
| Constructor and Description |
|---|
HttpHeaders(Map<String,String> headers)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCharsetFromContentType(String defaultCharset)
Extract the charset from the Content-Type header.
|
void |
setContentType(String typeSubtype)
Set the type/subtype value of the Content-Type header.
|
public String getCharsetFromContentType(String defaultCharset)
defaultCharset - the default charsetpublic void setContentType(String typeSubtype)
typeSubtype - the type/subtype valueCopyright © 2014–2015 JBoss, a division of Red Hat. All rights reserved.