@ForUseOnly public interface UrlGenerationContext
UrlSupporting
aspect.Modifier and Type | Interface and Description |
---|---|
static interface |
UrlGenerationContext.Builder
Builder for an
UrlGenerationContext . |
Modifier and Type | Method and Description |
---|---|
static UrlGenerationContext.Builder |
builder()
Creates a builder for the context in which an URL will be requested.
|
<O> Optional<O> |
getAttribute(String name)
Lookup an attribute with the given
name in this generation context. |
Language |
getLanguage()
Returns the contextual
Language when requesting the URL. |
UrlCreator |
getUrlCreator()
Returns the url creator to be used in the current generation context.
|
UrlCreatorProvider |
getUrlCreatorProvider()
Returns the provider of url creators in the current generation context.
|
boolean |
isRelease()
Indicates whether or not the URL is requested in the context of a release version.
|
@NotNull static UrlGenerationContext.Builder builder()
@NotNull UrlCreator getUrlCreator()
@NotNull UrlCreatorProvider getUrlCreatorProvider()
@NotNull <O> Optional<O> getAttribute(@NotNull String name)
name
in this generation context.
If the attribute is not available Optional.empty()
will be returned.O
- The type of the value to lookup.name
- The name of the attribute to lookup.boolean isRelease()
true
this context is based on a release versionCopyright © 2021 e-Spirit AG. All Rights Reserved. Build 5.2.210210