summaryrefslogtreecommitdiff
path: root/gnu/java/net/protocol/http/HTTPURLConnection.java
Commit message (Collapse)AuthorAgeFilesLines
* * gnu/java/net/protocol/http/HTTPURLConnection.javaDavid Daney2006-03-031-68/+9
| | | | | | | | | | | | | (getRequestProperties): Rewrote. (addRequestProperty): Rewrote. (getHeaderFields): Rewrote. (getHeaderField): Rewrote. (getHeaderFieldKey): Rewrote. (getHeaderField): Removed useless cast. * gnu/java/net/protocol/http/Headers.java: Entire class rewritten. * gnu/java/net/protocol/http/Request.java (dispatch): Use new Headers interface. (notifyHeaderHandlers): Use new Headers interface.
* PR classpath/25851David Daney2006-02-271-1/+17
| | | | | | * gnu/java/net/protocol/http/HTTPURLConnection.java (imports) Cleaned up. (getRequestProperties): Rewrote.
* * gnu/java/net/protocol/http/HTTPURLConnection.javaDavid Daney2006-02-271-31/+19
| | | | | | (imports): Cleaned up. (GetHTTPPropertiesAction): Removed, and moved contents to ... (constructor): ... Here, using SystemProperties instead of System.
* PR classpath/26082David Daney2006-02-241-20/+1
| | | | | | | | | | | | | | * gnu/java/net/protocol/http/HTTPConnection.java (pool): Changed to type Pool. (Pool): New inner class. (timeLastUsed): New field. (setPool): Changed parameter type to Pool. (release): Moved pool management logic to new class Pool. * gnu/java/net/protocol/http/HTTPURLConnection.java (connectionPool): Removed. (maxConnections) : Removed. (GetHTTPPropertiesAction.run): Don't initialize maxConnections. (getConnection): Moved pool management logic to HTTPConnection.Pool.
* 2006-02-09 Wolfgang Baer <WBaer@gmx.de>Wolfgang Baer2006-02-091-13/+15
| | | | | | | | | | * gnu/java/net/protocol/http/HTTPURLConnection.java: (isRedirect): Removed, moved to Response.java. (connect): If error condition redirect responseSink to errorSink. (getInputStream): If error condition throw IOException, for the error codes 404 and 410 throw a FileNotFoundException. * gnu/java/net/protocol/http/Response.java (isError): New method. (isRedirect): New method, moved from HTTPURLConnection.java.
* 2006-02-09 Wolfgang Baer <WBaer@gmx.de>Wolfgang Baer2006-02-091-0/+10
| | | | | | | | | | | * java/net/URLConnection.java: (setAllowUserInteraction): Throw IllegalStateException if connected. (getRequestProperty): Document return value if key is null. * gnu/java/net/protocol/http/HTTPURLConnection.java: (getRequestProperty): Return null if key is null. (getRequestProperties): Throw IllegalStateException if connected. (setRequestProperty): Call super method for exception tests. (addRequestProperty): Likewise.
* * gnu/java/net/protocol/http/HTTPURLConnection.java (connect):Tom Tromey2006-01-201-1/+17
| | | | Read response body for redirect.
* 2006-01-20 Chris Burdess <dog@gnu.org>Chris Burdess2006-01-201-1/+7
| | | | | * gnu/java/net/protocol/http/HTTPURLConnection.java: Don't follow redirects on 304.
* 2005-10-12 David Daney <ddaney@avtrex.com>David Daney2005-10-121-48/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR classpath/24086, PR classpath/24091, PR classpath/24104 * gnu/java/net/protocol/http/ByteArrayResponseBodyReader.java: Removed. * gnu/java/net/protocol/http/ResponseBodyReader.java: Removed. * gnu/java/net/protocol/http/event/ConnectionEvent.java: Removed. * gnu/java/net/protocol/http/event/ConnectionListener.java: Removed. * gnu/java/net/protocol/http/event/RequestEvent.java: Removed. * gnu/java/net/protocol/http/event/RequestListener.java: Removed. * gnu/java/net/protocol/http/event/package.html: Removed. * gnu/java/net/protocol/http/HTTPConnection.java: Cleaned up imports. (connectionListeners): Removed. (requestListeners): Removed. (pool): New field. (Constructor): Don't initialize connectionListeners or requestListeners. (useCount): New field. (getPoolKey): New method. (setPool): New method. (release): New method. (newRequest): Don't call fireRequestEvent. Use StringBuilder instead of StringBuffer. (close): Don't call fireConnectionEvent. (getURI):Use StringBuilder instead of StringBuffer. (addConnectionListener): Removed. (removeConnectionListener): Removed. (fireConnectionEvent): Removed. (addRequestListener): Removed. (removeRequestListener): Removed. (fireRequestEvent): Removed. * gnu/java/net/protocol/http/HTTPURLConnection.java:Cleaned up imports. (connectionPool): Changed type to LinkedHashMap. (maxConnections): Made static. (responseSink): Changed type to InputStream. (errorSink): Likewise. (connect): Eliminate reader. Get responseSink from response. (getConnection): Rewrote. (getHeaderFields): Use null as key for status line. Return unmodifiable Map. * gnu/java/net/protocol/http/Headers.java: Extend LinkedHashMap, instead of implement Map. (headers): Removed. (Constructor): Do not initialize headers. (size): Removed. (isEmpth): Removed. (containsKey): Rewrote. (containsValue): Removed. (get): Call super.get(). (getValue): Likewise. (getLongValue): New method. (put): Call super.put(). (remove): Call super.remove(). (putAll): Rewrote. (clear): Removed. (keySet): Call super.keySet(). (values): Removed. (entrySet): Call super.entrySet(). (equals): Removed. (hashCode): Removed. (parse): Use StringBuilder instead of StringBuffer. (addValue): Call super.* instead of headers.*. * gnu/java/net/protocol/http/LimitedLengthInputStream.java: New class. * gnu/java/net/protocol/http/Request.java: Cleaned up imports. (responseBodyReader): Removed. (setResponseBodyReader): Removed. (dispatch): Don't create LineInputStream. Don't call fireRequestEvent. Don't append CRLF to Request body. Handle unsolicited 100 Continue response. (readResponse): Rewrote. (readResponseBody): Renamed to ... (createResponseBodyStream): ... And rewritten. (parseAuthParams): Use StringBuilder instead of StringBuffer. (getNonceCount): Likewise. (handleSetCookie): Likewise. * gnu/java/net/protocol/http/Response.java: Cleaned up imports. (codeClass): Removed. (body): New field. (Constructor): Don't initialize codeClass. Initialize body. (getCodeClass): Rewrote. (getLongHeader): New method. (getBody): New method. * gnu/java/net/protocol/http/ChunkedInputStream.java (read): Use StringBuilder instead of StringBuffer. * gnu/java/net/protocol/http/Cookie.java (toString): Use StringBuilder instead of StringBuffer.
* 2005-07-14 Mark Wielaard <mark@klomp.org>Mark Wielaard2005-07-131-5/+6
| | | | | | | | | | | | | | | | | | | | * examples/gnu/classpath/examples/awt/Demo.java (TestWindow.parent): Make package private. * gnu/java/net/protocol/http/HTTPURLConnection.java (proxyHostname, proxyPort, agent, keepAlive, maxConnections): Likewise. * java/text/SimpleDateFormat.java (field, size): Likewise. * java/util/jar/JarFile.java (readSignatures): Likewise. * java/util/logging/FileHandler.java (written): Likewise. * javax/swing/plaf/basic/BasicFileChooserUI.java: Make shared fields package private. (closeDialog): Make package private. (filterEntries): Likewise. * javax/swing/plaf/basic/BasicPopupMenuUI.java (mouseInputListener): Likewise. * javax/swing/plaf/basic/BasicTreeUI.java (getNextVisibleNode, getPreviousVisibleNode, selectPath): Likewise. * javax/swing/text/JTextComponent.java (caret, editable): Likewise.
* 2005-07-06 Chris Burdess <dog@gnu.org>Chris Burdess2005-07-071-0/+2
| | | | | | * gnu/java/net/protocol/http/HTTPConnection.java, gnu/java/net/protocol/http/HTTPURLConnection.java: Fix bug with multiple threads and persistent connections.
* * all files: Update for new FSF address.Mark Wielaard2005-07-021-2/+2
|
* 2005-06-15 Goffredo Baroncelli <kreijack@inwind.it>Tom Tromey2005-06-151-1/+5
| | | | | * gnu/java/net/protocol/http/HTTPURLConnection.java (getHeaderFieldKey): Check index.
* 2005-05-26 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2005-05-261-1/+4
| | | | | | * gnu/java/net/protocol/http/HTTPURLConnection.java: (connect()): Reverted the removal of the exception with 404s.
* 2005-05-26 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2005-05-261-64/+64
| | | | | | | | | | * gnu/java/net/protocol/http/HTTPURLConnection.java: (connect()): Fixed a null pointer exception with 304 responses and an inappropriate exception with 404s. * gnu/java/net/protocol/http/Request.java: (readResponse(java.io.LineInputStream)): Fixed a fruitless attempt to read the non-existant body of a 304 response.
* 2005-04-27 Chris Burdess <dog@gnu.org>Mark Wielaard2005-04-271-1/+17
| | | | | * java/net/protocol/http/HTTPURLConnection.java (connect): Accept absolute and relative paths in Location header.
* 2005-04-26 Chris Burdess <dog@gnu.org>Chris Burdess2005-04-261-0/+12
| | | | | * gnu/java/net/protocol/http/HTTPURLConnection.java: Throw FileNotFoundException and implement getErrorStream on 404.
* 2005-03-02 Michael Koch <konqueror@gmx.de>Michael Koch2005-03-021-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gnu/java/awt/Buffers.java, gnu/java/awt/ComponentDataBlitOp.java, gnu/java/awt/EmbeddedWindowSupport.java, gnu/java/awt/image/ImageDecoder.java, gnu/java/awt/image/XBMDecoder.java, gnu/java/awt/peer/ClasspathFontPeer.java, gnu/java/beans/IntrospectionIncubator.java, gnu/java/io/EncodingManager.java, gnu/java/io/decode/DecoderUTF8.java, gnu/java/io/encode/EncoderEightBitLookup.java, gnu/java/io/encode/EncoderUTF8.java, gnu/java/lang/ClassHelper.java, gnu/java/lang/MainThread.java, gnu/java/lang/reflect/TypeSignature.java, gnu/java/locale/LocaleHelper.java, gnu/java/net/CRLFInputStream.java, gnu/java/net/EmptyX509TrustManager.java, gnu/java/net/HeaderFieldHelper.java, gnu/java/net/LineInputStream.java, gnu/java/net/PlainSocketImpl.java, gnu/java/net/URLParseError.java, gnu/java/net/protocol/file/Connection.java, gnu/java/net/protocol/file/Handler.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/net/protocol/jar/Connection.java, gnu/java/net/protocol/jar/Handler.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: Reorganized import statments and fixed some @author tags and html usage in javadocs.
* 2004-12-07 Chris Burdess <dog@gnu.org>Chris Burdess2004-12-081-5/+65
| | | | | | * gnu/java/net/protocol/http/HTTPURLConnection.java: Added support for http.agent, http.keepAlive, and http.maxConnections system properties (and LRU connection pool).
* 2004-12-06 Chris Burdess <dog@gnu.org>Chris Burdess2004-12-071-0/+4
| | | | | | | | | | * gnu/java/net/LineInputStream.java: (read) fixed possible infinite loop (inetlib bug #11200). 2004-12-06 Chris Burdess <dog@gnu.org> * gnu/java/net/protocol/http/HTTPURLConnection.java: (getHeaderField) return null if there are less than (index+1) fields.
* 2004-12-05 Chris Burdess <dog@gnu.org>Chris Burdess2004-12-061-4/+70
| | | | | | * gnu/java/net/protocol/http/HTTPConnection.java, gnu/java/net/protocol/http/HTTPURLConnection.java: HTTPURLConnection now derives from HttpsURLConnection.
* HTTPURLConnection now returns Lists as values in getHeaderFields().Chris Burdess2004-12-011-2/+10
|
* 2004-11-30 Michael Koch <konqueror@gmx.de>Michael Koch2004-11-301-0/+511
* gnu/java/net/BASE64.java, gnu/java/net/CRLFInputStream.java, gnu/java/net/CRLFOutputStream.java, gnu/java/net/EmptyX509TrustManager.java, gnu/java/net/GetLocalHostAction.java, gnu/java/net/GetSystemPropertyAction.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: gnu/java/net/protocol/http/TODO: Removed * gnu/java/net/protocol/http/Handler.java: Updated. Merged HTTP protocol implementation from GNU inetlib.