| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
| |
(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.
|
| |
|
|
|
|
| |
* gnu/java/net/protocol/http/HTTPURLConnection.java (imports) Cleaned
up.
(getRequestProperties): Rewrote.
|
| |
|
|
|
|
| |
(imports): Cleaned up.
(GetHTTPPropertiesAction): Removed, and moved contents to ...
(constructor): ... Here, using SystemProperties instead of System.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
|
| |
Read response body for redirect.
|
| |
|
|
|
| |
* gnu/java/net/protocol/http/HTTPURLConnection.java: Don't follow
redirects on 304.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
|
|
|
| |
* gnu/java/net/protocol/http/HTTPConnection.java,
gnu/java/net/protocol/http/HTTPURLConnection.java:
Fix bug with multiple threads and persistent connections.
|
| | |
|
| |
|
|
|
| |
* gnu/java/net/protocol/http/HTTPURLConnection.java
(getHeaderFieldKey): Check index.
|
| |
|
|
|
|
| |
* gnu/java/net/protocol/http/HTTPURLConnection.java:
(connect()): Reverted the removal of the exception
with 404s.
|
| |
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
|
|
| |
* java/net/protocol/http/HTTPURLConnection.java (connect): Accept
absolute and relative paths in Location header.
|
| |
|
|
|
| |
* gnu/java/net/protocol/http/HTTPURLConnection.java: Throw
FileNotFoundException and implement getErrorStream on 404.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
|
|
|
| |
* gnu/java/net/protocol/http/HTTPURLConnection.java: Added support
for http.agent, http.keepAlive, and http.maxConnections system
properties (and LRU connection pool).
|
| |
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
|
|
|
| |
* gnu/java/net/protocol/http/HTTPConnection.java,
gnu/java/net/protocol/http/HTTPURLConnection.java:
HTTPURLConnection now derives from HttpsURLConnection.
|
| | |
|
|
|
* 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.
|