public static class MessageBodyWebRequest.InputStreamMessageBody
extends com.meterware.httpunit.protocol.MessageBody
Constructor | Description |
---|---|
InputStreamMessageBody(java.io.InputStream source,
java.lang.String contentType) |
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getContentType() |
Returns the content type of this message body.
|
void |
writeTo(java.io.OutputStream outputStream,
com.meterware.httpunit.protocol.ParameterCollection parameters) |
Transmits the body of this request as a sequence of bytes.
|
public InputStreamMessageBody(java.io.InputStream source, java.lang.String contentType)
public java.lang.String getContentType()
getContentType
in class com.meterware.httpunit.protocol.MessageBody
public void writeTo(java.io.OutputStream outputStream, com.meterware.httpunit.protocol.ParameterCollection parameters) throws java.io.IOException
writeTo
in class com.meterware.httpunit.protocol.MessageBody
java.io.IOException