Skip to content

Commit

Permalink
Version 0.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
tryptichon committed Jul 26, 2022
1 parent 2b4d6c5 commit b62085d
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 30 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# v0.5.1

Library update. Use arago java-project 0.4.2.

# v0.5.0

Refactorings
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.5.0
0.5.1
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>co.arago.hiro.client</groupId>
<artifactId>hiro-client-java</artifactId>
<version>0.5.0</version>
<version>0.5.1</version>

<organization>
<name>arago GmbH</name>
Expand Down Expand Up @@ -51,7 +51,7 @@
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>

<arago-java-project-version>0.4.0</arago-java-project-version>
<arago-java-project-version>0.4.2</arago-java-project-version>
<plugin-gpg-version>3.0.1</plugin-gpg-version>
</properties>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ public HttpClientHandler.ProxySpec getProxy() {
* @param proxy Simple proxy with one address and port
* @return {@link #self()}
* @implNote Configuration option for an internal DefaultHttpClientHandler. Will be ignored if the
* {@link #httpClientHandler} is set directly via {@link #setHttpClientHandler(HttpClientHandler)}.
* {@link #httpClientHandler} is set directly via {@link #setHttpClientHandler(HttpClientHandler)}.
*/
@Override
public T setProxy(HttpClientHandler.ProxySpec proxy) {
Expand All @@ -200,7 +200,7 @@ public boolean isFollowRedirects() {
* @param followRedirects Enable Redirect.NORMAL. Default is true.
* @return {@link #self()}
* @implNote Configuration option for an internal DefaultHttpClientHandler. Will be ignored if the
* {@link #httpClientHandler} is set directly via {@link #setHttpClientHandler(HttpClientHandler)}.
* {@link #httpClientHandler} is set directly via {@link #setHttpClientHandler(HttpClientHandler)}.
*/
@Override
public T setFollowRedirects(boolean followRedirects) {
Expand All @@ -217,7 +217,7 @@ public Long getConnectTimeout() {
* @param connectTimeout Connect timeout in milliseconds.
* @return {@link #self()}
* @implNote Configuration option for an internal DefaultHttpClientHandler. Will be ignored if the
* {@link #httpClientHandler} is set directly via {@link #setHttpClientHandler(HttpClientHandler)}.
* {@link #httpClientHandler} is set directly via {@link #setHttpClientHandler(HttpClientHandler)}.
*/
@Override
public T setConnectTimeout(Long connectTimeout) {
Expand All @@ -236,7 +236,7 @@ public long getShutdownTimeout() {
* to shut down properly. Default is 3000ms.
* @return {@link #self()}
* @implNote Configuration option for an internal DefaultHttpClientHandler. Will be ignored if the
* {@link #httpClientHandler} is set directly via {@link #setHttpClientHandler(HttpClientHandler)}.
* {@link #httpClientHandler} is set directly via {@link #setHttpClientHandler(HttpClientHandler)}.
*/
@Override
public T setShutdownTimeout(long shutdownTimeout) {
Expand All @@ -256,7 +256,7 @@ public Boolean getAcceptAllCerts() {
* @param acceptAllCerts the toggle
* @return {@link #self()}
* @implNote Configuration option for an internal DefaultHttpClientHandler. Will be ignored if the
* {@link #httpClientHandler} is set directly via {@link #setHttpClientHandler(HttpClientHandler)}.
* {@link #httpClientHandler} is set directly via {@link #setHttpClientHandler(HttpClientHandler)}.
*/
@Override
public T setAcceptAllCerts(Boolean acceptAllCerts) {
Expand All @@ -273,7 +273,7 @@ public SSLContext getSslContext() {
* @param sslContext The specific SSLContext to use.
* @return {@link #self()}
* @implNote Configuration option for an internal DefaultHttpClientHandler. Will be ignored if the
* {@link #httpClientHandler} is set directly via {@link #setHttpClientHandler(HttpClientHandler)}.
* {@link #httpClientHandler} is set directly via {@link #setHttpClientHandler(HttpClientHandler)}.
* @see #setAcceptAllCerts(Boolean)
*/
@Override
Expand All @@ -291,7 +291,7 @@ public SSLParameters getSslParameters() {
* @param sslParameters The specific SSLParameters to use.
* @return {@link #self()}
* @implNote Configuration option for an internal DefaultHttpClientHandler. Will be ignored if the
* {@link #httpClientHandler} is set directly via {@link #setHttpClientHandler(HttpClientHandler)}.
* {@link #httpClientHandler} is set directly via {@link #setHttpClientHandler(HttpClientHandler)}.
*/
@Override
public T setSslParameters(SSLParameters sslParameters) {
Expand All @@ -311,11 +311,11 @@ public HttpClient getHttpClient() {
* @param httpClient Instance of an HttpClient.
* @return {@link #self()}
* @implNote Configuration option for an internal DefaultHttpClientHandler. Will be ignored if the
* {@link #httpClientHandler} is set directly via {@link #setHttpClientHandler(HttpClientHandler)}.
* <br>
* Be aware, that any httpClient given via this method will set AutoClose to false and has to be
* closed externally, unless {@link #setHttpClientAutoClose(boolean)} is used. A call to
* {@link HttpClientHandler#close()} with AutoClose set to false will have no effect.
* {@link #httpClientHandler} is set directly via {@link #setHttpClientHandler(HttpClientHandler)}.
* <br>
* Be aware, that any httpClient given via this method will set AutoClose to false and has to be
* closed externally, unless {@link #setHttpClientAutoClose(boolean)} is used. A call to
* {@link HttpClientHandler#close()} with AutoClose set to false will have no effect.
*/
@Override
public T setHttpClient(HttpClient httpClient) {
Expand All @@ -335,7 +335,7 @@ public CookieManager getCookieManager() {
* @param cookieManager Instance of a CookieManager.
* @return {@link #self()}
* @implNote Configuration option for an internal DefaultHttpClientHandler. Will be ignored if the
* {@link #httpClientHandler} is set directly via {@link #setHttpClientHandler(HttpClientHandler)}.
* {@link #httpClientHandler} is set directly via {@link #setHttpClientHandler(HttpClientHandler)}.
*/
@Override
public T setCookieManager(CookieManager cookieManager) {
Expand All @@ -355,7 +355,7 @@ public int getMaxConnectionPool() {
* @param maxConnectionPool Maximum size of the pool. Default is 8.
* @return {@link #self()}
* @implNote Configuration option for an internal DefaultHttpClientHandler. Will be ignored if the
* {@link #httpClientHandler} is set directly via {@link #setHttpClientHandler(HttpClientHandler)}.
* {@link #httpClientHandler} is set directly via {@link #setHttpClientHandler(HttpClientHandler)}.
*/
@Override
public T setMaxConnectionPool(int maxConnectionPool) {
Expand All @@ -374,7 +374,7 @@ public int getMaxBinaryLogLength() {
* @param maxBinaryLogLength Size in bytes
* @return {@link #self()}
* @implNote Configuration option for an internal DefaultHttpClientHandler. Will be ignored if the
* {@link #httpClientHandler} is set directly via {@link #setHttpClientHandler(HttpClientHandler)}.
* {@link #httpClientHandler} is set directly via {@link #setHttpClientHandler(HttpClientHandler)}.
*/
@Override
public T setMaxBinaryLogLength(int maxBinaryLogLength) {
Expand All @@ -399,7 +399,7 @@ public Boolean getHttpClientAutoClose() {
* @param httpClientAutoClose true: enable, false: disable.
* @return {@link #self()}
* @implNote Configuration option for an internal DefaultHttpClientHandler. Will be ignored if the
* {@link #httpClientHandler} is set directly via {@link #setHttpClientHandler(HttpClientHandler)}.
* {@link #httpClientHandler} is set directly via {@link #setHttpClientHandler(HttpClientHandler)}.
*/
@Override
public T setHttpClientAutoClose(boolean httpClientAutoClose) {
Expand Down Expand Up @@ -467,8 +467,8 @@ protected AbstractAPIHandler(Conf<?> builder) {
*
* @return A copy of the configuration.
* @implNote Please take note, that the included httpClientHandler of this class will be
* added to the returned {@link Conf} and therefore will be shared among all APIHandlers that use this
* configuration.
* added to the returned {@link Conf} and therefore will be shared among all APIHandlers that use this
* configuration.
* @see co.arago.hiro.client.rest.AuthenticatedAPIHandler
*/
public Conf<?> getConf() {
Expand Down Expand Up @@ -634,10 +634,10 @@ public HttpRequest.Builder getRequestBuilder(
* @return The constructed HttpRequest.
*/
private HttpRequest createStreamRequest(URI uri,
String method,
StreamContainer body,
HttpHeaderMap headers,
Long httpRequestTimeout) throws InterruptedException, IOException, HiroException {
String method,
StreamContainer body,
HttpHeaderMap headers,
Long httpRequestTimeout) throws InterruptedException, IOException, HiroException {

if (body != null && body.hasContentType()) {
headers.set("Content-Type", body.getContentType());
Expand Down Expand Up @@ -666,10 +666,10 @@ private HttpRequest createStreamRequest(URI uri,
* @return The constructed HttpRequest.
*/
private HttpRequest createStringRequest(URI uri,
String method,
String body,
HttpHeaderMap headers,
Long httpRequestTimeout) throws InterruptedException, IOException, HiroException {
String method,
String body,
HttpHeaderMap headers,
Long httpRequestTimeout) throws InterruptedException, IOException, HiroException {

HttpRequest httpRequest = getRequestBuilder(uri, headers, httpRequestTimeout)
.method(method,
Expand All @@ -692,7 +692,7 @@ private HttpRequest createStringRequest(URI uri,
* @param httpRequest The httpRequest to send
* @param maxRetries The amount of retries on errors. When this is null, {@link #maxRetries} will be used.
* @return A HttpResponse containing an InputStream of the incoming body part of
* the result.
* the result.
* @throws HiroException When status errors occur.
* @throws IOException On IO errors with the connection.
* @throws InterruptedException When the call gets interrupted.
Expand Down

0 comments on commit b62085d

Please sign in to comment.