Asynchronous Http Client.
Async Http Client library purpose is to allow Java applications to easily execute HTTP requests and asynchronously process the HTTP responses..
Here is the list of declaration for async-http-client. If you use Maven you can use the following code to add the dependency for this POM file.
<dependency> <groupId>com.ning</groupId> <artifactId>async-http-client</artifactId> <version>1.7.1</version> </dependency>
If you think this Maven repository POM file listing for async-http-client is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Name:Apache License 2.0
URL: http://www.apache.org/licenses/LICENSE-2.0.html.
The async-http-client-1.7.1 has 17 dependencies.The most popular ones are listed in the following table along with their categories and number of artifacts depending on them.
Category | Artifact | Depended By Count |
---|---|---|
Log | slf4j-api 1.6.2 The slf4j API | 513 |
JUnit | testng 5.8 TestNG is a testing framework inspired from JUnit and NUnit but introducing some new functionalities that make it more powerful and easier to use. | 72 |
Servlet | catalina 6.0.29 Tomcat Servlet Engine Core Classes and Standard implementations | 27 |
File | commons-io 2.0.1 Commons-IO contains utility classes, stream implementations, file filters, file comparators and endian classes. | 215 |
Servlet | commons-fileupload 1.2.2 The FileUpload component provides a simple yet flexible means of adding support for multipart file upload functionality to servlets and web applications. | 113 |
Http | commons-httpclient 3.1 The HttpClient component supports the client-side of RFC 1945 (HTTP/1.0) and RFC 2616 (HTTP/1.1) , several related specifications (RFC 2109 (Cookies) , RFC 2617 (HTTP Authentication) , etc.), and provides a framework by which new request types (methods) or HTTP extensions can be created easily. | 430 |
Data Structure | commons-lang 2.4 Commons Lang, a package of Java utility classes for the classes that are in java.lang's hierarchy, or are considered to be so standard as to justify existence in java.lang. | 630 |
Log | commons-logging 1.1.1 Commons Logging is a thin adapter allowing configurable bridging to other, well known logging systems. | 1143 |
The following plugins are used in the async-http-client-1.7.1.jar
The following packages are defined in the async-http-client-1.7.1.jar
com.ning.http.client com.ning.http.client.consumers com.ning.http.client.extra com.ning.http.client.filter com.ning.http.client.generators com.ning.http.client.listenable com.ning.http.client.listener com.ning.http.client.ntlm com.ning.http.client.oauth com.ning.http.client.providers.apache com.ning.http.client.providers.grizzly com.ning.http.client.providers.jdk com.ning.http.client.providers.netty com.ning.http.client.providers.netty.spnego com.ning.http.client.resumable com.ning.http.client.simple com.ning.http.client.webdav com.ning.http.client.websocket com.ning.http.multipart com.ning.http.util
Here is the content of the POM file.
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <parent> <groupId>org.sonatype.oss</groupId> <artifactId>oss-parent</artifactId> <version>5</version> </parent> <modelVersion>4.0.0</modelVersion> <groupId>com.ning</groupId> <artifactId>async-http-client</artifactId> <name>Asynchronous Http Client</name> <version>1.7.1</version> <packaging>jar</packaging> <description> Async Http Client library purpose is to allow Java applications to easily execute HTTP requests and asynchronously process the HTTP responses. </description> <url>http://github.com/sonatype/async-http-client</url> <scm> <connection>scm:git:git@github.com:sonatype/async-http-client.git</connection> <url>https://github.com/sonatype/async-http-client</url> <developerConnection>scm:git:git@github.com:sonatype/async-http-client.git</developerConnection> </scm> <issueManagement> <system>jira</system> <url>https://issues.sonatype.org/browse/AHC</url> </issueManagement> <prerequisites> <maven>2.0.9</maven> </prerequisites> <licenses> <license> <name>Apache License 2.0</name> <url>http://www.apache.org/licenses/LICENSE-2.0.html</url> <distribution>repo</distribution> </license> </licenses> <dependencies> <dependency> <groupId>io.netty</groupId> <artifactId>netty</artifactId> <version>3.3.1.Final</version> <exclusions> <exclusion> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> </exclusion> <exclusion> <groupId>commons-logging</groupId> <artifactId>commons-logging</artifactId> </exclusion> <exclusion> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> </exclusion> <exclusion> <groupId>log4j</groupId> <artifactId>log4j</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>1.6.2</version> </dependency> <!-- Test dependencies --> <dependency> <groupId>ch.qos.logback</groupId> <artifactId>logback-classic</artifactId> <version>0.9.26</version> <scope>test</scope> </dependency> <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.13</version> <scope>test</scope> </dependency> <dependency> <groupId>org.testng</groupId> <artifactId>testng</artifactId> <version>5.8</version> <scope>test</scope> <classifier>jdk15</classifier> </dependency> <dependency> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-server</artifactId> <version>8.1.0.RC1</version> <scope>test</scope> </dependency> <dependency> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-servlet</artifactId> <version>8.1.0.RC1</version> <scope>test</scope> </dependency> <dependency> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-websocket</artifactId> <version>8.1.0.RC1</version> <scope>test</scope> </dependency> <dependency> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-servlets</artifactId> <version>8.1.0.RC1</version> <scope>test</scope> </dependency> <dependency> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-security</artifactId> <version>8.1.0.RC1</version> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.tomcat</groupId> <artifactId>coyote</artifactId> <version>6.0.29</version> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.tomcat</groupId> <artifactId>catalina</artifactId> <version>6.0.29</version> <scope>test</scope> <exclusions> <exclusion> <artifactId>servlet-api</artifactId> <groupId>org.apache.tomcat</groupId> </exclusion> </exclusions> </dependency> <dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> <version>2.0.1</version> <scope>test</scope> </dependency> <dependency> <groupId>commons-fileupload</groupId> <artifactId>commons-fileupload</artifactId> <version>1.2.2</version> <scope>test</scope> </dependency> <!-- Optional Apache Http Client --> <dependency> <groupId>commons-httpclient</groupId> <artifactId>commons-httpclient</artifactId> <version>3.1</version> <optional>true</optional> </dependency> <dependency> <groupId>commons-lang</groupId> <artifactId>commons-lang</artifactId> <version>2.4</version> <optional>true</optional> </dependency> <dependency> <groupId>commons-logging</groupId> <artifactId>commons-logging</artifactId> <version>1.1.1</version> <optional>true</optional> </dependency> </dependencies> <build> <extensions> <!-- Enabling the use of SSH --> <extension> <groupId>org.apache.maven.wagon</groupId> <artifactId>wagon-ssh-external</artifactId> <version>1.0-beta-6</version> </extension> </extensions> <defaultGoal>install</defaultGoal> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.3.2</version> <configuration> <source>${source.property}</source> <target>${target.property}</target> <maxmem>1024m</maxmem> <excludes> <exclude>${compiler.exclude}</exclude> </excludes> <testExcludes> <testExclude>${test.compiler.exclude}</testExclude> </testExcludes> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.8.1</version> <configuration> <redirectTestOutputToFile>${surefire.redirectTestOutputToFile}</redirectTestOutputToFile> </configuration> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>animal-sniffer-maven-plugin</artifactId> <version>1.6</version> <configuration> <signature> <groupId>org.codehaus.mojo.signature</groupId> <artifactId>java15</artifactId> <version>1.0</version> </signature> </configuration> <executions> <execution> <id>check-java-1.5-compat</id> <phase>process-classes</phase> <goals> <goal>check</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> <version>2.3.4</version> <extensions>true</extensions> <configuration> <manifestLocation>META-INF</manifestLocation> <instructions> <Bundle-Version>$(replace;$(project.version);-SNAPSHOT;.$(tstamp;yyyyMMdd-HHmm)) </Bundle-Version> <Bundle-Vendor>Sonatype</Bundle-Vendor> <Import-Package> org.jboss.netty.*;resolution:=optional, org.apache.commons.httpclient;resolution:=optional, org.apache.commons.httpclient.*;resolution:=optional, * </Import-Package> <Export-Package> com.ning.http.*;version="$(replace;$(project.version);-SNAPSHOT;"")" </Export-Package> </instructions> </configuration> <executions> <execution> <id>osgi-bundle</id> <phase>package</phase> <goals> <goal>bundle</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-enforcer-plugin</artifactId> <version>1.0-beta-1</version> <executions> <execution> <id>enforce-versions</id> <goals> <goal>enforce</goal> </goals> <configuration> <rules> <requireMavenVersion> <version>2.0.9</version> </requireMavenVersion> <requireJavaVersion> <version>1.5</version> </requireJavaVersion> </rules> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>2.4.3</version> <configuration> <encoding>UTF-8</encoding> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-release-plugin</artifactId> <version>2.1</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>2.3.1</version> <executions> <execution> <goals> <goal>test-jar</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <version>2.1.2</version> <executions> <execution> <id>attach-sources</id> <phase>verify</phase> <goals> <goal>jar-no-fork</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>2.7</version> <configuration> <aggregate>true</aggregate> <source>1.6</source> <encoding>UTF-8</encoding> <maxmemory>1g</maxmemory> <links> <link>http://java.sun.com/javase/6/docs/api/</link> </links> <excludePackageNames>${javadoc.package.exclude}</excludePackageNames> </configuration> <executions> <execution> <id>attach-javadocs</id> <phase>verify</phase> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId> <version>1.2.1</version> <executions> <execution> <phase>package</phase> <goals> <goal>shade</goal> </goals> <configuration> <shadedArtifactAttached>true</shadedArtifactAttached> <shadedClassifierName>shaded</shadedClassifierName> <artifactSet> <excludes> <exclude>commons-codec:commons-codec</exclude> <exclude>commons-lang:commons-lang</exclude> <exclude>commons-logging:commons-logging</exclude> <exclude>junit:junit</exclude> <exclude>log4j:log4j</exclude> <exclude>commons-httpclient:commons-httpclient</exclude> </excludes> </artifactSet> <transformers> <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" /> <transformer implementation="org.apache.maven.plugins.shade.resource.ComponentsXmlResourceTransformer" /> <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer" /> </transformers> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>clirr-maven-plugin</artifactId> <version>2.3</version> <configuration> <excludes> <exclude>**/netty4/**</exclude> <exclude>**/NettyAsyncHttpProvider$*</exclude> <exclude>**/AsyncHandler$STATE</exclude> <exclude>**/ProxyServer$Protocol</exclude> <exclude>**/Realm$AuthScheme</exclude> <exclude>**/SimpleAsyncHttpClient$ErrorDocumentBehaviour</exclude> <exclude>**/SpnegoEngine</exclude> <exclude>**/Request</exclude> <exclude>**/Request$EntityWriter</exclude> <exclude>**/RequestBuilderBase</exclude> <exclude>**/Response</exclude> <exclude>**/Response$</exclude> <exclude>**/NettyResponseFuture</exclude> <exclude>**/**ResponseBodyPart</exclude> <exclude>**/**WebSocket</exclude> </excludes> </configuration> <executions> <execution> <id>check-api-compat</id> <phase>verify</phase> <goals> <goal>check-no-fork</goal> </goals> </execution> </executions> </plugin> </plugins> </build> <profiles> <profile> <id>grizzly</id> <activation> <jdk>[1.6,)</jdk> </activation> <properties> <compiler.exclude>asdfasfd/**</compiler.exclude> <test.compiler.exclude>asdfasdf/**</test.compiler.exclude> <javadoc.package.exclude>asdfasdf</javadoc.package.exclude> <target.property>1.5</target.property> </properties> <dependencies> <dependency> <groupId>org.glassfish.grizzly</groupId> <artifactId>grizzly-websockets</artifactId> <version>2.2.1</version> <optional>true</optional> </dependency> </dependencies> </profile> <profile> <id>release-sign-artifacts</id> <activation> <property> <name>performRelease</name> <value>true</value> </property> </activation> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-gpg-plugin</artifactId> <executions> <execution> <id>sign-artifacts</id> <phase>verify</phase> <goals> <goal>sign</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </profile> <profile> <id>offline-testing</id> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <groups>standalone</groups> <redirectTestOutputToFile>${surefire.redirectTestOutputToFile}</redirectTestOutputToFile> </configuration> </plugin> </plugins> </build> </profile> <profile> <id>online-testing</id> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <groups>standalone, online</groups> <redirectTestOutputToFile>${surefire.redirectTestOutputToFile}</redirectTestOutputToFile> </configuration> </plugin> </plugins> </build> </profile> <profile> <id>test-output</id> <properties> <surefire.redirectTestOutputToFile>false</surefire.redirectTestOutputToFile> </properties> </profile> </profiles> <distributionManagement> <repository> <id>sonatype-nexus-staging</id> <name>Sonatype Release</name> <url>http://oss.sonatype.org/service/local/staging/deploy/maven2</url> </repository> <snapshotRepository> <id>sonatype-nexus-snapshots</id> <name>sonatype-nexus-snapshots</name> <url>${distMgmtSnapshotsUrl}</url> </snapshotRepository> </distributionManagement> <properties> <distMgmtSnapshotsUrl>http://oss.sonatype.org/content/repositories/snapshots</distMgmtSnapshotsUrl> <surefire.redirectTestOutputToFile>true</surefire.redirectTestOutputToFile> <compiler.exclude>com/ning/http/client/providers/grizzly/*.java</compiler.exclude> <test.compiler.exclude>com/ning/http/client/async/grizzly/*.java</test.compiler.exclude> <javadoc.package.exclude>com.ning.http.client.providers.grizzly</javadoc.package.exclude> <source.property>1.5</source.property> <target.property>1.5</target.property> </properties> </project>