Package io.micronaut.views.thymeleaf
Class LinkBuilder
java.lang.Object
org.thymeleaf.linkbuilder.AbstractLinkBuilder
org.thymeleaf.linkbuilder.StandardLinkBuilder
io.micronaut.views.thymeleaf.LinkBuilder
- All Implemented Interfaces:
org.thymeleaf.linkbuilder.ILinkBuilder
@Singleton
public class LinkBuilder
extends org.thymeleaf.linkbuilder.StandardLinkBuilder
Implementation of
ILinkBuilder
interface for WebContext
support.- Since:
- 1.1.0
- Author:
- Semyon Gashchenko
-
Nested Class Summary
Nested classes/interfaces inherited from class org.thymeleaf.linkbuilder.StandardLinkBuilder
org.thymeleaf.linkbuilder.StandardLinkBuilder.LinkType
-
Constructor Summary
ConstructorDescriptionLinkBuilder
(io.micronaut.http.server.HttpServerConfiguration httpServerConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionprotected @Nullable String
computeContextPath
(org.thymeleaf.context.IExpressionContext context, String base, Map<String, Object> parameters) protected String
processLink
(org.thymeleaf.context.IExpressionContext context, String link) Methods inherited from class org.thymeleaf.linkbuilder.StandardLinkBuilder
buildLink
Methods inherited from class org.thymeleaf.linkbuilder.AbstractLinkBuilder
getName, getOrder, setName, setOrder
-
Constructor Details
-
LinkBuilder
public LinkBuilder(io.micronaut.http.server.HttpServerConfiguration httpServerConfiguration) - Parameters:
httpServerConfiguration
- HTTP Server Configuration
-
-
Method Details
-
computeContextPath
@Nullable protected @Nullable String computeContextPath(org.thymeleaf.context.IExpressionContext context, String base, Map<String, Object> parameters) - Overrides:
computeContextPath
in classorg.thymeleaf.linkbuilder.StandardLinkBuilder
- Returns:
null
.
-
processLink
- Overrides:
processLink
in classorg.thymeleaf.linkbuilder.StandardLinkBuilder
-