[Httpunit-commit] CVS: httpunit/src/com/meterware/httpunit NotHTMLException.java,NONE,1.1 WebRespons
Brought to you by:
russgold
From: Russell G. <rus...@us...> - 2002-05-16 17:44:23
|
Update of /cvsroot/httpunit/httpunit/src/com/meterware/httpunit In directory usw-pr-cvs1:/tmp/cvs-serv9233/src/com/meterware/httpunit Modified Files: WebResponse.java Added Files: NotHTMLException.java Log Message: from James Murty: support servlet caching, XML parsing cleanup ***** Error reading new file[Errno 2] No such file or directory: 'NotHTMLException.java' Index: WebResponse.java =================================================================== RCS file: /cvsroot/httpunit/httpunit/src/com/meterware/httpunit/WebResponse.java,v retrieving revision 1.64 retrieving revision 1.65 diff -u -r1.64 -r1.65 --- WebResponse.java 6 Mar 2002 04:59:52 -0000 1.64 +++ WebResponse.java 16 May 2002 17:44:20 -0000 1.65 @@ -20,17 +20,16 @@ * *******************************************************************************************************************/ -import java.io.*; - - -import java.lang.reflect.Constructor; -import java.lang.reflect.InvocationTargetException; -import java.lang.reflect.Method; - +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.InputStream; +import java.io.StreamTokenizer; +import java.io.StringReader; +import java.io.UnsupportedEncodingException; import java.net.HttpURLConnection; import java.net.URL; import java.net.URLConnection; - import java.util.Enumeration; import java.util.Hashtable; import java.util.Vector; @@ -39,7 +38,6 @@ import org.w3c.dom.Document; import org.w3c.dom.Node; import org.w3c.dom.NodeList; - import org.xml.sax.InputSource; import org.xml.sax.SAXException; @@ -95,7 +93,6 @@ * </code> * will return "/mystyle.css". * @exception SAXException thrown if there is an error parsing this response - * @author <a href="mailto:bx...@bi...">Benoit Xhenseval</a> **/ public String getExternalStyleSheet() throws SAXException { return getReceivedPage().getExternalStyleSheet(); @@ -655,7 +652,7 @@ * This method does not parse path,domain,expires or secure information * about the cookie.</p> * - * @returns Hashtable a <code>Hashtable</code> of where the name of the + * @return Hashtable a <code>Hashtable</code> of where the name of the * cookie is the key and the value of the cookie is * the value */ @@ -1033,24 +1030,5 @@ private String _responseText; -} - - -//================================================================================================== - - -class NotHTMLException extends RuntimeException { - - NotHTMLException( String contentType ) { - _contentType = contentType; - } - - - public String getMessage() { - return "The content type of the response is '" + _contentType + "': it must be 'text/html' in order to be recognized as HTML"; - } - - - private String _contentType; } |