Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.meterware.httpunit
Class MessageBody  view MessageBody download MessageBody.java

java.lang.Object
  extended bycom.meterware.httpunit.MessageBody
Direct Known Subclasses:
MessageBodyWebRequest.InputStreamMessageBody, MimeEncodedMessageBody, URLEncodedMessageBody

abstract class MessageBody
extends java.lang.Object

An abstract class representing the body of a web request.


Field Summary
private  MessageBodyWebRequest _request
           
 
Constructor Summary
(package private) MessageBody(MessageBodyWebRequest request)
           
 
Method Summary
(package private) abstract  java.lang.String getContentType()
          Returns the content type of this message body.
protected  MessageBodyWebRequest getRequest()
           
(package private) abstract  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

_request

private MessageBodyWebRequest _request
Constructor Detail

MessageBody

MessageBody(MessageBodyWebRequest request)
Method Detail

getContentType

abstract java.lang.String getContentType()
Returns the content type of this message body. For text messages, this should include the character set.


writeTo

abstract void writeTo(java.io.OutputStream outputStream)
               throws java.io.IOException
Transmits the body of this request as a sequence of bytes.


getRequest

protected MessageBodyWebRequest getRequest()