public class ContentType
extends java.lang.Object
Provide the ability to get the boundary param in case of a multipart content type on the one hand, and the ability to get only the MIME type string without any param on the other hand.
| Constructor and Description |
|---|
ContentType(java.lang.String type,
java.lang.String charset,
java.lang.String boundary) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getBoundary() |
java.lang.String |
getCharset() |
java.lang.String |
getType() |
java.lang.String |
getValue() |
static ContentType |
parse(org.apache.http.Header header,
java.lang.String overrideType,
java.lang.String defaultCharset) |
java.lang.String |
toString() |
public ContentType(java.lang.String type,
java.lang.String charset,
java.lang.String boundary)
@Nullable public static ContentType parse(@Nullable org.apache.http.Header header, @Nullable java.lang.String overrideType, @Nullable java.lang.String defaultCharset) throws HttpClientException
HttpClientException@Nullable public java.lang.String getType()
@Nullable public java.lang.String getCharset()
@Nullable public java.lang.String getBoundary()
@Nullable public java.lang.String getValue()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2015-2020 EXPath. All Rights Reserved