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

Quick Search    Search Deep

org.milligan.eccles.httpunit
Class ResponseWrapper  view ResponseWrapper download ResponseWrapper.java

java.lang.Object
  extended byorg.milligan.eccles.httpunit.ResponseWrapper

public class ResponseWrapper
extends java.lang.Object

Wrapper to an HttpUnit WebResponse. Expose funtionality via specialised Map Interfaces to be able to be read by the JSTL evaluator.


Field Summary
protected  com.meterware.httpunit.WebResponse _response
          wrapped response
 
Constructor Summary
ResponseWrapper(com.meterware.httpunit.WebResponse response)
          Constructor
 
Method Summary
 com.meterware.httpunit.WebResponse get_response()
          Get the wrapped response
 java.lang.String getCharacterSet()
           
 java.lang.String getContentType()
           
 org.w3c.dom.Document getDOM()
           
 java.lang.String getExternalStyleSheet()
           
 int getFormCount()
          Get count of forms
 com.meterware.httpunit.WebForm[] getForms()
           
 int getFrameCount()
          Get count of frames
 java.lang.String[] getFrameNames()
           
 java.lang.String[] getHeaderFieldNames()
           
 int getLinkCount()
          Get count of links
 com.meterware.httpunit.WebLink[] getLinks()
           
 java.lang.String[] getNewCookieNames()
           
 int getRefreshDelay()
           
 com.meterware.httpunit.WebRequest getRefreshRequest()
           
 int getResponseCode()
           
 java.lang.String getResponseMessage()
           
 com.meterware.httpunit.WebTable[] getTables()
           
 java.lang.String getTarget()
           
 java.lang.String getText()
           
 java.lang.String getTitle()
           
 java.net.URL getURL()
           
 boolean isHTML()
           
 void set_Response(com.meterware.httpunit.WebResponse response)
          Set the wrapped response
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_response

protected com.meterware.httpunit.WebResponse _response
wrapped response

Constructor Detail

ResponseWrapper

public ResponseWrapper(com.meterware.httpunit.WebResponse response)
Constructor

Method Detail

get_response

public com.meterware.httpunit.WebResponse get_response()
Get the wrapped response


set_Response

public void set_Response(com.meterware.httpunit.WebResponse response)
Set the wrapped response


getLinkCount

public int getLinkCount()
                 throws org.xml.sax.SAXException
Get count of links


getFormCount

public int getFormCount()
                 throws org.xml.sax.SAXException
Get count of forms


getFrameCount

public int getFrameCount()
                  throws org.xml.sax.SAXException
Get count of frames


getFrameNames

public java.lang.String[] getFrameNames()
                                 throws org.xml.sax.SAXException

getText

public java.lang.String getText()
                         throws java.io.IOException

getContentType

public java.lang.String getContentType()

getURL

public java.net.URL getURL()

getTitle

public java.lang.String getTitle()
                          throws org.xml.sax.SAXException

getCharacterSet

public java.lang.String getCharacterSet()

getTarget

public java.lang.String getTarget()

getRefreshRequest

public com.meterware.httpunit.WebRequest getRefreshRequest()

getResponseMessage

public java.lang.String getResponseMessage()

getDOM

public org.w3c.dom.Document getDOM()
                            throws org.xml.sax.SAXException

getExternalStyleSheet

public java.lang.String getExternalStyleSheet()
                                       throws org.xml.sax.SAXException

getRefreshDelay

public int getRefreshDelay()

getForms

public com.meterware.httpunit.WebForm[] getForms()
                                          throws org.xml.sax.SAXException

getNewCookieNames

public java.lang.String[] getNewCookieNames()

getTables

public com.meterware.httpunit.WebTable[] getTables()
                                            throws org.xml.sax.SAXException

getLinks

public com.meterware.httpunit.WebLink[] getLinks()
                                          throws org.xml.sax.SAXException

getResponseCode

public int getResponseCode()

getHeaderFieldNames

public java.lang.String[] getHeaderFieldNames()

isHTML

public boolean isHTML()

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).