Uses of Class
org.apache.http.entity.ContentType
-
Packages that use ContentType Package Description org.apache.http.entity Core HTTP entity implementations.org.apache.http.nio.entity Core HTTP entity implementations with support for asynchronous, event driven communication.org.apache.http.nio.protocol Core HTTP protocol execution framework and HTTP protocol handlers for asynchronous, event driven communication.org.apache.http.util Core utility classes. -
-
Uses of ContentType in org.apache.http.entity
Fields in org.apache.http.entity with type parameters of type ContentType Modifier and Type Field Description private static java.util.Map<java.lang.String,ContentType>ContentType. CONTENT_TYPE_MAPMethods in org.apache.http.entity that return ContentType Modifier and Type Method Description static ContentTypeContentType. create(java.lang.String mimeType)Creates a new instance ofContentTypewithout a charset.static ContentTypeContentType. create(java.lang.String mimeType, java.lang.String charset)Creates a new instance ofContentType.static ContentTypeContentType. create(java.lang.String mimeType, java.nio.charset.Charset charset)Creates a new instance ofContentType.static ContentTypeContentType. create(java.lang.String mimeType, NameValuePair... params)Creates a new instance ofContentTypewith the given parameters.private static ContentTypeContentType. create(java.lang.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(java.lang.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 ContentTypeContentType. parse(java.lang.String s)Parses textual representation ofContent-Typevalue.ContentTypeContentType. withCharset(java.lang.String charset)Creates a new instance with this MIME type and the given Charset name.ContentTypeContentType. withCharset(java.nio.charset.Charset charset)Creates a new instance with this MIME type and the given Charset.ContentTypeContentType. 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 ContentType Constructor Description ByteArrayEntity(byte[] b, int off, int len, ContentType contentType)ByteArrayEntity(byte[] b, ContentType contentType)FileEntity(java.io.File file, ContentType contentType)Creates a new instance.InputStreamEntity(java.io.InputStream inStream, long length, ContentType contentType)InputStreamEntity(java.io.InputStream inStream, ContentType contentType)Creates an entity with a content type and unknown length.StringEntity(java.lang.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 ContentType Constructor Description NByteArrayEntity(byte[] b, int off, int len, ContentType contentType)NByteArrayEntity(byte[] b, ContentType contentType)NFileEntity(java.io.File file, ContentType contentType)Creates new instance of NFileEntity from the given sourceFilewith the given content type.NFileEntity(java.io.File file, ContentType contentType, boolean useFileChannels)Creates new instance of NFileEntity from the given sourceFilewith the given content type.NStringEntity(java.lang.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 ContentType Modifier and Type Method Description protected ContentTypeAbstractAsyncResponseConsumer. getContentType(HttpEntity entity)Methods in org.apache.http.nio.protocol with parameters of type ContentType Modifier and Type Method Description protected 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 ContentType Modifier and Type Method Description private static java.lang.StringEntityUtils. toString(HttpEntity entity, ContentType contentType)
-