Corrected version in @since
This commit is contained in:
parent
e2385f7d9a
commit
aad5987246
|
@ -343,7 +343,7 @@ public class HttpCacheEntry implements MessageHeaders, Serializable {
|
|||
}
|
||||
|
||||
/**
|
||||
* @since 5.3
|
||||
* @since 5.4
|
||||
*/
|
||||
public MessageHeaders responseHeaders() {
|
||||
return responseHeaders;
|
||||
|
@ -415,7 +415,7 @@ public class HttpCacheEntry implements MessageHeaders, Serializable {
|
|||
/**
|
||||
* Returns all known variants.
|
||||
*
|
||||
* @since 5.3
|
||||
* @since 5.4
|
||||
*/
|
||||
public Set<String> getVariants() {
|
||||
return variants != null ? variants : Collections.emptySet();
|
||||
|
@ -441,28 +441,28 @@ public class HttpCacheEntry implements MessageHeaders, Serializable {
|
|||
}
|
||||
|
||||
/**
|
||||
* @since 5.3
|
||||
* @since 5.4
|
||||
*/
|
||||
public String getRequestURI() {
|
||||
return requestURI;
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 5.3
|
||||
* @since 5.4
|
||||
*/
|
||||
public MessageHeaders requestHeaders() {
|
||||
return requestHeaders;
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 5.3
|
||||
* @since 5.4
|
||||
*/
|
||||
public Iterator<Header> requestHeaderIterator() {
|
||||
return requestHeaders.headerIterator();
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 5.3
|
||||
* @since 5.4
|
||||
*/
|
||||
public Iterator<Header> requestHeaderIterator(final String headerName) {
|
||||
return requestHeaders.headerIterator(headerName);
|
||||
|
@ -473,7 +473,7 @@ public class HttpCacheEntry implements MessageHeaders, Serializable {
|
|||
* by comparing values of their {@literal DATE} header. In case the given entry, or the message,
|
||||
* or their {@literal DATE} headers are null, this method returns {@code false}.
|
||||
*
|
||||
* @since 5.3
|
||||
* @since 5.4
|
||||
*/
|
||||
public static boolean isNewer(final HttpCacheEntry entry, final MessageHeaders message) {
|
||||
if (entry == null || message == null) {
|
||||
|
|
|
@ -53,7 +53,7 @@ import org.apache.hc.core5.util.Args;
|
|||
/**
|
||||
* {@link HttpCacheEntry} factory.
|
||||
*
|
||||
* @since 5.3
|
||||
* @since 5.4
|
||||
*/
|
||||
@Contract(threading = ThreadingBehavior.IMMUTABLE)
|
||||
public class HttpCacheEntryFactory {
|
||||
|
|
|
@ -198,7 +198,7 @@ public class CacheConfig implements Cloneable {
|
|||
*
|
||||
* @return {@code true} if HTTP/1.1 responses with query strings should never be cached;
|
||||
* {@code false} otherwise.
|
||||
* @since 5.3
|
||||
* @since 5.4
|
||||
*/
|
||||
public boolean isNeverCacheHTTP11ResponsesWithQuery() {
|
||||
return neverCacheHTTP11ResponsesWithQuery;
|
||||
|
|
|
@ -35,7 +35,7 @@ import org.apache.hc.core5.annotation.ThreadingBehavior;
|
|||
* Represents the values of the Cache-Control header in an HTTP message, which indicate whether and for how long
|
||||
* the response can be cached by the client and intermediary proxies.
|
||||
*
|
||||
* @since 5.3
|
||||
* @since 5.4
|
||||
*/
|
||||
@Internal
|
||||
@Contract(threading = ThreadingBehavior.IMMUTABLE)
|
||||
|
|
|
@ -199,7 +199,7 @@ public class CacheKeyGenerator implements Resolver<URI, String> {
|
|||
/**
|
||||
* Returns all variant names contained in {@literal VARY} headers of the given message.
|
||||
*
|
||||
* @since 5.3
|
||||
* @since 5.4
|
||||
*/
|
||||
public static List<String> variantNames(final MessageHeaders message) {
|
||||
if (message == null) {
|
||||
|
@ -269,7 +269,7 @@ public class CacheKeyGenerator implements Resolver<URI, String> {
|
|||
* @param variantNames variant names
|
||||
* @return variant key
|
||||
*
|
||||
* @since 5.3
|
||||
* @since 5.4
|
||||
*/
|
||||
public String generateVariantKey(final HttpRequest request, final Collection<String> variantNames) {
|
||||
Args.notNull(variantNames, "Variant names");
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
package org.apache.hc.client5.http.impl.cache;
|
||||
|
||||
/**
|
||||
* @since 5.3
|
||||
* @since 5.4
|
||||
*/
|
||||
enum CacheSuitability {
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ import org.apache.hc.core5.util.TimeValue;
|
|||
/**
|
||||
* HTTP cache support utilities.
|
||||
*
|
||||
* @since 5.3
|
||||
* @since 5.4
|
||||
*/
|
||||
@Internal
|
||||
public final class CacheSupport {
|
||||
|
|
|
@ -78,7 +78,7 @@ class CachedResponseSuitabilityChecker {
|
|||
* Determine if I can utilize the given {@link HttpCacheEntry} to respond to the given
|
||||
* {@link HttpRequest}.
|
||||
*
|
||||
* @since 5.3
|
||||
* @since 5.4
|
||||
*/
|
||||
public CacheSuitability assessSuitability(final RequestCacheControl requestCacheControl,
|
||||
final ResponseCacheControl responseCacheControl,
|
||||
|
|
|
@ -69,7 +69,7 @@ import org.slf4j.LoggerFactory;
|
|||
* entry serialization and deserialization. It also includes a default buffer size of 8192 bytes, which can be
|
||||
* overridden by specifying a different buffer size in the constructor.
|
||||
*
|
||||
* @since 5.3
|
||||
* @since 5.4
|
||||
*/
|
||||
@Contract(threading = ThreadingBehavior.STATELESS)
|
||||
public class HttpByteArrayCacheEntrySerializer implements HttpCacheEntrySerializer<byte[]> {
|
||||
|
|
|
@ -35,7 +35,7 @@ import org.apache.hc.core5.annotation.ThreadingBehavior;
|
|||
* Represents the values of the Cache-Control header in an HTTP request, which indicate whether and for how long
|
||||
* the client is willing to cache the response.
|
||||
*
|
||||
* @since 5.3
|
||||
* @since 5.4
|
||||
*/
|
||||
@Internal
|
||||
@Contract(threading = ThreadingBehavior.IMMUTABLE)
|
||||
|
|
|
@ -48,7 +48,7 @@ import org.apache.hc.core5.annotation.ThreadingBehavior;
|
|||
* constructor to create an instance with both values set to -1, indicating that the header was not present in the
|
||||
* response.
|
||||
*
|
||||
* @since 5.3
|
||||
* @since 5.4
|
||||
*/
|
||||
@Internal
|
||||
@Contract(threading = ThreadingBehavior.IMMUTABLE)
|
||||
|
|
|
@ -71,7 +71,7 @@ class ResponseCachingPolicy {
|
|||
* {@code false} to cache if explicit cache headers are found.
|
||||
* @param neverCache1_1ResponsesWithQueryString {@code true} to never cache HTTP 1.1 responses with a query string,
|
||||
* {@code false} to cache if explicit cache headers are found.
|
||||
* @since 5.3
|
||||
* @since 5.4
|
||||
*/
|
||||
public ResponseCachingPolicy(
|
||||
final boolean sharedCache,
|
||||
|
|
Loading…
Reference in New Issue