Javadoc format and related polishing
(cherry picked from commit 9d0e62e)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2016 the original author or authors.
|
||||
* Copyright 2002-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -82,7 +82,8 @@ public class CacheControl {
|
||||
|
||||
/**
|
||||
* Return an empty directive.
|
||||
* <p>This is well suited for using other optional directives without "max-age", "no-cache" or "no-store".
|
||||
* <p>This is well suited for using other optional directives without "max-age",
|
||||
* "no-cache" or "no-store".
|
||||
* @return {@code this}, to facilitate method chaining
|
||||
*/
|
||||
public static CacheControl empty() {
|
||||
@@ -91,11 +92,13 @@ public class CacheControl {
|
||||
|
||||
/**
|
||||
* Add a "max-age=" directive.
|
||||
* <p>This directive is well suited for publicly caching resources, knowing that they won't change within
|
||||
* the configured amount of time. Additional directives can be also used, in case resources shouldn't be
|
||||
* cached ({@link #cachePrivate()}) or transformed ({@link #noTransform()}) by shared caches.
|
||||
* <p>In order to prevent caches to reuse the cached response even when it has become stale
|
||||
* (i.e. the "max-age" delay is passed), the "must-revalidate" directive should be set ({@link #mustRevalidate()}
|
||||
* <p>This directive is well suited for publicly caching resources, knowing that
|
||||
* they won't change within the configured amount of time. Additional directives
|
||||
* can be also used, in case resources shouldn't be cached ({@link #cachePrivate()})
|
||||
* or transformed ({@link #noTransform()}) by shared caches.
|
||||
* <p>In order to prevent caches to reuse the cached response even when it has
|
||||
* become stale (i.e. the "max-age" delay is passed), the "must-revalidate"
|
||||
* directive should be set ({@link #mustRevalidate()}
|
||||
* @param maxAge the maximum time the response should be cached
|
||||
* @param unit the time unit of the {@code maxAge} argument
|
||||
* @return {@code this}, to facilitate method chaining
|
||||
@@ -109,12 +112,13 @@ public class CacheControl {
|
||||
|
||||
/**
|
||||
* Add a "no-cache" directive.
|
||||
* <p>This directive is well suited for telling caches that the response can be reused only if the client
|
||||
* revalidates it with the server. This directive won't disable cache altogether and may result with
|
||||
* clients sending conditional requests (with "ETag", "If-Modified-Since" headers) and the server responding
|
||||
* with "304 - Not Modified" status.
|
||||
* <p>In order to disable caching and minimize requests/responses exchanges, the {@link #noStore()} directive
|
||||
* should be used instead of {@link #noCache()}.
|
||||
* <p>This directive is well suited for telling caches that the response
|
||||
* can be reused only if the client revalidates it with the server.
|
||||
* This directive won't disable cache altogether and may result with clients
|
||||
* sending conditional requests (with "ETag", "If-Modified-Since" headers)
|
||||
* and the server responding with "304 - Not Modified" status.
|
||||
* <p>In order to disable caching and minimize requests/responses exchanges,
|
||||
* the {@link #noStore()} directive should be used instead of {@code #noCache()}.
|
||||
* @return {@code this}, to facilitate method chaining
|
||||
* @see <a href="https://tools.ietf.org/html/rfc7234#section-5.2.2.2">rfc7234 section 5.2.2.2</a>
|
||||
*/
|
||||
@@ -126,7 +130,8 @@ public class CacheControl {
|
||||
|
||||
/**
|
||||
* Add a "no-store" directive.
|
||||
* <p>This directive is well suited for preventing caches (browsers and proxies) to cache the content of responses.
|
||||
* <p>This directive is well suited for preventing caches (browsers and proxies)
|
||||
* to cache the content of responses.
|
||||
* @return {@code this}, to facilitate method chaining
|
||||
* @see <a href="https://tools.ietf.org/html/rfc7234#section-5.2.2.3">rfc7234 section 5.2.2.3</a>
|
||||
*/
|
||||
@@ -139,8 +144,9 @@ public class CacheControl {
|
||||
|
||||
/**
|
||||
* Add a "must-revalidate" directive.
|
||||
* <p>This directive indicates that once it has become stale, a cache MUST NOT use the response
|
||||
* to satisfy subsequent requests without successful validation on the origin server.
|
||||
* <p>This directive indicates that once it has become stale, a cache MUST NOT
|
||||
* use the response to satisfy subsequent requests without successful validation
|
||||
* on the origin server.
|
||||
* @return {@code this}, to facilitate method chaining
|
||||
* @see <a href="https://tools.ietf.org/html/rfc7234#section-5.2.2.1">rfc7234 section 5.2.2.1</a>
|
||||
*/
|
||||
@@ -151,8 +157,9 @@ public class CacheControl {
|
||||
|
||||
/**
|
||||
* Add a "no-transform" directive.
|
||||
* <p>This directive indicates that intermediaries (caches and others) should not transform the response content.
|
||||
* This can be useful to force caches and CDNs not to automatically gzip or optimize the response content.
|
||||
* <p>This directive indicates that intermediaries (caches and others) should
|
||||
* not transform the response content. This can be useful to force caches and
|
||||
* CDNs not to automatically gzip or optimize the response content.
|
||||
* @return {@code this}, to facilitate method chaining
|
||||
* @see <a href="https://tools.ietf.org/html/rfc7234#section-5.2.2.4">rfc7234 section 5.2.2.4</a>
|
||||
*/
|
||||
@@ -163,8 +170,9 @@ public class CacheControl {
|
||||
|
||||
/**
|
||||
* Add a "public" directive.
|
||||
* <p>This directive indicates that any cache MAY store the response, even if the response
|
||||
* would normally be non-cacheable or cacheable only within a private cache.
|
||||
* <p>This directive indicates that any cache MAY store the response,
|
||||
* even if the response would normally be non-cacheable or cacheable
|
||||
* only within a private cache.
|
||||
* @return {@code this}, to facilitate method chaining
|
||||
* @see <a href="https://tools.ietf.org/html/rfc7234#section-5.2.2.5">rfc7234 section 5.2.2.5</a>
|
||||
*/
|
||||
@@ -175,8 +183,8 @@ public class CacheControl {
|
||||
|
||||
/**
|
||||
* Add a "private" directive.
|
||||
* <p>This directive indicates that the response message is intended for a single user
|
||||
* and MUST NOT be stored by a shared cache.
|
||||
* <p>This directive indicates that the response message is intended
|
||||
* for a single user and MUST NOT be stored by a shared cache.
|
||||
* @return {@code this}, to facilitate method chaining
|
||||
* @see <a href="https://tools.ietf.org/html/rfc7234#section-5.2.2.6">rfc7234 section 5.2.2.6</a>
|
||||
*/
|
||||
@@ -199,8 +207,8 @@ public class CacheControl {
|
||||
|
||||
/**
|
||||
* Add an "s-maxage" directive.
|
||||
* <p>This directive indicates that, in shared caches, the maximum age specified by this directive
|
||||
* overrides the maximum age specified by other directives.
|
||||
* <p>This directive indicates that, in shared caches, the maximum age specified
|
||||
* by this directive overrides the maximum age specified by other directives.
|
||||
* @param sMaxAge the maximum time the response should be cached
|
||||
* @param unit the time unit of the {@code sMaxAge} argument
|
||||
* @return {@code this}, to facilitate method chaining
|
||||
@@ -213,10 +221,11 @@ public class CacheControl {
|
||||
|
||||
/**
|
||||
* Add a "stale-while-revalidate" directive.
|
||||
* <p>This directive indicates that caches MAY serve the response in
|
||||
* which it appears after it becomes stale, up to the indicated number of seconds.
|
||||
* <p>This directive indicates that caches MAY serve the response in which it
|
||||
* appears after it becomes stale, up to the indicated number of seconds.
|
||||
* If a cached response is served stale due to the presence of this extension,
|
||||
* the cache SHOULD attempt to revalidate it while still serving stale responses (i.e., without blocking).
|
||||
* the cache SHOULD attempt to revalidate it while still serving stale responses
|
||||
* (i.e. without blocking).
|
||||
* @param staleWhileRevalidate the maximum time the response should be used while being revalidated
|
||||
* @param unit the time unit of the {@code staleWhileRevalidate} argument
|
||||
* @return {@code this}, to facilitate method chaining
|
||||
@@ -229,8 +238,8 @@ public class CacheControl {
|
||||
|
||||
/**
|
||||
* Add a "stale-if-error" directive.
|
||||
* <p>This directive indicates that when an error is encountered, a cached stale response MAY be used to satisfy
|
||||
* the request, regardless of other freshness information.
|
||||
* <p>This directive indicates that when an error is encountered, a cached stale response
|
||||
* MAY be used to satisfy the request, regardless of other freshness information.
|
||||
* @param staleIfError the maximum time the response should be used when errors are encountered
|
||||
* @param unit the time unit of the {@code staleIfError} argument
|
||||
* @return {@code this}, to facilitate method chaining
|
||||
|
||||
@@ -67,7 +67,6 @@ public class LocalJaxWsServiceFactory {
|
||||
|
||||
/**
|
||||
* Set the WSDL document URL as a {@link Resource}.
|
||||
* @throws IOException
|
||||
* @since 3.2
|
||||
*/
|
||||
public void setWsdlDocumentResource(Resource wsdlDocumentResource) throws IOException {
|
||||
|
||||
Reference in New Issue
Block a user