code: public void setRedirectViewProvider(final Function<String, RedirectView> redirectViewProvider) {
          Validate.notNull(redirectViewProvider, "RedirectView provider cannot be null");
          this.redirectViewProvider = redirectViewProvider;
      }
docs: <p>
  Sets the provider function for creating {@link RedirectView} instances when a redirect
  request is passed to the view resolver.
  </p>
  <p>
  Note the parameter specified to the function will be the {@code URL} of the redirect
  (as specified in the view name returned by the controller, without the {@code redirect:}
  prefix).
  </p>
  
  @param redirectViewProvider the redirect-view provider function.