Package org.springframework.amqp.core
Class Base64UrlNamingStrategy
java.lang.Object
org.springframework.amqp.core.Base64UrlNamingStrategy
- All Implemented Interfaces:
NamingStrategy
Generates names with the form
<prefix><base64url>
where 'prefix' is
'spring.gen-' by default (e.g. spring.gen-eIwaZAYgQv6LvwaDCfVTNQ); the 'base64url'
String is generated from a UUID. The base64 alphabet is the "URL and Filename Safe
Alphabet"; see RFC-4648. Trailing padding characters (@code =) are removed.- Since:
- 2.1
- Author:
- Gary Russell
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Base64UrlNamingStrategy
The default instance - usingspring.gen-
as the prefix. -
Constructor Summary
ConstructorDescriptionConstruct an instance using the default prefixspring.gen-
.Base64UrlNamingStrategy
(String prefix) Construct an instance using the supplied prefix. -
Method Summary
-
Field Details
-
DEFAULT
The default instance - usingspring.gen-
as the prefix.
-
-
Constructor Details
-
Base64UrlNamingStrategy
public Base64UrlNamingStrategy()Construct an instance using the default prefixspring.gen-
. -
Base64UrlNamingStrategy
Construct an instance using the supplied prefix.- Parameters:
prefix
- The prefix.
-
-
Method Details
-
generateName
- Specified by:
generateName
in interfaceNamingStrategy
-