2003-03-02 Michael Koch <konqueror@gmx.de>

* java/net/HttpURLConnection.java
	(HTTP_SERVER_ERROR): Deprecated.
	* java/net/MulticastSocket.java
	(send): Replaced checkMulticast with appropriate checkPermission call,
	deprecated.
	* java/net/URLDecoder.java
	(decode): Deprecated.
	* java/net/URLEncoder.java
	(encode): Deprecated.

From-SVN: r63679
This commit is contained in:
Michael Koch
2003-03-02 20:11:13 +00:00
committed by Michael Koch
parent b45e9837a7
commit 68dfecb392
5 changed files with 27 additions and 5 deletions
+2
View File
@@ -242,6 +242,8 @@ public abstract class HttpURLConnection extends URLConnection
/**
* This error code indicates that some sort of server error occurred.
*
* @deprecated
*/
public static final int HTTP_SERVER_ERROR = 500;
+9 -5
View File
@@ -426,17 +426,21 @@ public class MulticastSocket extends DatagramSocket
* @exception IOException If an error occurs
* @exception SecurityException If a security manager exists and its
* checkConnect or checkMulticast method doesn't allow the operation
*
* @deprecated
*/
public synchronized void send(DatagramPacket p, byte ttl) throws IOException
{
SecurityManager s = System.getSecurityManager();
if (s != null)
{
InetAddress addr = p.getAddress();
if (addr.isMulticastAddress())
s.checkMulticast(addr, ttl);
else
s.checkConnect(addr.getHostAddress(), p.getPort());
InetAddress addr = p.getAddress();
if (addr.isMulticastAddress())
s.checkPermission (new SocketPermission
(addr.getHostName () + p.getPort (),
"accept,connect"));
else
s.checkConnect(addr.getHostAddress(), p.getPort());
}
int oldttl = impl.getTimeToLive();
+2
View File
@@ -77,6 +77,8 @@ public class URLDecoder
* @param s the String to convert
*
* @return the converted String
*
* @deprecated
*/
public static String decode(String s)
{
+2
View File
@@ -71,6 +71,8 @@ public class URLEncoder
* @param s The String to convert
*
* @return The converted String
*
* @deprecated
*/
public static String encode(String s)
{