Skip to main content

juneau-rest-common Basics

Maven Dependency

<dependency>
<groupId>org.apache.juneau</groupId>
<artifactId>juneau-rest-common</artifactId>
<version>${juneau.version}</version>
</dependency>

Java Library

juneau-rest-common-0.0.0.jar

OSGi Module

org.apache.juneau.rest.common_0.0.0.jar

Contents/Features

The org.apache.juneau.http package contains a slew of useful extensions to the Apache HttpComponents libraries and define APIs used extensively in the REST server and client APIs.

HTTP Packagesorg.apache.juneau.http - Utility classes used for HTTP parts/headers/entities.org.apache.juneau.http.annotation - Swagger-based annotations used on both server-side APIs and client-side proxy interfaces.org.apache.juneau.http.entity - HTTP entity classes.org.apache.juneau.http.header - HTTP header classes.org.apache.juneau.http.part - HTTP query/form-data/path classes.org.apache.juneau.http.remote - Remote proxy interface APIorg.apache.juneau.http.resource - HTTP resource classes.org.apache.juneau.http.response - HTTP response classes.

These APIs extend from the Apache HttpComponents libraries and can be used with libraries based on it such as Apache HttpClient. The REST Client API described later is built on top of Apache HttpClient and many of the classes defined in this package make up integral components of that API. Likewise, the APIs defined here are also used in the REST Server APIs also described later.