Releases: Widen/urlbuilder
Releases · Widen/urlbuilder
Content-Disposition fixes
Get path segments
Added
- Add ability to get all path segments in a URL via
getPathSegments()
. This is computationally cheaper and easier to use than splitting on/
fromgetPath()
if you need to inspect the path more closely.
Package change, new features
Breaking Changes
- All classes have been moved from the
com.widen.util
package to the more specificcom.widen.urlbuilder
package. - Java 8+ is now the minimum required Java version.
Added
- Accessing existing query parameters is now easier with the new
getQueryParameters()
method, which returns a map of parameter values for each parameter name. Parameters without an explicit value are represented by the empty string""
. - You can now easily convert a
UrlBuilder
to anURI
orURL
using the newtoURI()
andtoURL()
methods respectively.
Fixed
- Fixed an issue where "value-less" query parameters (e.g.
/foo/bar?valueless
) parsed from a string were not being preserved and were being lost when converting back into a string.
Gradle and publishing changes
This release only changes publishing and build configuration.
Changed
- Gradle has been upgraded to 5.x.
- Releases are now published publicly to Bintray.
Gradle and publishing changes
This release only changes publishing and build configuration.
Changed
- Gradle has been upgraded to 5.x.
- Releases are now published publicly to Bintray.
Added: Better UTF-8 attachment handling
Added
- There is now a
HttpUtils
public class with acreateContentDispositionHeader()
static method for generating proper UTF-8 encodedContent-Disposition
header values supporting both ASCII and UTF-8 for browsers implementing RFC 5987. This is used by the url builders themselves, but is also part of the public API and can be used independently. (#4)
Fixed
- Both
CloudFrontUrlBuilder
andS3UrlBuilder
support full UTF-8 attachment filenames by using the above method. (#4)
1.0.0
First stable release of UrlBuilder! Only one important change since the latest unstable version (0.10.6), but this release marks the library's stabilization.
Fixed
- Normalize and convert attachment filenames to ASCII for
S3UrlBuilder
andCloudfrontUrlBuilder
to fix issues with special characters (#2).