HTTP Client

HTTP Client for REST and SOAP Services

License

License

GroupId

GroupId

com.inpaas
ArtifactId

ArtifactId

inpaas-http
Last Version

Last Version

0.1
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-http

How to add to project

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

Dependencies

compile (10)

Group / Artifact Type Version
wsdl4j : wsdl4j jar 1.6.3
org.apache.httpcomponents : httpclient jar 4.5.2
com.fasterxml.jackson.core : jackson-core jar 2.7.0
com.fasterxml.jackson.core : jackson-databind jar 2.7.0
com.fasterxml.jackson.dataformat : jackson-dataformat-xml jar 2.7.0
com.brsanthu : migbase64 jar 2.2
org.apache.commons : commons-lang3 jar 3.4
commons-io : commons-io jar 2.2
org.slf4j : slf4j-api jar 1.7.21
com.predic8 : soa-model-core jar 1.5.0

test (2)

Group / Artifact Type Version
junit : junit jar 4.11
org.slf4j : slf4j-simple jar 1.7.21

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.1