|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.meterware.httpunit.protocol.MessageBody
public abstract class MessageBody
An abstract class representing the body of a web request.
Constructor Summary | |
---|---|
MessageBody(java.lang.String characterSet)
|
Method Summary | |
---|---|
static MessageBody |
createPostMethodMessageBody(boolean mimeEncoded,
java.lang.String characterSet)
Creates a message body for a POST request, selecting an appropriate encoding. |
java.lang.String |
getCharacterSet()
Returns the character set associated with this message body. |
abstract java.lang.String |
getContentType()
Returns the content type of this message body. |
abstract void |
writeTo(java.io.OutputStream outputStream,
ParameterCollection parameters)
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 |
Constructor Detail |
---|
public MessageBody(java.lang.String characterSet)
Method Detail |
---|
public static MessageBody createPostMethodMessageBody(boolean mimeEncoded, java.lang.String characterSet)
mimeEncoded
- if true, indicates that the request is using mime encoding.characterSet
- the character set of the request.
public java.lang.String getCharacterSet()
public abstract java.lang.String getContentType()
public abstract void writeTo(java.io.OutputStream outputStream, ParameterCollection parameters) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |