public abstract class ExchangeFilterFunctions
extends java.lang.Object
ExchangeFilterFunction
that provide various useful request filter
operations, such as basic authentication, error handling, etc.Constructor and Description |
---|
ExchangeFilterFunctions() |
Modifier and Type | Method and Description |
---|---|
private static java.lang.String |
authorization(java.lang.String username,
java.lang.String password) |
static ExchangeFilterFunction |
basicAuthentication(java.lang.String username,
java.lang.String password)
Return a filter that adds an Authorization header for HTTP Basic Authentication.
|
public static ExchangeFilterFunction basicAuthentication(java.lang.String username, java.lang.String password)
username
- the username to usepassword
- the password to useExchangeFilterFunction
that adds the Authorization headerprivate static java.lang.String authorization(java.lang.String username, java.lang.String password)