Skip to content

Releases: michaelgantman/Mgnt

1.5.1.1 HttpClient support for response headers and parsing methods for BigInteger and BigDecimal

24 Nov 19:50
Compare
Choose a tag to compare

This release includes support for HTTP response headers reading in HttpClient, which was sorely missing. There are 3 new methods. They are:

  1. getLastResponseHeaders() - This method returns full map of all response headers
  2. getLastResponseHeader(java.lang.String fieldName) - This method returns just one header content specified by header name
  3. getLastResponseHeaderNames() - This method returns the names of all response headers

See Javadoc for more details
Also in this release TextUtils class has 2 new parsing methods (4 if some convenience methods are to be counted) that can parse BigInteger and BigDecimal classes from String. The methods are:

  1. parseStringToBigDecimal(...) - this method parses String to BigDecimal
  2. parseStringToBigInteger(...) - this method parses String to BigInteger

Thank you to Alexei Astakhov for writing those methods and for joining in as a contributor to this library

1.5.1.0 HttpClient improvement

04 Jul 20:01
Compare
Choose a tag to compare

This is a minor release with no method signatures changes. The change is in the HttpClient class. Now if the Http request fails but the server returns some useful data, it will be read and returned as a result. The typical example is when an HTTP server responds with a 404, which will cause a FileNotFoundException to be thrown in connect, but the server sent an HTML help page with suggestions as to what to do.

1.5.0.9 HttpClient Exception handling improvement

10 Jun 19:37
Compare
Choose a tag to compare

This is a minor release with no method signatures changes. The change is in the HttpClient class. The change provides better error handling

1.5.0.8: HttpClient Improvement

02 Oct 19:36
Compare
Choose a tag to compare

In this release, HttpClient now has methods to set connect and read timeouts as well as getter methods for Http response code and response message from the last Http request.

1.5.0.7: Adding pool size to BackgroundTreadsRunner class and adding silent String to Number parsing methods to TextUtils

22 Jul 20:46
Compare
Choose a tag to compare

In this release class BackgroundTreadsRunner now has pool size property so it could be created with pre-defined pool size or as it used to be with default one if this property is not set. The default pool size is the number of tasks submitted to the pool. Also in TextUtils all String to Number parsing methods now have silent versions where they just parse the String to numeric value or if String is not valid they return default value, but nothing is printed into log.

1.5.0.6 HttpClient improvement

10 Jun 20:39
Compare
Choose a tag to compare

Adding ability to add any arbitrary request property for HttpRequest in HttpClient

Minor TimeInterval improvements

27 May 19:19
Compare
Choose a tag to compare

In this release TimeInterval now has toString() method and toNanos() method that was somehow forgotten in previous release

1.5.0.4

06 May 19:49
Compare
Choose a tag to compare

Some methods name change to make it standard and some new helper methods in HttpClient, plus some typos fixing in example code as well as fixing javadoc forrmatting issues. All in all a minor release

1.5.0.3

28 Jan 20:06
Compare
Choose a tag to compare

This release adds support for stacktrace filtering from a string source. I.e. Stacktrace now could be filtered just like in previous versions extracted from exception or (the new feature) stacktrace could be provided as a String. This allows the stacktrace filtering feature to be used for filtering stacktraces at runtime or from a text source such as log file. (Just to clarify: the filtering is done on a string that contains just a stacktrace and not the entire log)

Http client

11 Jun 21:32
Compare
Choose a tag to compare

This release adds HttpClient class that allows to send HTTP requests to a URL and provides methods that receive Textual or Binary response.