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 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.WILDCARDMethods 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.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.