[Httpunit-commit] CVS: httpunit/src/com/meterware/httpunit MessageBodyWebRequest.java,1.5,1.6
Brought to you by:
russgold
|
From: Russell G. <rus...@us...> - 2002-01-22 15:24:47
|
Update of /cvsroot/httpunit/httpunit/src/com/meterware/httpunit
In directory usw-pr-cvs1:/tmp/cvs-serv15466/src/com/meterware/httpunit
Modified Files:
MessageBodyWebRequest.java
Log Message:
Changed protection to allow extensions
Index: MessageBodyWebRequest.java
===================================================================
RCS file: /cvsroot/httpunit/httpunit/src/com/meterware/httpunit/MessageBodyWebRequest.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- MessageBodyWebRequest.java 2002/01/14 18:13:45 1.5
+++ MessageBodyWebRequest.java 2002/01/22 15:24:44 1.6
@@ -38,6 +38,30 @@
/**
+ * Constructs a web request using a specific absolute url string.
+ **/
+ protected MessageBodyWebRequest( String urlString ) {
+ super( urlString );
+ }
+
+
+ /**
+ * Constructs a web request with a specific target.
+ **/
+ protected MessageBodyWebRequest( URL urlBase, String urlString, String target ) {
+ super( urlBase, urlString, target );
+ }
+
+
+ /**
+ * Constructs a web request for a form.
+ **/
+ protected MessageBodyWebRequest( WebForm sourceForm, SubmitButton button, int x, int y ) {
+ super( sourceForm, button, x, y );
+ }
+
+
+ /**
* Subclasses must override this method to provide a message body for the
* request.
**/
@@ -68,41 +92,12 @@
}
-//----------------------------------- package members -----------------------------------
-
-
- /**
- * Constructs a web request using a specific absolute url string.
- **/
- MessageBodyWebRequest( String urlString ) {
- super( urlString );
- }
-
-
- /**
- * Constructs a web request with a specific target.
- **/
- MessageBodyWebRequest( URL urlBase, String urlString, String target ) {
- super( urlBase, urlString, target );
- }
-
-
- /**
- * Constructs a web request for a form.
- **/
- MessageBodyWebRequest( WebForm sourceForm, SubmitButton button, int x, int y ) {
- super( sourceForm, button, x, y );
- }
-
-
-
-
//============================= class InputStreamMessageBody ======================================
/**
* A method request message body read directly from an input stream.
**/
- static class InputStreamMessageBody extends MessageBody {
+ public static class InputStreamMessageBody extends MessageBody {
InputStreamMessageBody( MessageBodyWebRequest request, InputStream source, String contentType ) {
|