public static final class ContentType.SettableContentType extends ContentType
ContentType
object.ContentType.SettableContentType
Modifier and Type | Method and Description |
---|---|
void |
reset()
Resets the ContentType state.
|
void |
set(ContentType contentType)
Sets the content type.
|
void |
set(String type)
Sets the content type.
|
void |
setCharacterEncoding(String charset)
Sets the the character encoding (the content-type's charset attribute value).
|
void |
setMimeType(String mimeType)
Sets the mime-type part of the content-type (the part without charset attribute).
|
compose, get, getArrayLen, getByteArray, getCharacterEncoding, getCharsetFromContentType, getMimeType, isMimeTypeSet, isSet, newContentType, newContentType, newSettableContentType, prepare, removeCharset, serializeToDataChunk, toString
public void reset()
ContentType
reset
in class ContentType
public void set(ContentType contentType)
ContentType
set
in class ContentType
contentType
- the content typepublic void set(String type)
ContentType
set
in class ContentType
type
- the content typepublic void setCharacterEncoding(String charset)
ContentType
setCharacterEncoding
in class ContentType
charset
- the character encoding (the content-type's charset attribute value)public void setMimeType(String mimeType)
ContentType
setMimeType
in class ContentType
mimeType
- the mime-type part of the content-type (the part without charset attribute)Copyright © 2015 Oracle Corporation. All rights reserved.