| 
 | ||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use ContentType | |
|---|---|
| org.apache.http.entity | Core HTTP entity implementations. | 
| Uses of ContentType in org.apache.http.entity | 
|---|
| Methods in org.apache.http.entity that return ContentType | |
|---|---|
| static ContentType | ContentType.create(String mimeType)Creates a new instance of ContentTypewithout a charset. | 
| static ContentType | ContentType.create(String mimeType,
       Charset charset)Creates a new instance of ContentType. | 
| static ContentType | ContentType.create(String mimeType,
       NameValuePair... params)Creates a new instance of ContentTypewith the given parameters. | 
| static ContentType | ContentType.create(String mimeType,
       String charset)Creates a new instance of ContentType. | 
| static ContentType | ContentType.get(HttpEntity entity)Extracts Content-Typevalue fromHttpEntityexactly as
 specified by theContent-Typeheader of the entity. | 
| static ContentType | ContentType.getByMimeType(String mimeType)Returns Content-Typefor the given MIME type. | 
| static ContentType | ContentType.getLenient(HttpEntity entity)Extracts Content-Typevalue fromHttpEntity. | 
| static ContentType | ContentType.getLenientOrDefault(HttpEntity entity)Extracts Content-Typevalue fromHttpEntityor returns the default valueDEFAULT_TEXTif not explicitly specified or incorrect (could not be parsed). | 
| static ContentType | ContentType.getOrDefault(HttpEntity entity)Extracts Content-Typevalue fromHttpEntityor returns the default valueDEFAULT_TEXTif not explicitly specified. | 
| static ContentType | ContentType.parse(String s)Parses textual representation of Content-Typevalue. | 
|  ContentType | ContentType.withCharset(Charset charset)Creates a new instance with this MIME type and the given Charset. | 
|  ContentType | ContentType.withCharset(String charset)Creates a new instance with this MIME type and the given Charset name. | 
|  ContentType | 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 ContentType | |
|---|---|
| ByteArrayEntity(byte[] b,
                ContentType contentType) | |
| ByteArrayEntity(byte[] b,
                int off,
                int len,
                ContentType contentType) | |
| FileEntity(File file,
           ContentType contentType)Creates a new instance. | |
| InputStreamEntity(InputStream inStream,
                  ContentType contentType)Creates an entity with a content type and unknown length. | |
| InputStreamEntity(InputStream inStream,
                  long length,
                  ContentType contentType) | |
| StringEntity(String string,
             ContentType contentType)Creates a StringEntity with the specified content and content type. | |
| 
 | ||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||