com.meterware.httpunit
Class MessageBodyWebRequest.InputStreamMessageBody

java.lang.Object
  extended bycom.meterware.httpunit.protocol.MessageBody
      extended bycom.meterware.httpunit.MessageBodyWebRequest.InputStreamMessageBody
Enclosing class:
MessageBodyWebRequest

public static class MessageBodyWebRequest.InputStreamMessageBody
extends com.meterware.httpunit.protocol.MessageBody

A method request message body read directly from an input stream.


Constructor Summary
MessageBodyWebRequest.InputStreamMessageBody(java.io.InputStream source, java.lang.String contentType)
           
 
Method Summary
 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.
 
Methods inherited from class com.meterware.httpunit.protocol.MessageBody
createPostMethodMessageBody, getCharacterSet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageBodyWebRequest.InputStreamMessageBody

public MessageBodyWebRequest.InputStreamMessageBody(java.io.InputStream source,
                                                    java.lang.String contentType)
Method Detail

getContentType

public java.lang.String getContentType()
Returns the content type of this message body.


writeTo

public void writeTo(java.io.OutputStream outputStream,
                    com.meterware.httpunit.protocol.ParameterCollection parameters)
             throws java.io.IOException
Transmits the body of this request as a sequence of bytes.

Throws:
java.io.IOException

Copyright © 2000-2008 Russell Gold. See license agreement for rights granted.