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.STRICTDeprecated.Creates an instance using the specifiedHttpMultipartModemode.MultipartEntity(HttpMultipartMode mode, String boundary, Charset charset) Deprecated.Creates an instance using the specified parameters -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPart(String name, ContentBody contentBody) Deprecated.voidaddPart(FormBodyPart bodyPart) Deprecated.voidDeprecated.protected StringDeprecated.protected StringgenerateContentType(String boundary, Charset charset) Deprecated.Deprecated.org.apache.http.HeaderDeprecated.longDeprecated.org.apache.http.HeaderDeprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.voidwriteTo(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.STRICTis 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 specifiedHttpMultipartModemode. Boundary and charset are set tonull.- Parameters:
mode- the desired mode
-
MultipartEntity
-
-
Method Details
-
generateContentType
-
generateBoundary
Deprecated. -
addPart
Deprecated. -
addPart
Deprecated. -
isRepeatable
public boolean isRepeatable()Deprecated.- Specified by:
isRepeatablein interfaceorg.apache.http.HttpEntity
-
isChunked
public boolean isChunked()Deprecated.- Specified by:
isChunkedin interfaceorg.apache.http.HttpEntity
-
isStreaming
public boolean isStreaming()Deprecated.- Specified by:
isStreamingin interfaceorg.apache.http.HttpEntity
-
getContentLength
public long getContentLength()Deprecated.- Specified by:
getContentLengthin interfaceorg.apache.http.HttpEntity
-
getContentType
public org.apache.http.Header getContentType()Deprecated.- Specified by:
getContentTypein interfaceorg.apache.http.HttpEntity
-
getContentEncoding
public org.apache.http.Header getContentEncoding()Deprecated.- Specified by:
getContentEncodingin interfaceorg.apache.http.HttpEntity
-
consumeContent
Deprecated.- Specified by:
consumeContentin interfaceorg.apache.http.HttpEntity- Throws:
IOExceptionUnsupportedOperationException
-
getContent
Deprecated.- Specified by:
getContentin interfaceorg.apache.http.HttpEntity- Throws:
IOExceptionUnsupportedOperationException
-
writeTo
Deprecated.- Specified by:
writeToin interfaceorg.apache.http.HttpEntity- Throws:
IOException
-
MultipartEntityBuilder.