HTTP Client

HTTP Client for REST and SOAP Services

License

License

Categories

Categories

CLI User Interface
GroupId

GroupId

com.inpaas
ArtifactId

ArtifactId

inpaas-httpclient
Last Version

Last Version

0.6.10
Release Date

Release Date

Type

Type

jar
Description

Description

HTTP Client
HTTP Client for REST and SOAP Services
Project URL

Project URL

http://www.inpaas.com
Source Code Management

Source Code Management

http://github.com/inpaas/inpaas-httpclient/tree/master

Download inpaas-httpclient

How to add to project

<!-- https://jarcasting.com/artifacts/com.inpaas/inpaas-httpclient/ -->
<dependency>
    <groupId>com.inpaas</groupId>
    <artifactId>inpaas-httpclient</artifactId>
    <version>0.6.10</version>
</dependency>
// https://jarcasting.com/artifacts/com.inpaas/inpaas-httpclient/
implementation 'com.inpaas:inpaas-httpclient:0.6.10'
// https://jarcasting.com/artifacts/com.inpaas/inpaas-httpclient/
implementation ("com.inpaas:inpaas-httpclient:0.6.10")
'com.inpaas:inpaas-httpclient:jar:0.6.10'
<dependency org="com.inpaas" name="inpaas-httpclient" rev="0.6.10">
  <artifact name="inpaas-httpclient" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.inpaas', module='inpaas-httpclient', version='0.6.10')
)
libraryDependencies += "com.inpaas" % "inpaas-httpclient" % "0.6.10"
[com.inpaas/inpaas-httpclient "0.6.10"]

Dependencies

compile (11)

Group / Artifact Type Version
wsdl4j : wsdl4j jar 1.6.3
org.apache.httpcomponents : httpclient jar 4.5.13
org.apache.httpcomponents : httpmime jar 4.5.13
com.fasterxml.jackson.core : jackson-core jar 2.11.3
com.fasterxml.jackson.core : jackson-databind jar 2.11.3
com.fasterxml.jackson.dataformat : jackson-dataformat-xml jar 2.11.3
com.brsanthu : migbase64 jar 2.2
org.apache.commons : commons-lang3 jar 3.9
commons-io : commons-io jar 2.2
org.slf4j : slf4j-api jar 1.7.30
com.predic8 : soa-model-core jar 1.5.0

test (2)

Group / Artifact Type Version
junit : junit jar 4.13.1
org.slf4j : slf4j-simple jar 1.7.30

Project Modules

There are no modules declared in this project.

inpaas-httpclient

HTTP Client for REST and SOAP Services

Overview

This project contains a general-purpose http-client functionality, it wraps the Apache HTTPComponents and some other libraries into a unique library for execution REST or SOAP requests.

Get it!

Maven

Functionality of this package is contained in Java package com.inpaas.http, and can be used using following Maven dependency:

<properties>
  ...
  <!-- Use the latest version whenever possible. -->
  <inpaas.httpclient.version>0.6.2</inpaas.httpclient.version>
  ...
</properties>

<dependencies>
  ...
  <dependency>
    <groupId>com.inpaas</groupId>
    <artifactId>inpaas-httpclient</artifactId>
    <version>${inpaas.httpclient.version}</version>
  </dependency>
  ...
</dependencies>

Use It!

SOAP Service

	HttpClientServiceFactory
			.getImporter(ServiceType.SOAP)
			.importService("http://www.w3schools.com/xml/tempconvert.asmx")
			.getEndpoint("FahrenheitToCelsius")
			.buildInvocation(() -> {
				Map<String, Object> data = new LinkedHashMap<>();
				data.put("Fahrenheit", 80);
				
				return data;					
			}).invoke().writeTo(System.out);
		

Release Notes

Version 0.6.6 (Current)

  • Added support for GZIP content
  • Fixed an issue with TLSv1.2

Version 0.6.2

  • Apache HTTPMime package is now available to convert XML and JSON data;
  • You can now override the responseProcessor for a single execution.

Version 0.6.1

  • Support for TLS 1.1 and 1.2 is now working properly.

Version 0.6.0

  • The header X-Agent-Host has been removed for security reasons.
com.inpaas

inPaaS

inPaaS :: ideias em aplicações

Versions

Version
0.6.10
0.6.9
0.6.8
0.6.7
0.6.6
0.6.5
0.6.4
0.6.3
0.6.2
0.6.1
0.6.0
0.5.3
0.5.2
0.5.1
0.5.0
0.4.13
0.4.12
0.4.11
0.4.10
0.4.9
0.4.8
0.4.7
0.4.5
0.4.3
0.4.2
0.4.1
0.4