1. 10 Oct, 2002 1 commit
    • 2002-10-08 Michael Koch <konqueror@gmx.de> · 7393decb
      	* java/net/HttpURLConnection.java
      	(getPermission): New method.
      	(getErrorStream): New stub method.
      	(getHeaderFieldDate): New stub method.
      	* java/net/Inet4Address.java:
      	(isLinkLocalAddress): Typo fixed.
      	* java/net/InetAddress.java:
      	(readResolve): New stubbed method (for serialization).
      	(isAnyLocalAddress): New stubbed method.
      	(isLoopbackAddress): New stubbed method.
      	(isLinkLocalAddress): New stubbed method.
      	(isSiteLocalAddress): New stubbed method.
      	(isMCGlobal): New stubbed method.
      	(isMCNodeGlobal): New stubbed method.
      	(isMCLinkLocal): New stubbed method.
      	(isMCSiteLocal): New stubbed method.
      	(isMCOrgLocal): New stubbed method.
      	(getCanonicalHostName): New stubbed method.
      	(getByAddress): Create instances of Inet4Address/Inet6Address,
      	instead of InetAddress, documentation added.
      	* java/net/MulticastSocket.java
      	(getInterface): Removed FIXME.
      	(getNetworkInterface): New method.
      	(setNetworkInterface): New method.
      	* java/net/NetworkInterface.java:
      	(toString): Use property "line.separator" instead of "\n".
      	* java/net/URLConnection.java
      	(getContent): New stubbed method.
      	* java/net/URLStreamHandler.java:
      	(equals): New stubbed method.
      	(hostsEqual): New stubbed method.
      	(hashCode): New stubbed method.
      	* java/net/natNetworkInterface.cc:
      	(getRealNetworkInterfaces): Create Inet4Address object
      	instead of InetAddress.
      
      From-SVN: r58002
      Michael Koch committed
  2. 03 Oct, 2002 1 commit
    • 2002-09-30 Michael Koch <konqueror@gmx.de> · e832ab3c
      	* java/net/DatagramSocket.java
      	(receive): Check with SecurityManager AFTER the packet is received,
      	check if connected to multicast address, documentation added.
      	(send): Only check SecurityManager if connected, check address of
      	packet to send.
      	(connect): Implemented, documentation added.
      	* java/net/Inet6Address.java: New file (not added yet to Makefile.am).
      	* java/net/InetSocketAddress.java
      	(whole file): Reindented.
      	(hostname): New attribute.
      	(InetSocketAddress): Initialize new attribute.
      	(getAddress): Documentation added.
      	(getHostName): Documentation added.
      	(getPort): Documentation added.
      	(hashCode): Documentation added.
      	(isUnresolved): Documentation added.
      	(toString): Conform to output of JDK 1.4.1, documentation added.
      	* java/net/MulticastSocket.java
      	(joinGroup): Removed FIXME, documentation added.
      	(leaveGroup): Removed FIXME, documentation added.
      	(send): Documentation added.
      	* java/net/Socket.java
      	(inputShutdown): New variable.
      	(outputShutdown): New variable.
      	(Socket): Initialize new variables.
      	(getRemoteSocketAddress): Check if connected.
      	(shutdownInput): Set new variable.
      	(shutdownOutput): Set new variable.
      	(isConnected): New method.
      	(isClosed): New method.
      	(isInputShutdown): New method.
      	(isOutputShutdown): New method.
      	* java/net/URLStreamHandler.java
      	(URLStreamHandler): New method.
      	(openConnection): Added documentation.
      	(parseURL): Added documentation.
      	(getHostAddress): New method.
      	(getDefaultPort): New method.
      
      From-SVN: r57772
      Michael Koch committed
  3. 25 Sep, 2002 2 commits
    • 2002-09-25 Michael Koch <konqueror@gmx.de> · fc44b85d
      	* java/net/DatagramSocket.java
      	(DatagramSocket): Initialize new instance variables.
      	(close): Reset new instance variables.
      	(getLocalAddress): Remove unneeded SecurityManager usage.
      	(getLocalPort): Check if socket is already bound.
      	(isConnected): New method.
      	(getInetAddress): Implemented.
      	(getPort): Better Implementation, documentation fixed.
      	(getRemoteSocketAddress): New method.
      	* java/net/JarURLConnection.java
      	(element): Typo fixed.
      	(getMainAttributes): New method.
      	(getAttributes): New method (stub only).
      	(getManifest): New method (stub only).
      	* java/net/NetPermission.java: Added serialVersionsUID.
      	* java/net/Socket.java
      	(connect): Check blocking mode of associated channel,
      	documentation added.
      	(getLocalSocketAddress): Better implementation.
      	(getRemoteSocketAddress): Implemented.
      	(isBound): New method.
      	(setSendBufferSize): Documentation added.
      	* java/net/SocketAddress.java: Added serialVersionsUID.
      	* java/net/SocketPermission.java: Added serialVersionsUID.
      	* java/net/URL.java
      	(URL): Wrap for shorter lines, initialize new instance variables,
      	documentation added.
      	(equals): Check new instance variables too.
      	(getContent): Documentation added.
      	(getPath): Documentation added.
      	(getAuthority): New method.
      	(getHost): Documentation added.
      	(getPort): Documentation added.
      	(getDefaultPort): New method.
      	(getProtocol): Documentation added.
      	(getUserInfo): Documentation added.
      	(set): Initialize new instance variables, documentation added.
      	* java/net/URLStreamHandler.java
      	(setURL): New method.
      	* java/net/natPlainDatagramSocketImpl.cc
      	(connect): Fix exception name.
      	(disconnect): Fix exception name.
      
      From-SVN: r57501
      Michael Koch committed
    • 2002-09-25 Michael Koch <konqueror@gmx.de> · df79dc1a
      	* java/net/DatagramSocket.java
      	(DatagramSocket): Exception documentation added.
      	(bind): Exception documentation added, addded SecurityManager check,
      	added SocketAddress type check.
      	(getSoTimeout): Check impl.
      	(receive): Fix SecurityManager check, check impl, documentation added.
      	(send): Check channel mode, documentation added.
      	(connect): New method.
      	(disconnect): Implemented.
      	(getLocalSocketAddress): New method.
      	(getReceiveBufferSize): Check impl.
      	(setReuseAddress): Check impl.
      	(getReuseAddress): Check impl.
      	(setBroadcast): Check impl.
      	(getBroadcast): Check impl.
      	(setTrafficClass): Check impl, Documentation cleared.
      	(getTrafficClass): Check impl.
      	(getSendBufferSize): Check impl.
      	(setReceiveBufferSize): Check impl, documentation added.
      	(setSendBufferSize): Documentation added.
      	(setDatagramSocketImplFactory): New method.
      	* java/net/HttpURLConnection.java
      	(HTTP_INTERNAL_ERROR): The correct code is 500.
      	(HTTP_NOT_IMPLEMENTED): Added new constant.
      	(setFollowRedirects): Documentation added.
      	(getInstanceFollowRedirects): New method.
      	(setInstanceFollowRedirects): New method.
      	(setRequestMethod): Documentation added.
      	(getResponseCode): Documentation added.
      	(getResponseMessage): Documentation added.
      	* java/net/JarURLConnection.java
      	(JarURLConnection): protected since JDK 1.4.
      	(getJarEntry): java.io.IOException to IOException, documentation added.
      	(getJarFile): Documentation added.
      	* java/net/ServerSocket.java
      	(ServerSocket): Private to public, exception added.
      	(ServerSocket): java.io.IOException to IOException, documentation added.
      	(bind): Check socket address type, documentation added.
      	(bind): java.io.IOException to IOException, documentation added.
      	(accept): Documentation added.
      	(implAccept): Check ch is not non-blocking, documentation added.
      	(setSoTimeout): Documentation fixed.
      	(setReceiveBufferSize): Documentation added.
      	* java/net/Socket.java
      	(Socket): Documentation added.
      	(bind): Documentation added.
      	(connect): Check socket address type, documentation added.
      	(getRemoteSocketAddress): New method.
      
      From-SVN: r57494
      Michael Koch committed
  4. 23 Feb, 2002 1 commit
    • URL.java (getPath): New JDK 1.3 method. · 9abe2e29
      	* java/net/URL.java (getPath):  New JDK 1.3 method.
      
      	* java/net/URLStreamHandler.java (parseURL):
      	It is wrong to prepend '/' to the file part of a relative url.
      
      	* java/net/URLStreamHandler.java (parseURL):
      	Minor optizations - append '/' rather than "/".
      
      	* java/net/URLStreamHandler.java (parseURL):
      	Don't canonicalize "xx/.." or "./" URLs - JDK doesn't.
      	We probably should canonicalize for a context-relative url, though.
      	* java/net/URL.java (sameFile):  Delegate to URLStreamHandler.
      	* java/net/URLStreamHandler.java (canonicalizeFilename):  New helper.
      	(sameFile):  New method.  Uses canonicalizeFilename.
      
      From-SVN: r49980
      Per Bothner committed
  5. 19 Mar, 2001 1 commit
  6. 07 Mar, 2000 1 commit
  7. 19 Jan, 2000 1 commit
  8. 03 Jun, 1999 1 commit
    • [multiple changes] · a259a248
      1999-06-02  Warren Levy  <warrenl@cygnus.com>
      	* java/net/URL.java (URL(URL,String)): Initialize port to -1.
      	Ignore context if spec is an absolute URL.  Fix braindead
      	string comparison.
      	(hashCode): Use JDK 1.2 style algorithm.
      	* java/net/URLStreamHandler.java (parseURL): Reimplement to handle
      	context URL properly.
      1999-05-30  Anthony Green  <green@cygnus.com>
      	* java/net/URLStreamHandler.java (parseURL): Parse relative URLs
      	correctly.  Clean up "/../" and "/./" path fragments.
      
      From-SVN: r27334
      Warren Levy committed
  9. 15 Apr, 1999 1 commit
    • Makefile.am (ordinary_java_source_files): Added new Connection and Handler… · d825fa87
      Makefile.am (ordinary_java_source_files): Added new Connection and Handler classes in gnu.gcj.protocol.file package.
      
      	* Makefile.am (ordinary_java_source_files): Added new Connection
      	and Handler classes in gnu.gcj.protocol.file package.
      	* Makefile.in: Rebuilt.
      	* gnu/gcj/protocol/file/Connection.java: New file.
      	* gnu/gcj/protocol/file/Handler.java: New file.
      	* gnu/gcj/protocol/http/Connection.java (getInputStream): Check
      	if doInput allows input.
      	(getOutputStream): Check if doOutput allows output.
      	* java/net/URLStreamHandler.java (parseURL): Fix indentation.
      
      From-SVN: r26479
      Warren Levy committed
  10. 07 Apr, 1999 1 commit