Uses of Class
org.apache.http.entity.ContentType
Packages that use ContentType
-
Uses of ContentType in org.apache.http.entity
Fields in org.apache.http.entity declared as ContentTypeModifier and TypeFieldDescriptionstatic final ContentType
ContentType.APPLICATION_ATOM_XML
static final ContentType
ContentType.APPLICATION_FORM_URLENCODED
static final ContentType
ContentType.APPLICATION_JSON
static final ContentType
ContentType.APPLICATION_OCTET_STREAM
static final ContentType
ContentType.APPLICATION_SOAP_XML
static final ContentType
ContentType.APPLICATION_SVG_XML
static final ContentType
ContentType.APPLICATION_XHTML_XML
static final ContentType
ContentType.APPLICATION_XML
static final ContentType
ContentType.DEFAULT_BINARY
static final ContentType
ContentType.DEFAULT_TEXT
static final ContentType
ContentType.IMAGE_BMP
static final ContentType
ContentType.IMAGE_GIF
static final ContentType
ContentType.IMAGE_JPEG
static final ContentType
ContentType.IMAGE_PNG
static final ContentType
ContentType.IMAGE_SVG
static final ContentType
ContentType.IMAGE_TIFF
static final ContentType
ContentType.IMAGE_WEBP
static final ContentType
ContentType.MULTIPART_FORM_DATA
static final ContentType
ContentType.TEXT_HTML
static final ContentType
ContentType.TEXT_PLAIN
static final ContentType
ContentType.TEXT_XML
static final ContentType
ContentType.WILDCARD
Methods in org.apache.http.entity that return ContentTypeModifier and TypeMethodDescriptionstatic ContentType
Creates a new instance ofContentType
without a charset.static ContentType
Creates a new instance ofContentType
.static ContentType
Creates a new instance ofContentType
.static ContentType
ContentType.create
(String mimeType, NameValuePair... params) Creates a new instance ofContentType
with the given parameters.static ContentType
ContentType.get
(HttpEntity entity) ExtractsContent-Type
value fromHttpEntity
exactly as specified by theContent-Type
header of the entity.static ContentType
ContentType.getByMimeType
(String mimeType) ReturnsContent-Type
for the given MIME type.static ContentType
ContentType.getLenient
(HttpEntity entity) ExtractsContent-Type
value fromHttpEntity
.static ContentType
ContentType.getLenientOrDefault
(HttpEntity entity) ExtractsContent-Type
value fromHttpEntity
or returns the default valueDEFAULT_TEXT
if not explicitly specified or incorrect (could not be parsed).static ContentType
ContentType.getOrDefault
(HttpEntity entity) ExtractsContent-Type
value fromHttpEntity
or returns the default valueDEFAULT_TEXT
if not explicitly specified.static ContentType
Parses textual representation ofContent-Type
value.ContentType.withCharset
(String charset) Creates a new instance with this MIME type and the given Charset name.ContentType.withCharset
(Charset charset) Creates a new instance with this MIME type and the given Charset.ContentType.withParameters
(NameValuePair... params) Creates a new instance with this MIME type and the given parameters.Constructors in org.apache.http.entity with parameters of type ContentTypeModifierConstructorDescriptionByteArrayEntity
(byte[] b, int off, int len, ContentType contentType) ByteArrayEntity
(byte[] b, ContentType contentType) FileEntity
(File file, ContentType contentType) Creates a new instance.InputStreamEntity
(InputStream inStream, long length, ContentType contentType) InputStreamEntity
(InputStream inStream, ContentType contentType) Creates an entity with a content type and unknown length.StringEntity
(String string, ContentType contentType) Creates a StringEntity with the specified content and content type.