Uses of Class
org.apache.http.entity.ContentType
Packages that use ContentType
Package
Description
Core HTTP entity implementations.
Core HTTP entity implementations with support for
asynchronous, event driven communication.
Core HTTP protocol execution framework and HTTP protocol handlers
for asynchronous, event driven communication.
Core utility classes.
-
Uses of ContentType in org.apache.http.entity
Fields in org.apache.http.entity declared as ContentTypeModifier and TypeFieldDescriptionstatic final ContentTypeContentType.APPLICATION_ATOM_XMLstatic final ContentTypeContentType.APPLICATION_FORM_URLENCODEDstatic final ContentTypeContentType.APPLICATION_JSONstatic final ContentTypeContentType.APPLICATION_OCTET_STREAMstatic final ContentTypeContentType.APPLICATION_SOAP_XMLstatic final ContentTypeContentType.APPLICATION_SVG_XMLstatic final ContentTypeContentType.APPLICATION_XHTML_XMLstatic final ContentTypeContentType.APPLICATION_XMLstatic final ContentTypeContentType.DEFAULT_BINARYstatic final ContentTypeContentType.DEFAULT_TEXTstatic final ContentTypeContentType.IMAGE_BMPstatic final ContentTypeContentType.IMAGE_GIFstatic final ContentTypeContentType.IMAGE_JPEGstatic final ContentTypeContentType.IMAGE_PNGstatic final ContentTypeContentType.IMAGE_SVGstatic final ContentTypeContentType.IMAGE_TIFFstatic final ContentTypeContentType.IMAGE_WEBPstatic final ContentTypeContentType.MULTIPART_FORM_DATAstatic final ContentTypeContentType.TEXT_HTMLstatic final ContentTypeContentType.TEXT_PLAINstatic final ContentTypeContentType.TEXT_XMLstatic final ContentTypeContentType.WILDCARDFields in org.apache.http.entity with type parameters of type ContentTypeModifier and TypeFieldDescriptionprivate static final Map<String, ContentType> ContentType.CONTENT_TYPE_MAPMethods in org.apache.http.entity that return ContentTypeModifier and TypeMethodDescriptionstatic ContentTypeCreates a new instance ofContentTypewithout a charset.static ContentTypeCreates a new instance ofContentType.static ContentTypeCreates a new instance ofContentType.static ContentTypeContentType.create(String mimeType, NameValuePair... params) Creates a new instance ofContentTypewith the given parameters.private static ContentTypeContentType.create(String mimeType, NameValuePair[] params, boolean strict) private static ContentTypeContentType.create(HeaderElement helem, boolean strict) static ContentTypeContentType.get(HttpEntity entity) ExtractsContent-Typevalue fromHttpEntityexactly as specified by theContent-Typeheader of the entity.static ContentTypeContentType.getByMimeType(String mimeType) ReturnsContent-Typefor the given MIME type.static ContentTypeContentType.getLenient(HttpEntity entity) ExtractsContent-Typevalue fromHttpEntity.static ContentTypeContentType.getLenientOrDefault(HttpEntity entity) ExtractsContent-Typevalue fromHttpEntityor returns the default valueDEFAULT_TEXTif not explicitly specified or incorrect (could not be parsed).static ContentTypeContentType.getOrDefault(HttpEntity entity) ExtractsContent-Typevalue fromHttpEntityor returns the default valueDEFAULT_TEXTif not explicitly specified.static ContentTypeParses textual representation ofContent-Typevalue.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. -
Uses of ContentType in org.apache.http.nio.entity
Constructors in org.apache.http.nio.entity with parameters of type ContentTypeModifierConstructorDescriptionNByteArrayEntity(byte[] b, int off, int len, ContentType contentType) NByteArrayEntity(byte[] b, ContentType contentType) NFileEntity(File file, ContentType contentType) Creates new instance of NFileEntity from the given sourceFilewith the given content type.NFileEntity(File file, ContentType contentType, boolean useFileChannels) Creates new instance of NFileEntity from the given sourceFilewith the given content type.NStringEntity(String s, ContentType contentType) Creates a NStringEntity with the specified content and content type. -
Uses of ContentType in org.apache.http.nio.protocol
Methods in org.apache.http.nio.protocol that return ContentTypeModifier and TypeMethodDescriptionprotected ContentTypeAbstractAsyncResponseConsumer.getContentType(HttpEntity entity) Methods in org.apache.http.nio.protocol with parameters of type ContentTypeModifier and TypeMethodDescriptionprotected abstract voidAbstractAsyncRequestConsumer.onEntityEnclosed(HttpEntity entity, ContentType contentType) Invoked if the request message encloses a content entity.protected abstract voidAbstractAsyncResponseConsumer.onEntityEnclosed(HttpEntity entity, ContentType contentType) Invoked if the response message encloses a content entity.protected voidBasicAsyncRequestConsumer.onEntityEnclosed(HttpEntity entity, ContentType contentType) protected voidBasicAsyncResponseConsumer.onEntityEnclosed(HttpEntity entity, ContentType contentType) -
Uses of ContentType in org.apache.http.util
Methods in org.apache.http.util with parameters of type ContentTypeModifier and TypeMethodDescriptionprivate static StringEntityUtils.toString(HttpEntity entity, ContentType contentType)