Class VelocityEngine

java.lang.Object
net.shibboleth.utilities.java.support.velocity.VelocityEngine

public final class VelocityEngine
extends Object
This is a helper class for creating velocity engines.
  • Constructor Details

    • VelocityEngine

      private VelocityEngine()
      Default constructor.
  • Method Details

    • newVelocityEngine

      @Nonnull public static org.apache.velocity.app.VelocityEngine newVelocityEngine()
      Creates a new velocity engine with default properties. See getDefaultProperties().
      Returns:
      velocity engine
    • newVelocityEngine

      @Nonnull public static org.apache.velocity.app.VelocityEngine newVelocityEngine​(@Nonnull Properties props)
      Creates a new velocity engine with the supplied properties.
      Parameters:
      props - velocity engine properties
      Returns:
      velocity engine
    • getDefaultProperties

      @Nonnull public static Properties getDefaultProperties()
      Returns the default velocity engine properties. Default properties include:
      • "resource.loader.string.class","org.apache.velocity.runtime.resource.loader.StringResourceLoader"
      • "resource.loader.classpath.class","org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader"
      • "resource.loaders", "classpath, string"
      Returns:
      velocity engine properties