|
|||||||||
| Home >> All >> com >> meterware >> [ httpunit overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.meterware.httpunit
Class MimeEncodedMessageBody

java.lang.Objectcom.meterware.httpunit.MessageBody
com.meterware.httpunit.MimeEncodedMessageBody
- class MimeEncodedMessageBody
- extends MessageBody
A POST-method message body which is MIME-encoded. This is used when uploading files, and is selected when the enctype parameter of a form is set to "multi-part/form-data".
| Nested Class Summary | |
(package private) class |
MimeEncodedMessageBody.MimeEncoding
|
| Field Summary | |
private static java.lang.String |
BOUNDARY
|
private static byte[] |
CRLF
|
| Constructor Summary | |
MimeEncodedMessageBody(PostMethodWebRequest request)
|
|
| Method Summary | |
private java.lang.String |
encode(java.lang.String string)
|
(package private) java.lang.String |
getContentType()
Returns the content type of this message body. |
(package private) PostMethodWebRequest |
getPostRequest()
Returns the request associated with this message body, cast to a POST request. |
protected MessageBodyWebRequest |
getRequest()
|
private void |
writeLn(java.io.OutputStream os,
java.lang.String value)
|
private void |
writeLn(java.io.OutputStream os,
java.lang.String value,
java.lang.String encoding)
|
(package private) void |
writeTo(java.io.OutputStream outputStream)
Transmits the body of this request as a sequence of bytes. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
BOUNDARY
private static final java.lang.String BOUNDARY
- See Also:
- Constant Field Values
CRLF
private static final byte[] CRLF
| Constructor Detail |
MimeEncodedMessageBody
public MimeEncodedMessageBody(PostMethodWebRequest request)
| Method Detail |
getContentType
java.lang.String getContentType()
- Returns the content type of this message body.
- Specified by:
getContentTypein classMessageBody
getPostRequest
PostMethodWebRequest getPostRequest()
- Returns the request associated with this message body, cast to a POST request.
writeTo
void writeTo(java.io.OutputStream outputStream) throws java.io.IOException
- Transmits the body of this request as a sequence of bytes.
- Specified by:
writeToin classMessageBody
encode
private java.lang.String encode(java.lang.String string)
writeLn
private void writeLn(java.io.OutputStream os, java.lang.String value, java.lang.String encoding) throws java.io.IOException
writeLn
private void writeLn(java.io.OutputStream os, java.lang.String value) throws java.io.IOException
getRequest
protected MessageBodyWebRequest getRequest()
|
|||||||||
| Home >> All >> com >> meterware >> [ httpunit overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC