Tabnine Logo
FreeMarkerView.getConfiguration
Code IndexAdd Tabnine to your IDE (free)

How to use
getConfiguration
method
in
org.springframework.web.reactive.result.view.freemarker.FreeMarkerView

Best Java code snippets using org.springframework.web.reactive.result.view.freemarker.FreeMarkerView.getConfiguration (Showing top 5 results out of 315)

origin: spring-projects/spring-framework

/**
 * Obtain the FreeMarker configuration for actual use.
 * @return the FreeMarker configuration (never {@code null})
 * @throws IllegalStateException in case of no Configuration object set
 * @since 5.0
 */
protected Configuration obtainConfiguration() {
  Configuration configuration = getConfiguration();
  Assert.state(configuration != null, "No Configuration set");
  return configuration;
}
origin: spring-projects/spring-framework

@Override
public void afterPropertiesSet() throws Exception {
  super.afterPropertiesSet();
  if (getConfiguration() == null) {
    FreeMarkerConfig config = autodetectConfiguration();
    setConfiguration(config.getConfiguration());
  }
}
origin: org.springframework/spring-web-reactive

/**
 * Retrieve the FreeMarker template for the given locale,
 * to be rendering by this view.
 * <p>By default, the template specified by the "url" bean property
 * will be retrieved.
 * @param locale the current locale
 * @return the FreeMarker template to render
 */
protected Template getTemplate(Locale locale) throws IOException {
  return (getEncoding() != null ?
      getConfiguration().getTemplate(getUrl(), locale, getEncoding()) :
      getConfiguration().getTemplate(getUrl(), locale));
}
origin: org.springframework/spring-web-reactive

/**
 * Return the configured FreeMarker {@link ObjectWrapper}, or the
 * {@link ObjectWrapper#DEFAULT_WRAPPER default wrapper} if none specified.
 * @see freemarker.template.Configuration#getObjectWrapper()
 */
protected ObjectWrapper getObjectWrapper() {
  ObjectWrapper ow = getConfiguration().getObjectWrapper();
  Version version = Configuration.DEFAULT_INCOMPATIBLE_IMPROVEMENTS;
  return (ow != null ? ow : new DefaultObjectWrapperBuilder(version).build());
}
origin: org.springframework/spring-web-reactive

@Override
public void afterPropertiesSet() throws Exception {
  super.afterPropertiesSet();
  if (getConfiguration() == null) {
    FreeMarkerConfig config = autodetectConfiguration();
    setConfiguration(config.getConfiguration());
  }
}
org.springframework.web.reactive.result.view.freemarkerFreeMarkerViewgetConfiguration

Javadoc

Return the FreeMarker configuration used by this view.

Popular methods of FreeMarkerView

  • setConfiguration
    Set the FreeMarker Configuration to be used by this view.Typically this property is not set directly
  • autodetectConfiguration
    Autodetect a FreeMarkerConfig object via the ApplicationContext.
  • getCharset
  • getDefaultCharset
  • getEncoding
    Return the encoding for the FreeMarker template.
  • getObjectWrapper
    Return the configured FreeMarker ObjectWrapper, or the ObjectWrapper#DEFAULT_WRAPPER if none specifi
  • getTemplate
    Retrieve the FreeMarker template for the given locale, to be rendering by this view.By default, the
  • getTemplateModel
    Build a FreeMarker template model for the given model Map.The default implementation builds a Simple
  • getUrl
  • <init>
  • afterPropertiesSet
  • checkResourceExists
    Check that the FreeMarker template used for this view exists and is valid.Can be overridden to custo
  • afterPropertiesSet,
  • checkResourceExists,
  • getApplicationContext,
  • obtainApplicationContext,
  • obtainConfiguration,
  • render,
  • setApplicationContext,
  • setUrl

Popular in Java

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (Timer)
  • addToBackStack (FragmentTransaction)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • JTable (javax.swing)
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now