This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
FYI: Patch: gnu.java.net.protocol.http.Connection
- From: Michael Koch <konqueror at gmx dot de>
- To: java-patches at gcc dot gnu dot org
- Date: Sat, 27 Dec 2003 21:53:55 +0100
- Subject: FYI: Patch: gnu.java.net.protocol.http.Connection
Hi list,
I commited the attached patch which removes the methods getRequestProperty()
and setRequestProperty() because these are already in java.net.URLConnection.
Michael
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/libjava/ChangeLog,v
retrieving revision 1.2494
diff -u -b -B -r1.2494 ChangeLog
--- ChangeLog 27 Dec 2003 17:24:50 -0000 1.2494
+++ ChangeLog 27 Dec 2003 20:36:14 -0000
@@ -1,6 +1,12 @@
2003-12-27 Michael Koch <konqueror@gmx.de>
* gnu/java/net/protocol/http/Connection.java
+ (getRequestProperty): Removed.
+ (setRequestProperty): Removed.
+
+2003-12-27 Michael Koch <konqueror@gmx.de>
+
+ * gnu/java/net/protocol/http/Connection.java
(connect): Call receiveReply().
(receiveReply): Renamed from getHttpHeaders().
(getOutputStream): Moved check on doOutput before check for connection
Index: gnu/java/net/protocol/http/Connection.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/gnu/java/net/protocol/http/Connection.java,v
retrieving revision 1.8
diff -u -b -B -r1.8 Connection.java
--- gnu/java/net/protocol/http/Connection.java 27 Dec 2003 17:24:51 -0000 1.8
+++ gnu/java/net/protocol/http/Connection.java 27 Dec 2003 20:36:14 -0000
@@ -122,22 +122,6 @@
doOutput = false;
}
- public void setRequestProperty(String key, String value)
- {
- if (connected)
- throw new IllegalAccessError("Connection already established.");
-
- requestProperties.put(key, value);
- }
-
- public String getRequestProperty(String key)
- {
- if (connected)
- throw new IllegalAccessError("Connection already established.");
-
- return (String) requestProperties.get(key);
- }
-
/**
* Connects to the remote host, sends the request, and parses the reply
* code and header information returned