Java HTTP cache :: Resolvers :: HttpComponents HttpClient

Responseresolver using Apache Http Components HttpClient

Лицензия

Лицензия

Категории

Категории

CLI Взаимодействие с пользователем
Группа

Группа

org.codehaus.httpcache4j.resolvers
Идентификатор

Идентификатор

resolvers-httpcomponents-httpclient
Последняя версия

Последняя версия

5.1.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

Java HTTP cache :: Resolvers :: HttpComponents HttpClient
Responseresolver using Apache Http Components HttpClient

Скачать resolvers-httpcomponents-httpclient

Как подключить последнюю версию

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

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
org.apache.httpcomponents : httpclient jar 4.5.3
org.codehaus.httpcache4j : httpcache4j-api jar 5.1.1

test (2)

Идентификатор библиотеки Тип Версия
org.mockito : mockito-core jar 2.7.22
junit : junit jar 4.12

Модули Проекта

Данный проект не имеет модулей.

HTTPCache4j a Java Browser cache.

Build Status

HTTP Cache 4 Java is a project that tries to uphold the caching rules defined in HTTP. The rules are mostly defined in Section 13 in RFC2616. The rules are changing slightly in httpbis, and will result in a new set of RFCs which will invalidate RFC2616.

Most types in HTTPCache4j are immutable. Meaning all builders, and other types of objects.

I have created a few mutable versions which delegates to the immutable types underneath. The mutable versions are not thread safe.

Usage

Spring support

Spring support has been moved to separate repository.

Maven

Add this to your POM

<dependency>
  <groupId>org.codehaus.httpcache4j</groupId>
  <artifactId>httpcache4j-core</artifactId>
  <version>5.1.0</version>
</dependency>

Now choose your resolver.

<dependency>
  <groupId>org.codehaus.httpcache4j.resolvers</groupId>
  <artifactId>resolvers-commons-httpclient</artifactId>
  <version>5.1.0</version>
</dependency>

<dependency>
  <groupId>org.codehaus.httpcache4j.resolvers</groupId>
  <artifactId>resolvers-httpcomponents-httpclient</artifactId>
  <version>5.1.0</version>
</dependency>

<dependency>
  <groupId>org.codehaus.httpcache4j.resolvers</groupId>
  <artifactId>resolvers-ning-async</artifactId>
  <version>5.1.0</version>
</dependency>

Then choose your storage mechanism.

The core has a built in Memory storage, and is useful for non-persistent small data. The core also has a resolver built on java.net.URLConnection.

If this is not enough, there are a number of persistent storages to choose from

  <dependency>
    <groupId>org.codehaus.httpcache4j.storage</groupId>
    <artifactId>storage-file</artifactId>
    <version>5.1.0</version>
  </dependency>

There are also a few jdbc storages which are independently developed from the core.

SNAPSHOT version

Snapshots are available from

Maven

<repository>
  <id>sonatype-snapshots</id>
  <url>https://oss.sonatype.org/content/repositories/snapshots</url>
</repository>

HTTP Library

If you want to use HTTPCache4j as a normal HTTP library without the caching functions, you can. Either just use a resolver, or use a NullStorage with the HTTPCache class.

org.codehaus.httpcache4j.resolvers

HTTPCache4j

Версии библиотеки

Версия
5.1.1
5.1.0
5.0.1
5.0.0
5.0.0-M3
5.0.0-M2
5.0.0-M1
4.2
4.1
4.0
4.0-RC4
4.0-RC3
4.0-RC2
4.0-RC1
4.0-M6
4.0-M5
4.0-M4
4.0-M3
4.0-M2
4.0-M1
3.4
3.3
3.2
3.1
3.0
2.2
2.1.1
2.1
2.0
1.7