class BaseUrlLinkBuilder extends StandardLinkBuilder {
    private String baseUrl;

    public void setBaseUrl(String baseUrl) {
        this.baseUrl = baseUrl;
    }

    @Override
    protected String computeContextPath(IExpressionContext context, String base, Map<String, Object> parameters) {<FILL_FUNCTION_BODY>}
}

        if (baseUrl == null) {
            throw new TemplateProcessingException("baseUrl is null");
        }

        return baseUrl;
    
<methods>public void <init>() ,public final java.lang.String buildLink(org.thymeleaf.context.IExpressionContext, java.lang.String, Map<java.lang.String,java.lang.Object>) <variables>private static final char URL_TEMPLATE_DELIMITER_PREFIX,private static final java.lang.String URL_TEMPLATE_DELIMITER_SEGMENT_PREFIX,private static final char URL_TEMPLATE_DELIMITER_SUFFIX