HarLib is an open source Java library for the HTTP Archive Specification (HAR) v1.2.
HarLib v1.1.2 is now available (see download link at the bottom of this page).
Read/write HAR files from Java
Database mapping of HAR objects into any databases through JDBC
Open Source - Apache v2 license
The API is very intuitive and maps all JSON objects to Java objects. HarLib relies on Jackson for the parsing. You can use the HarLib version that is already integrated with Jackson or add the Jackson jar to your classpath.
Here is an example on how to read/write HAR files with HarLib.
Here is another example using a Derby database for storing HAR data.
New support for corrupted HAR files that have missing elements or other violations to the specification in version 1.1. This stills allows you to read most of a file even if some parts are corrupted.
HarLib can be downloaded from the BenchLab project repository at https://sourceforge.net/projects/benchlab/files/HarLib/
You will find the following files (where xxx is the version number):
harlib-xxx.jar: Binary distribution with Javadoc not including the Jackson parser
harlib-src-xxx.jar: Source distribution (no test suite)
harlib-nodoc-xxx.jar: Binary distribution without Javadoc or Jackson parser
harlib-jackson-xxx.jar: Binary distribution with Javadoc AND Jackson parser (core)
harlib-all-xxx.zip: Complete zip of the project with Eclipse settings and test suite.