|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use ContentType | |
---|---|
org.apache.http.entity | Representations for HTTP message entities. |
org.apache.http.nio.entity | Representations for non-blocking HTTP message entities. |
Uses of ContentType in org.apache.http.entity |
---|
Fields in org.apache.http.entity declared as ContentType | |
---|---|
static ContentType |
ContentType.DEFAULT_BINARY
|
static ContentType |
ContentType.DEFAULT_TEXT
|
Methods in org.apache.http.entity that return ContentType | |
---|---|
static ContentType |
ContentType.create(String mimeType,
String charset)
Creates a new instance of ContentType . |
static ContentType |
ContentType.get(HttpEntity entity)
Extracts Content-Type value from HttpEntity exactly as
specified by the Content-Type header of the entity. |
static ContentType |
ContentType.getOrDefault(HttpEntity entity)
Extracts Content-Type value from HttpEntity or returns default value
if not explicitly specified. |
static ContentType |
ContentType.parse(String s)
Parses textual representation of Content-Type value. |
Methods in org.apache.http.entity with parameters of type ContentType | |
---|---|
static StringEntity |
StringEntity.create(String string,
ContentType contentType)
Creates a StringEntity with the specified content and content type. |
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)
|
|
InputStreamEntity(InputStream instream,
long length,
ContentType contentType)
|
|
StringEntity(String string,
ContentType contentType)
Creates a StringEntity with the specified content and content type. |
Uses of ContentType in org.apache.http.nio.entity |
---|
Methods in org.apache.http.nio.entity with parameters of type ContentType | |
---|---|
static NStringEntity |
NStringEntity.create(String string,
ContentType contentType)
Creates a NStringEntity with the specified content and content type. |
Constructors in org.apache.http.nio.entity with parameters of type ContentType | |
---|---|
NByteArrayEntity(byte[] b,
ContentType contentType)
|
|
NByteArrayEntity(byte[] b,
int off,
int len,
ContentType contentType)
|
|
NFileEntity(File file,
ContentType contentType)
Creates new instance of NFileEntity from the given source File
with the given content type. |
|
NFileEntity(File file,
ContentType contentType,
boolean useFileChannels)
Creates new instance of NFileEntity from the given source File
with the given content type. |
|
NStringEntity(String s,
ContentType contentType)
Creates a NStringEntity with the specified content and content type. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |