Polishing

This commit is contained in:
Juergen Hoeller
2018-08-06 18:34:00 +02:00
parent 8a9d042320
commit 943b394992
5 changed files with 23 additions and 23 deletions

View File

@@ -54,10 +54,12 @@ public abstract class ExchangeFilterFunctions {
public static final String BASIC_AUTHENTICATION_CREDENTIALS_ATTRIBUTE =
ExchangeFilterFunctions.class.getName() + ".basicAuthenticationCredentials";
/**
* Consume up to the specified number of bytes from the response body and
* cancel if any more data arrives. Internally delegates to
* {@link DataBufferUtils#takeUntilByteCount}.
* cancel if any more data arrives.
* <p>Internally delegates to {@link DataBufferUtils#takeUntilByteCount}.
* @param maxByteCount the limit as number of bytes
* @return the filter to limit the response size with
* @since 5.1
*/
@@ -107,6 +109,7 @@ public abstract class ExchangeFilterFunctions {
.map(credentials -> (Credentials) credentials));
}
@Deprecated
private static ExchangeFilterFunction basicAuthenticationInternal(
Function<ClientRequest, Optional<Credentials>> credentialsFunction) {