(PE-5623) Add forceRedirects option to Java client

Add a forceRedirects option to the Java client that allows it to
follow redirects on POST and PUT requests.