|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.foxinmy.weixin4j.http.apache.MultipartEntity
public class MultipartEntity
Multipart/form coded HTTP entity consisting of multiple body parts.
| Constructor Summary | |
|---|---|
MultipartEntity()
Creates an instance using mode HttpMultipartMode.STRICT |
|
MultipartEntity(HttpMultipartMode mode)
Creates an instance using the specified HttpMultipartMode mode. |
|
MultipartEntity(HttpMultipartMode mode,
String boundary,
Charset charset)
Creates an instance using the specified parameters |
|
| Method Summary | |
|---|---|
void |
addPart(FormBodyPart bodyPart)
|
void |
addPart(String name,
ContentBody contentBody)
|
void |
consumeContent()
|
InputStream |
getContent()
|
long |
getContentLength()
|
ContentType |
getContentType()
|
boolean |
isChunked()
|
boolean |
isRepeatable()
|
boolean |
isStreaming()
|
void |
writeTo(OutputStream outstream)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultipartEntity(HttpMultipartMode mode,
String boundary,
Charset charset)
mode - the mode to use, may be null, in which case
HttpMultipartMode.STRICT is usedboundary - the boundary string, may be null, in which case
generateBoundary() is invoked to create the stringcharset - the character set to use, may be null, in which case
MIME.DEFAULT_CHARSET - i.e. US-ASCII - is used.public MultipartEntity(HttpMultipartMode mode)
HttpMultipartMode mode.
Boundary and charset are set to null.
mode - the desired modepublic MultipartEntity()
HttpMultipartMode.STRICT
| Method Detail |
|---|
public void addPart(FormBodyPart bodyPart)
public void addPart(String name,
ContentBody contentBody)
public boolean isRepeatable()
public boolean isChunked()
public boolean isStreaming()
public long getContentLength()
getContentLength in interface HttpEntitypublic ContentType getContentType()
getContentType in interface HttpEntity
public void consumeContent()
throws IOException,
UnsupportedOperationException
IOException
UnsupportedOperationException
public InputStream getContent()
throws IOException,
UnsupportedOperationException
getContent in interface HttpEntityIOException
UnsupportedOperationException
public void writeTo(OutputStream outstream)
throws IOException
writeTo in interface HttpEntityIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||