Package org.apache.http.entity.mime
Class MultipartEntity
java.lang.Object
org.apache.http.entity.mime.MultipartEntity
- All Implemented Interfaces:
org.apache.http.HttpEntity
Deprecated.
Multipart/form coded HTTP entity consisting of multiple body parts.
- Since:
- 4.0
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Creates an instance using modeHttpMultipartMode.STRICT
Deprecated.Creates an instance using the specifiedHttpMultipartMode
mode.MultipartEntity
(HttpMultipartMode mode, String boundary, Charset charset) Deprecated.Creates an instance using the specified parameters -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPart
(String name, ContentBody contentBody) Deprecated.void
addPart
(FormBodyPart bodyPart) Deprecated.void
Deprecated.protected String
Deprecated.protected String
generateContentType
(String boundary, Charset charset) Deprecated.Deprecated.org.apache.http.Header
Deprecated.long
Deprecated.org.apache.http.Header
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.void
writeTo
(OutputStream outStream) Deprecated.
-
Constructor Details
-
MultipartEntity
Deprecated.Creates an instance using the specified parameters- Parameters:
mode
- the mode to use, may benull
, in which caseHttpMultipartMode.STRICT
is usedboundary
- the boundary string, may benull
, in which casegenerateBoundary()
is invoked to create the stringcharset
- the character set to use, may benull
, in which caseMIME.DEFAULT_CHARSET
- i.e. US-ASCII - is used.
-
MultipartEntity
Deprecated.Creates an instance using the specifiedHttpMultipartMode
mode. Boundary and charset are set tonull
.- Parameters:
mode
- the desired mode
-
MultipartEntity
public MultipartEntity()Deprecated.Creates an instance using modeHttpMultipartMode.STRICT
-
-
Method Details
-
generateContentType
Deprecated. -
generateBoundary
Deprecated. -
addPart
Deprecated. -
addPart
Deprecated. -
isRepeatable
public boolean isRepeatable()Deprecated.- Specified by:
isRepeatable
in interfaceorg.apache.http.HttpEntity
-
isChunked
public boolean isChunked()Deprecated.- Specified by:
isChunked
in interfaceorg.apache.http.HttpEntity
-
isStreaming
public boolean isStreaming()Deprecated.- Specified by:
isStreaming
in interfaceorg.apache.http.HttpEntity
-
getContentLength
public long getContentLength()Deprecated.- Specified by:
getContentLength
in interfaceorg.apache.http.HttpEntity
-
getContentType
public org.apache.http.Header getContentType()Deprecated.- Specified by:
getContentType
in interfaceorg.apache.http.HttpEntity
-
getContentEncoding
public org.apache.http.Header getContentEncoding()Deprecated.- Specified by:
getContentEncoding
in interfaceorg.apache.http.HttpEntity
-
consumeContent
Deprecated.- Specified by:
consumeContent
in interfaceorg.apache.http.HttpEntity
- Throws:
IOException
UnsupportedOperationException
-
getContent
Deprecated.- Specified by:
getContent
in interfaceorg.apache.http.HttpEntity
- Throws:
IOException
UnsupportedOperationException
-
writeTo
Deprecated.- Specified by:
writeTo
in interfaceorg.apache.http.HttpEntity
- Throws:
IOException
-
MultipartEntityBuilder
.