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, toStringpublic void reset()
ContentTypereset in class ContentTypepublic void set(ContentType contentType)
ContentTypeset in class ContentTypecontentType - the content typepublic void set(String type)
ContentTypeset in class ContentTypetype - the content typepublic void setCharacterEncoding(String charset)
ContentTypesetCharacterEncoding in class ContentTypecharset - the character encoding (the content-type's charset attribute value)public void setMimeType(String mimeType)
ContentTypesetMimeType in class ContentTypemimeType - the mime-type part of the content-type (the part without charset attribute)Copyright © 2012-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.