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

Quick Search    Search Deep

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

java.lang.Object
  extended bycom.meterware.httpunit.MessageBody
      extended bycom.meterware.httpunit.URLEncodedMessageBody

class URLEncodedMessageBody
extends MessageBody

A POST method request message body which uses the default URL encoding.


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

Constructor Detail

URLEncodedMessageBody

URLEncodedMessageBody(PostMethodWebRequest request)
Method Detail

getContentType

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

Specified by:
getContentType in class MessageBody

writeTo

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

Specified by:
writeTo in class MessageBody

getParameterString

private java.lang.String getParameterString()

getRequest

protected MessageBodyWebRequest getRequest()