Michael Koch
47af138fc5
PlainDatagramSocketImpl.java: Merged copyright header.
...
2005-04-20 Michael Koch <konqueror@gmx.de>
* gnu/java/net/PlainDatagramSocketImpl.java:
Merged copyright header.
* gnu/java/net/PlainSocketImpl.java:
Reorganized import statements. Fixed @author tags.
From-SVN: r98443
2005-04-20 05:58:46 +00:00
Chris Burdess
16a5a05324
BASE64.java: Truncate encoded byte array.
...
2005-04-18 Chris Burdess <dog@gnu.org>
* gnu/java/net/BASE64.java: Truncate encoded byte array.
From-SVN: r98343
2005-04-18 19:32:02 +00:00
Michael Koch
1c6dcd2527
2005-04-18 Michael Koch <konqueror@gmx.de>
...
gnu/java/awt/EmbeddedWindowSupport.java,
gnu/java/net/HeaderFieldHelper.java,
gnu/java/net/URLParseError.java,
gnu/java/net/protocol/file/Handler.java,
gnu/java/net/protocol/jar/Handler.java:
Fixed usage of @author tag.
From-SVN: r98342
2005-04-18 19:17:31 +00:00
Michael Koch
fb227d5c24
Buffers.java, [...]: Reorganized import statements.
...
2005-04-18 Michael Koch <konqueror@gmx.de>
* gnu/java/awt/Buffers.java,
gnu/java/awt/image/ImageDecoder.java,
gnu/java/awt/image/XBMDecoder.java,
gnu/java/awt/peer/ClasspathFontPeer.java,
gnu/java/net/CRLFInputStream.java,
gnu/java/net/EmptyX509TrustManager.java,
gnu/java/net/LineInputStream.java,
gnu/java/net/protocol/ftp/ActiveModeDTP.java,
gnu/java/net/protocol/ftp/BlockInputStream.java,
gnu/java/net/protocol/ftp/CompressedInputStream.java,
gnu/java/net/protocol/ftp/DTP.java,
gnu/java/net/protocol/ftp/DTPInputStream.java,
gnu/java/net/protocol/ftp/FTPConnection.java,
gnu/java/net/protocol/ftp/FTPURLConnection.java,
gnu/java/net/protocol/ftp/PassiveModeDTP.java,
gnu/java/net/protocol/ftp/StreamInputStream.java,
gnu/java/net/protocol/http/ChunkedInputStream.java,
gnu/java/net/protocol/http/HTTPConnection.java,
gnu/java/net/protocol/http/HTTPURLConnection.java,
gnu/java/net/protocol/http/Headers.java,
gnu/java/net/protocol/http/Request.java,
gnu/java/nio/ChannelInputStream.java,
gnu/java/nio/ChannelOutputStream.java,
gnu/java/nio/InputStreamChannel.java,
gnu/java/nio/OutputStreamChannel.java,
gnu/java/nio/SelectorProviderImpl.java,
gnu/java/rmi/RMIMarshalledObjectInputStream.java,
gnu/java/rmi/RMIMarshalledObjectOutputStream.java,
gnu/java/rmi/dgc/DGCImpl.java,
gnu/java/rmi/registry/RegistryImpl.java,
gnu/java/rmi/server/ProtocolConstants.java,
gnu/java/rmi/server/RMIDefaultSocketFactory.java,
gnu/java/rmi/server/RMIIncomingThread.java,
gnu/java/rmi/server/RMIObjectInputStream.java,
gnu/java/rmi/server/RMIObjectOutputStream.java,
gnu/java/rmi/server/RMIVoidValue.java,
gnu/java/rmi/server/UnicastConnectionManager.java,
gnu/java/rmi/server/UnicastRef.java,
gnu/java/rmi/server/UnicastRemoteCall.java,
gnu/java/rmi/server/UnicastRemoteStub.java,
gnu/java/rmi/server/UnicastServerRef.java,
gnu/java/security/OID.java,
gnu/java/security/der/DERReader.java,
gnu/java/security/provider/CollectionCertStoreImpl.java,
gnu/java/security/provider/DSAParameterGenerator.java,
gnu/java/security/provider/DefaultPolicy.java,
gnu/java/security/provider/EncodedKeyFactory.java,
gnu/java/security/provider/GnuDHPublicKey.java,
gnu/java/security/provider/GnuDSAPrivateKey.java,
gnu/java/security/provider/GnuDSAPublicKey.java,
gnu/java/security/provider/GnuRSAPrivateKey.java,
gnu/java/security/provider/GnuRSAPublicKey.java,
gnu/java/security/provider/PKIXCertPathValidatorImpl.java,
gnu/java/security/provider/RSA.java,
gnu/java/security/provider/SHA1PRNG.java,
gnu/java/security/provider/SHA1withRSA.java,
gnu/java/security/provider/X509CertificateFactory.java,
gnu/java/security/x509/GnuPKIExtension.java,
gnu/java/security/x509/X500DistinguishedName.java,
gnu/java/security/x509/X509CRL.java,
gnu/java/security/x509/X509CRLEntry.java,
gnu/java/security/x509/X509CertPath.java,
gnu/java/security/x509/X509CertSelectorImpl.java,
gnu/java/security/x509/X509Certificate.java,
gnu/java/security/x509/ext/AuthorityKeyIdentifier.java,
gnu/java/security/x509/ext/BasicConstraints.java,
gnu/java/security/x509/ext/CRLNumber.java,
gnu/java/security/x509/ext/CertificatePolicies.java,
gnu/java/security/x509/ext/ExtendedKeyUsage.java,
gnu/java/security/x509/ext/Extension.java,
gnu/java/security/x509/ext/GeneralNames.java,
gnu/java/security/x509/ext/IssuerAlternativeNames.java,
gnu/java/security/x509/ext/KeyUsage.java,
gnu/java/security/x509/ext/PolicyConstraint.java,
gnu/java/security/x509/ext/PolicyMappings.java,
gnu/java/security/x509/ext/PrivateKeyUsagePeriod.java,
gnu/java/security/x509/ext/ReasonCode.java,
gnu/java/security/x509/ext/SubjectAlternativeNames.java,
gnu/java/security/x509/ext/SubjectKeyIdentifier.java:
Reorganized import statements.
From-SVN: r98339
2005-04-18 18:40:27 +00:00
David Daney
6dcd18b9aa
natPlainSocketImplPosix.cc (read_helper): Handle count == 0 case.
...
2005-03-15 David Daney <ddaney@avtrex.com>
* gnu/java/net/natPlainSocketImplPosix.cc (read_helper): Handle
count == 0 case.
2005-03-15 David Daney <ddaney@avtrex.com>
* java/io/BufferedInputStream.java (available): Use 'in' instead
of 'super' for underlying stream access.
(close): Ditto.
(read(byte[], int, int)): Ditto.
(refill): Ditto.
(skip): Call skip on underlying stream when possible.
From-SVN: r96516
2005-03-15 16:46:51 +00:00
Andreas Tobler
2fdedf0462
dtoa.c (_dtoa_r): Initialize variables ilim, ilim1 and spec_case.
...
2005-03-05 Andreas Tobler <a.tobler@schweiz.ch>
* java/lang/dtoa.c (_dtoa_r): Initialize variables ilim, ilim1 and
spec_case. Initialize pointer mlo.
* java/lang/strtod.c (_strtod_r): Initialize pointers bb, bd, ds and
delta.
* java/lang/e_asin.c (__ieee754_asin): Initialize variable t.
* java/lang/e_exp.c (__ieee754_exp): Initialize variables hi, lo
and k.
* java/lang/e_rem_pio2.c (__ieee754_rem_pio2): Initialize
uninitialized variable z.
* gnu/java/net/natPlainDatagramSocketImplPosix.cc (mcastGrp): Ifdef
possible unused variables.
* gnu/java/nio/natPipeImplPosix.cc (init): Remove self.
* jawt.c: Include <stdlib.h> to fix implict declaration of malloc.
From-SVN: r95925
2005-03-05 08:47:58 +01:00
Michael Koch
4aec6c476f
ActiveModeDTP.java, [...]: New files.
...
2005-02-19 Michael Koch <konqueror@gmx.de>
* gnu/java/net/protocol/ftp/ActiveModeDTP.java,
gnu/java/net/protocol/ftp/BlockInputStream.java,
gnu/java/net/protocol/ftp/BlockOutputStream.java,
gnu/java/net/protocol/ftp/CompressedInputStream.java,
gnu/java/net/protocol/ftp/CompressedOutputStream.java,
gnu/java/net/protocol/ftp/DTPInputStream.java,
gnu/java/net/protocol/ftp/DTP.java,
gnu/java/net/protocol/ftp/DTPOutputStream.java,
gnu/java/net/protocol/ftp/FTPConnection.java,
gnu/java/net/protocol/ftp/FTPException.java,
gnu/java/net/protocol/ftp/FTPResponse.java,
gnu/java/net/protocol/ftp/FTPURLConnection.java,
gnu/java/net/protocol/ftp/Handler.java,
gnu/java/net/protocol/ftp/PassiveModeDTP.java,
gnu/java/net/protocol/ftp/StreamInputStream.java,
gnu/java/net/protocol/ftp/StreamOutputStream.java,
gnu/java/net/CRLFInputStream.java,
gnu/java/net/CRLFOutputStream.java,
gnu/java/net/GetLocalHostAction.java,
gnu/java/net/protocol/ftp/package.html: New files.
* Makefile.am: Added new files.
* Makefile.in: Regenerated.
From-SVN: r95272
2005-02-19 08:53:53 +00:00
Michael Koch
51615fd6cd
2005-02-17 Michael Koch <konqueror@gmx.de>
...
* gnu/java/net/PlainSocketImpl.java
(shutdownInput): Added javadoc.
(shutdownOutput): Likewise.
From-SVN: r95180
2005-02-17 18:59:55 +00:00
Andrew John Hughes
c38e914edb
Cookie.java, [...]: Reworked import statements, fixed modifier order and some little formatting issues.
...
2005-02-17 Andrew John Hughes <gnu_andrew@member.fsf.org>
Michael Koch <konqueror@gmx.de>
* gnu/java/net/protocol/http/Cookie.java,
gnu/java/net/protocol/http/HTTPConnection.java,
gnu/java/net/protocol/http/HTTPDateFormat.java,
gnu/java/net/protocol/http/Request.java,
gnu/java/nio/PipeImpl.java,
gnu/java/rmi/dgc/DGCImpl.java,
gnu/java/rmi/server/ConnectionRunnerPool.java,
gnu/java/rmi/server/UnicastConnectionManager.java,
gnu/java/security/der/DERWriter.java,
gnu/java/security/pkcs/SignerInfo.java,
gnu/java/security/provider/EncodedKeyFactory.java,
gnu/java/security/provider/GnuDHPublicKey.java,
gnu/java/security/provider/GnuDSAPrivateKey.java,
gnu/java/security/provider/GnuDSAPublicKey.java,
gnu/java/security/provider/PKIXCertPathValidatorImpl.java,
gnu/java/security/x509/X500DistinguishedName.java,
gnu/java/security/x509/X509CRL.java,
gnu/java/security/x509/X509CRLEntry.java,
gnu/java/security/x509/X509Certificate.java,
gnu/java/security/x509/ext/AuthorityKeyIdentifier.java,
gnu/java/security/x509/ext/CertificatePolicies.java,
gnu/java/security/x509/ext/PolicyConstraint.java,
gnu/xml/dom/Consumer.java,
gnu/xml/dom/DomCharacterData.java,
gnu/xml/dom/DomDocument.java,
gnu/xml/dom/DomDocumentBuilder.java,
gnu/xml/dom/DomIterator.java,
gnu/xml/dom/DomNode.java,
gnu/xml/dom/DomXPathExpression.java,
gnu/xml/dom/DomXPathResult.java,
gnu/xml/dom/JAXPFactory.java,
gnu/xml/pipeline/CallFilter.java,
gnu/xml/pipeline/DomConsumer.java,
gnu/xml/pipeline/LinkFilter.java,
gnu/xml/pipeline/NSFilter.java,
gnu/xml/pipeline/TeeConsumer.java,
gnu/xml/pipeline/ValidationConsumer.java,
gnu/xml/pipeline/WellFormednessFilter.java,
gnu/xml/pipeline/XIncludeFilter.java,
gnu/xml/pipeline/XsltFilter.java,
gnu/xml/transform/ApplyImportsNode.java,
gnu/xml/transform/Bindings.java,
gnu/xml/transform/DocumentFunction.java,
gnu/xml/transform/FormatNumberFunction.java,
gnu/xml/transform/NodeNumberNode.java,
gnu/xml/transform/NumberNode.java,
gnu/xml/transform/Stylesheet.java,
gnu/xml/transform/SystemPropertyFunction.java,
gnu/xml/transform/Template.java,
gnu/xml/transform/TemplatesImpl.java,
gnu/xml/transform/TransformerImpl.java,
gnu/xml/transform/ValueOfNode.java,
gnu/xml/transform/XSLURIResolver.java,
gnu/xml/util/DoParse.java,
gnu/xml/util/Resolver.java,
gnu/xml/xpath/Expr.java,
gnu/xml/xpath/FunctionCall.java,
gnu/xml/xpath/RelationalExpr.java,
gnu/xml/xpath/Selector.java,
gnu/xml/xpath/XPathParser.java:
Reworked import statements, fixed modifier order and some little
formatting issues.
Co-Authored-By: Michael Koch <konqueror@gmx.de>
From-SVN: r95177
2005-02-17 18:26:34 +00:00
Tom Tromey
cbe24267f9
Connection.java (getJarFile): Open jar file with OPEN_DELETE.
...
* gnu/java/net/protocol/jar/Connection.java (getJarFile): Open
jar file with OPEN_DELETE.
* java/util/zip/ZipFile.java (ZipFile): Call deleteOnExit when
OPEN_DELETE is used.
From-SVN: r94793
2005-02-10 02:43:45 +00:00
Anthony Green
61d2e0eb07
natPlainDatagramSocketImplPosix.cc (getOption): Support IP_MULTICAST_LOOP.
...
2005-01-31 Anthony Green <green@redhat.com>
* gnu/java/net/natPlainDatagramSocketImplPosix.cc (getOption):
Support IP_MULTICAST_LOOP.
(setOption): Support IP_MULTICAST_LOOP.
* gnu/java/net/natPlainSocketImplPosix.cc (setOption): Add
SO_REUSEADDR support.
(getOption): Support SO_REUSEADDR.
From-SVN: r94555
2005-02-01 19:22:47 +00:00
Michael Koch
30e8a59c74
PR libgcj/14012, PR libgcj/14013, PR libgcj/15157, PR libgcj/15509
...
2005-01-11 Michael Koch <konqueror@gmx.de>
PR libgcj/14012, PR libgcj/14013, PR libgcj/15157, PR libgcj/15509
* gnu/java/net/BASE64.java,
gnu/java/net/EmptyX509TrustManager.java,
gnu/java/net/LineInputStream.java,
gnu/java/net/protocol/http/Authenticator.java,
gnu/java/net/protocol/http/ByteArrayRequestBodyWriter.java,
gnu/java/net/protocol/http/ByteArrayResponseBodyReader.java,
gnu/java/net/protocol/http/ChunkedInputStream.java,
gnu/java/net/protocol/http/Cookie.java,
gnu/java/net/protocol/http/CookieManager.java,
gnu/java/net/protocol/http/Credentials.java,
gnu/java/net/protocol/http/HTTPConnection.java,
gnu/java/net/protocol/http/HTTPDateFormat.java,
gnu/java/net/protocol/http/HTTPURLConnection.java,
gnu/java/net/protocol/http/Headers.java,
gnu/java/net/protocol/http/Request.java,
gnu/java/net/protocol/http/RequestBodyWriter.java,
gnu/java/net/protocol/http/Response.java,
gnu/java/net/protocol/http/ResponseBodyReader.java,
gnu/java/net/protocol/http/ResponseHeaderHandler.java,
gnu/java/net/protocol/http/SimpleCookieManager.java,
gnu/java/net/protocol/http/event/ConnectionEvent.java,
gnu/java/net/protocol/http/event/ConnectionListener.java,
gnu/java/net/protocol/http/event/RequestEvent.java,
gnu/java/net/protocol/http/event/RequestListener.java: New files.
* gnu/java/net/protocol/http/Connection.java: Removed.
* gnu/java/net/protocol/http/Handler.java,
javax/net/ssl/HttpsURLConnection.java: Updated.
* Makefile.am: Added new files and remove old ones.
* Makefile.in: Regenerated.
From-SVN: r93195
2005-01-11 20:19:56 +00:00
Michael Koch
8db8c940f1
2004-10-26 Michael Koch <konqueror@gmx.de>
...
* gnu/java/net/protocol/http/Connection.java
(getOutputStream): Implicitely switch to POST method.
From-SVN: r89581
2004-10-26 11:48:42 +00:00
Tom Tromey
aced40e999
Connection.java (sendRequest): Fix typo.
...
* gnu/java/net/protocol/http/Connection.java (sendRequest): Fix
typo.
From-SVN: r89477
2004-10-22 21:15:38 +00:00
Michael Koch
7758f90a45
re PR libgcj/14009 (libgcj HttpURLConnection does not handle situation where retrieving url without trailing slash after domain.)
...
2004-10-22 Michael Koch <konqueror@gmx.de>
PR libjava/14009
* gnu/java/net/protocol/http/Connection.java
(sendRequest): Handle case when url.getFile() returns an empty string.
From-SVN: r89476
2004-10-22 20:23:21 +00:00
Ulrich Weigand
969def5539
* gnu/java/net/natPlainSocketImplPosix.cc
...
(gnu::java::net::PlainSocketImpl::available): Call FIONREAD ioctl
with 'int *' argument instead of 'long *'.
From-SVN: r89450
2004-10-22 15:27:04 +00:00
Michael Koch
2c661756f4
[multiple changes]
...
2004-10-18 Michael Koch <konqueror@gmx.de>
* gnu/java/net/protocol/http/Connection.java,
java/nio/MappedByteBufferImpl.java,
java/text/RuleBasedCollator.java,
java/util/ResourceBundle.java:
Reworked import statements.
2004-10-18 Jeroen Frijters <jeroen@frijters.net>
* java/security/IdentityScope.java
(systemScope): Removed useless initializer.
* java/security/Policy.java
(currentPolicy): Likewise.
From-SVN: r89210
2004-10-18 12:22:51 +00:00
Michael Koch
73aab3dec3
PlainDatagramSocketImpl.java: Reworked import statements.
...
2004-10-18 Michael Koch <konqueror@gmx.de>
* gnu/java/net/PlainDatagramSocketImpl.java:
Reworked import statements.
* gnu/java/security/provider/DSAParameters.java:
Fixed copyrigth years.
* java/net/JarURLConnection.java:
Fixed HTML in @author tags.
From-SVN: r89205
2004-10-18 10:14:24 +00:00
Michael Koch
c36992ffc8
2004-09-15 Michael Koch <konqueror@gmx.de>
...
* gnu/java/net/protocol/file/Handler.java
(openConnection): Don't throw exception if host part for file: URI is
present. setURL() keeps file: protocol if ftp: protocol is not
available.
From-SVN: r87546
2004-09-15 12:38:46 +00:00
Michael Koch
cad79bac6c
[multiple changes]
...
2004-09-10 Dalibor Topic <robilad@kaffe.org>
* gnu/java/net/protocol/file/Connection.java (permission): New field.
(DEFAULT_PERMISSION): New constant.
(Connection): Create a FilePermission with permission to read file.
2004-09-10 Michael Koch <konqueror@gmx.de>
* gnu/java/net/protocol/file/Connection.java
(getLastModified): Moved around.
(getPermission): Return stored permission.
From-SVN: r87291
2004-09-10 11:06:38 +00:00
Michael Koch
5123971af8
2004-09-10 Michael Koch <konqueror@gmx.de>
...
* gnu/java/net/protocol/file/Connection.java
(lineSeparator): Made non-final.
(static): Removed.
(connect): Initialize lineSeparator lazily. Use ByteArrayInputStream
instead of StringBufferInputStream.
2004-09-10 Michael Koch <konqueror@gmx.de>
* gnu/java/net/protocol/file/Connection.java
(connect): Handle file is a directory case.
From-SVN: r87279
2004-09-10 07:20:09 +00:00
Bryce McKinlay
64d696b6da
GetPropertyAction.java (setParameters): Renamed from 'setName'.
...
2004-07-28 Bryce McKinlay <mckinlay@redhat.com>
* gnu/java/security/action/GetPropertyAction.java (setParameters):
Renamed from 'setName'. New 2-argument form with default value.
(run): Pass default 'value' parameter to System.getProperty().
* gnu/java/security/action/SetAccessibleAction.java: Fix javadoc
typos.
* gnu/java/net/protocol/http/Connection.java: Use 'setParameters'
not 'setName'.
From-SVN: r85274
2004-07-28 23:28:09 +01:00
Bryce McKinlay
ec5c28ece1
Connection.java: Use GetPropertyAction for privileged getProperty calls.
...
2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
* gnu/java/net/protocol/http/Connection.java: Use GetPropertyAction
for privileged getProperty calls.
* java/io/ObjectOutputStream.java (getField): No longer static. Use
SetAccessibleAction instead of anonymous class for doPrivileged
call.
(getMethod): Likewise.
(setAccessible): New field. PrivilegedAction object to use when
calling setAccessible.
* java/io/ObjectStreamClass.java (calculateOffsets): Use
SetAccessibleAction instead of anonymous class for diPrivileged
call.
(setFields): Likewise.
(getClassUID): Likewise.
(findMethod): Likewise.
* gnu/java/security/action/GetPropertyAction.java: New class.
* gnu/java/security/action/SetAccessibleAction.java: New class.
From-SVN: r85097
2004-07-23 23:20:14 +01:00
Mark Wielaard
694e657a06
DefaultContentHandlerFactory.java: Check in real file missed in last commit.
...
2004-07-23 Mark Wielaard <mark@klomp.org>
* gnu/java/net/DefaultContentHandlerFactory.java: Check in real file
missed in last commit.
From-SVN: r85080
2004-07-23 15:25:41 +01:00
Mark Wielaard
392abf6bf9
System.java (static): Set http.agent system property when not yet set.
...
* java/lang/System.java (static): Set http.agent system property when
not yet set.
* gnu/java/net/protocol/http/Connection.java (static): Get httpAgent
from system property inside AccessController.doPrivileged() call.
(proxyPort): Made package private.
(proxyInUse): Likewise.
(proxyHost): Likewise.
(userAgent): Likewise.
From-SVN: r85078
2004-07-23 11:49:59 +00:00
Mark Wielaard
6d97cb60ec
DefaultContentHandlerFactory.java: New dummy implementation.
...
* gnu/java/net/DefaultContentHandlerFactory.java: New dummy
implementation.
From-SVN: r85077
2004-07-23 10:24:02 +00:00
Bryce McKinlay
f1f90ae0de
Makefile.am (ordinary_java_source_files): Add DefaultContentHandlerFactory.java.
...
2004-07-22 Bryce McKinlay <mckinlay@redhat.com>
* Makefile.am (ordinary_java_source_files): Add
DefaultContentHandlerFactory.java.
* Makefile.in: Rebuilt.
* java/net/URLConnection.java (defaultFactory): New field.
(getContent):
(getContentHandler): Renamed from 'setContentHandler'. Try
defaultFactory after user-set factory, if any. Search for content
handler implementations in gnu.java.net.content, not
gnu.gcj.content.
* gnu/java/net/protocol/file/Connection.java (getHeaderField):
Implemented.
(getLastModified): Implemented.
(getPermission): Create file permission here, instead of in
constructor.
* gnu/java/net/protocol/gcjlib/Connection.java (getHeaderField):
Implemented.
* gnu/java/net/protocol/jar/Connection.java (getHeaderField):
Implemented.
(getLastModified): Implemented.
* gnu/java/awt/ClasspathToolkit.java (createImageProducer): New.
Default implementation.
* gnu/java/awt/peer/gtk/GtkToolkit.java (createImageProducer): New.
Implement using GdkPixbufDecoder.
From-SVN: r85069
2004-07-23 02:21:40 +01:00
Mark Wielaard
ce6230c406
Connection.java (userAgent): New static final field.
...
* gnu/java/net/protocol/http/Connection.java (userAgent): New static
final field.
(sendRequest): Use new field in user-agent http agent.
From-SVN: r83741
2004-06-27 19:36:01 +00:00
Michael Koch
8f0b9daaa2
2004-05-11 Michael Koch <konqueror@gmx.de>
...
* gnu/java/net/natPlainSocketImplPosix.cc
(read): Fixed typo in expression.
From-SVN: r81714
2004-05-11 19:48:45 +00:00
Michael Koch
6e90ed190e
2004-04-21 Michael Koch <konqueror@gmx.de>
...
* gnu/java/net/natPlainSocketImplPosix.cc
(SocketInputStream::read): Make sure returned data is a byte value.
From-SVN: r80959
2004-04-21 12:48:02 +00:00
Michael Koch
3e368284ac
2004-03-17 Michael Koch <konqueror@gmx.de>
...
* gnu/java/net/PlainDatagramSocketImpl.java
(RECEIVE_LOCK): New member field.
(SEND_LOCK): New member field.
(send0): New method.
(send): Synchronize on SEND_LOCK.
(receive0): New method.
(receive): Synchronize on RECEIVE_LOCK.
* gnu/java/net/natPlainDatagramSocketImplNoNet.cc,
gnu/java/net/natPlainDatagramSocketImplPosix.cc,
gnu/java/net/natPlainDatagramSocketImplWin32.cc
(send0): Renamed from send.
(receive0): Renamed from receive.
From-SVN: r79579
2004-03-17 08:10:28 +00:00
Michael Koch
aa18fb30ad
2004-03-17 Michael Koch <konqueror@gmx.de>
...
* gnu/java/net/natPlainSocketImplPosix.cc
(write): Just call write(jbyteArray, offset, len).
(read): Just call read(jbyteArray, offset, len).
From-SVN: r79578
2004-03-17 08:09:32 +00:00
Michael Koch
950d83e765
2004-03-11 Michael Koch <konqueror@gmx.de>
...
* gnu/java/net/protocol/jar/Connection.java
(getContentLength): New method.
From-SVN: r79332
2004-03-11 17:06:11 +00:00
Michael Koch
fb36b57afc
PlainSocketImpl.java: Reformated to merge better with classpath's version.
...
2004-03-11 Michael Koch <konqueror@gmx.de>
* gnu/java/net/PlainSocketImpl.java:
Reformated to merge better with classpath's version.
From-SVN: r79331
2004-03-11 16:56:30 +00:00
Michael Koch
9a282e8e59
PlainDatagramSocketImpl.java: Reformated to match classpath's version more.
...
2004-03-11 Michael Koch <konqueror@gmx.de>
* gnu/java/net/PlainDatagramSocketImpl.java:
Reformated to match classpath's version more.
From-SVN: r79314
2004-03-11 08:47:52 +00:00
Michael Koch
821b56cbd6
Handler.java (): Removed unneeded check for file != null.
...
2004-02-20 Michael Koch <konqueror@gmx.de>
* gnu/java/net/protocol/jar/Handler.java
(): Removed unneeded check for file != null. java.net.URL.getFile()
returns an empty string but never null.
From-SVN: r78176
2004-02-20 17:19:03 +00:00
Mohan Embar
7dcc98e25c
* gnu/java/net/PlainSocketImpl.java
...
(inChannelOperation): New field.
(isInChannelOperation): New accessor.
(setInChannelOperation): New modifier.
* gnu/java/nio/ServerSocketChannelImpl.java
(accept): Set and reset our server socket's PlainSocketImpl's
"in channel operation" indicator before and after delegating
the accept to our server socket.
* gnu/java/nio/SocketChannelImpl.java
(connect): Set and reset our socket's PlainSocketImpl's "in channel
operation" indicator before and after delegating the operation to
our socket.
(read): Likewise.
(write): Likewise.
* java/net/ServerSocket.java (implAccept): Don't throw an
IllegalBlockingModeException if we have a non-blocking
channel which initiated this accept operation.
* java/net/Socket.java (connect): Don't throw an
IllegalBlockingModeException if we have a non-blocking
channel which initiated this connect operation.
* java/nio/channels/spi/AbstractSelectableChannel.java
(configureBlocking): Only call implConfigureBlocking() if
the desired blocking mode is different from our current one.
From-SVN: r76956
2004-01-30 13:43:21 +00:00
Michael Koch
128d836433
2004-01-27 Michael Koch <konqueror@gmx.de>
...
* gnu/java/net/protocol/http/Connection.java
(getOutputStream): Fixed typo.
From-SVN: r76748
2004-01-27 21:05:29 +00:00
Michael Koch
8cd2bdca39
2004-01-24 Michael Koch <konqueror@gmx.de>
...
* gnu/java/net/protocol/jar/Connection.java
(hdrHash): Removed.
(hdrVec): Removed.
(gotHeaders): Removed.
(getHeaderField): Removed.
(getHeaderFields): Removed.
(getHeaderFieldKey): Removed.
(getKey): Removed.
(getField): Removed.
(getHeaders): Removed.
From-SVN: r76523
2004-01-24 20:56:47 +00:00
Michael Koch
5d7b2198ba
2004-01-23 Michael Koch <konqueror@gmx.de>
...
* gnu/java/net/protocol/http/Connection.java
(connect): Don't initialize bufferedOutputStream if not needed.
(sendRequest): Set property for content length if content is present.
Write content only if present.
(getOutputStream): Check if already connected, dont connect,
initalize bufferedOutputStream if needed.
From-SVN: r76412
2004-01-23 12:32:23 +00:00
Michael Koch
a023ec34d1
Connection.java: Reformated copyright.
...
2004-01-06 Michael Koch <konqueror@gmx.de>
* gnu/java/net/protocol/file/Connection.java:
Reformated copyright.
(hdrHash): Removed.
(hdrVec): Removed.
(gotHeaders): Removed.
(getHeaderField): Removed.
(getHeaderField): Removed.
(getHeaderFieldKey): Removed.
(getKey): Removed.
(getField): Removed.
(getHeaders): Removed.
From-SVN: r75473
2004-01-06 15:00:11 +00:00
Michael Koch
24ce9c2d97
2003-12-31 Michael Koch <konqueror@gmx.de>
...
* gnu/java/net/protocol/http/Connection.java
(sendRequest): Dont encode output in default character encoding,
add correct version number to HTTP user agent string.
From-SVN: r75266
2003-12-31 11:27:09 +00:00
Michael Koch
f04f5b1fad
2003-12-30 Michael Koch <konqueror@gmx.de>
...
* gnu/java/net/protocol/http/Connection.java
(outputStream): New field.
(bufferedOutputStream): New field.
(connect): Initialize outputStream and bufferedOutputStream.
(sendRequest): Create PrintWriter object from outputStream,
support HTTP 1.1, send missing HTTP headers and buffered output data
for POST method.
(getOutputStream): Set request method to POST if output stream is
used, return bufferedOutputStream.
(setRequestMethod): Allow HEAD and POST methods.
This fixes libgcj PR/6302 and libgcj PR/7752.
From-SVN: r75233
2003-12-30 13:43:24 +00:00
Michael Koch
b976c2fc29
2003-12-30 Michael Koch <konqueror@gmx.de>
...
* gnu/java/net/protocol/http/Connection.java
(requestProperties): New field.
(addRequestProperty): New method.
(getRequestProperty): New method.
(setRequestProperty): New method.
(getRequestProperties): New method.
From-SVN: r75228
2003-12-30 12:02:47 +00:00
Michael Koch
9f88b919e0
2003-12-28 Michael Koch <konqueror@gmx.de>
...
* gnu/java/net/protocol/http/Connection.java
(inputStream): Made it a DataInputStream.
(requestProperties): Removed.
(hdrHash): Removed.
(hdrVec): Removed.
(headers): New field to store headers.
(connect): Initialize inputStream.
(receiveReply): Merged from classpath. The new algorithm is line based
instead of character based.
(getHeaderField): Use headers.
(getHeaderFields): Use headers.
(getKey): Removed.
(getField): Removed.
* gnu/java/net/HeaderFieldHelper.java: New file.
* Makefile.am (ordinary_java_source_files):
Added gnu/java/net/HeaderFieldHelper.java.
* Makefile.in: Regenerated.
From-SVN: r75183
2003-12-28 21:30:45 +00:00
Michael Koch
bb6d84f38e
2003-12-27 Michael Koch <konqueror@gmx.de>
...
* gnu/java/net/protocol/http/Connection.java
(getRequestProperty): Removed.
(setRequestProperty): Removed.
From-SVN: r75175
2003-12-27 20:49:12 +00:00
Michael Koch
82ebe78b9e
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
state.
From-SVN: r75172
2003-12-27 17:24:51 +00:00
Michael Koch
59bed4cab5
2003-12-21 Michael Koch <konqueror@gmx.de>
...
* gnu/java/net/PlainDatagramSocketImpl.java
(mcastGrp): Added documentation.
From-SVN: r74896
2003-12-20 23:04:44 +00:00
Michael Koch
4e24f93733
2003-12-20 Michael Koch <konqueror@gmx.de>
...
* gnu/java/net/protocol/jar/Connection.java
(connectionCache): New field.
(connect): New method.
(getInputStream): New method.
(hdrHash): New field.
(hdrVec): New field.
(gotHeaders): New field.
(getHeaderField): New method.
(getHeaderFields): New method.
(getHeaderFieldKey): New method.
(getKey): New method.
(getField): New method.
(getHeaders): New method.
* java/net/JarURLConnection.java
(connectionCache): Removed.
(connect): Removed.
(getInputStream): Removed.
(hdrHash): Removed.
(hdrVec): Removed.
(gotHeaders): Removed.
(getHeaderField): Removed.
(getHeaderFields): Removed.
(getHeaderFieldKey): Removed.
(getKey): Removed.
(getField): Removed.
(getHeaders): Removed.
From-SVN: r74895
2003-12-20 22:54:26 +00:00
Guilhem Lavaux
32ab41edd2
URLParseError.java: New file.
...
2003-12-20 Guilhem Lavaux <guilhem@kaffe.org>
* gnu/java/net/URLParseError.java: New file.
* gnu/java/net/protocol/jar/Handler.java
(parseURL): Throw URLParseError if needed, fix '/' handling.
* java/net/URL.java (URL): Catch URLParseError and
transform it into a MalformedURLException.
From-SVN: r74877
2003-12-20 12:28:25 +00:00