// no rules, no link rewriting.
if (!urlRewriter.hasLinkRules()) {
return null;
}
ComponentEventLinkEncoderMethodAdvice pageLinkAdvice = new ComponentEventLinkEncoderMethodAdvice(
urlRewriter, request, httpServletRequest, response, true,
contextPathEncoder, baseURLSource);
ComponentEventLinkEncoderMethodAdvice eventLinkAdvice = new ComponentEventLinkEncoderMethodAdvice(
urlRewriter, request, httpServletRequest, response, false,
contextPathEncoder, baseURLSource);
Class<ComponentEventLinkEncoder> clasz = ComponentEventLinkEncoder.class;