Changes from Version 0.1

Here is a (not necessarily complete) list of changes and new features since Version 0.1:

Upgrading from Version 0.1

To ease the transition from Version 0.1 you can run the following sed script over your files. It is doubtful that it will do all the work, but it should help. I've probably missed some stuff, so let me know what you had to do that could've been done by the script so I can update it. Furthermore, if anybody wants to write a Windoze equivalent I'll put it up here. You can also download it directly.

#!/bin/sh
#
# Tries to upgrade methods from V0.1 to V0.2
#
# Those methods that have changed their signature are marked with the
# comment /* NEEDS WORK */
#
# Usage: upgrade < OldCode.java > NewCode.java
#

sed -e '
    s/\.statusCode/\.getStatusCode()/g
    s/\.ReasonLine/\.getReasonLine()/g
    s/\.Version/\.getVersion()/g
    s/\.Server/\.getServer()/g
    s/\.EffectiveURL/\.getEffectiveURL()/g
    s/\.ContentType/\.getHeader("Content-type")/g
    s/\.ContentLength/\.getHeader("Content-length")/g
    s/\.ContentEncoding/\.getHeader("Content-encoding")/g
    s/\.ContentTransferEncoding/\.getHeader("Content-transfer-encoding")/g
    s/\.Date/\.getHeaderAsDate("Date")/g
    s/\.Expires/\.getHeaderAsDate("Expires")/g
    s/\.LastModified/\.getHeaderAsDate("Last-modified")/g
    s/\.Allowed/\.getHeader("Allowed")/g
    s/\.Public/\.getHeader("Public")/g
    s/\.WWWAuthenticate/\.getHeader("WWW-Authenticate")/g
    s/\.unparsed_headers/\.listHeaders() \/* NEEDS WORK *\/ /g
    s/\.Data/\.getData()/g
    s/HTTPConnection\.base64Encode/Codecs\.base64Encode/g
    s/HTTPConnection\.base64Decode/Codecs\.base64Decode/g
    s/HTTPConnection\.quotedPrintableEncode/Codecs\.quotedPrintableEncode/g
    s/HTTPConnection\.quotedPrintableDecode/Codecs\.quotedPrintableDecode/g
    s/AuthorizationStruct/AuthorizationInfo/g
    s/HTTPConnection\.setAuthHandler/AuthorizationInfo\.setAuthHandler \/* NEEDS WORK *\/ /g
'
# the end

[HTTPClient]


Ronald Tschalär / 23 March 1997 / ronald@innovation.ch.