Class TemplatedStringLookupStrategy

java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.sp.util.TemplatedStringLookupStrategy
All Implemented Interfaces:
Function<ProfileRequestContext,String>, Component, DestructableComponent, InitializableComponent

public class TemplatedStringLookupStrategy extends AbstractInitializableComponent implements Function<ProfileRequestContext,String>
General strategy function for producing a String value from a String-based Velocity template.

Specialized inputs to the Velocity context are provided based on relevant inputs to operations by Agents.

  • Field Details

    • log

      @Nonnull private final org.slf4j.Logger log
      Class logger.
    • template

      @NonnullAfterInit private Template template
      Template to be evaluated.
    • templateText

      @NonnullAfterInit private String templateText
      Text of template to be evaluated.
    • engine

      @NonnullAfterInit private org.apache.velocity.app.VelocityEngine engine
      VelocityEngine.
    • paramEscaper

      @Nonnull private final Escaper paramEscaper
      Escaper for form parameters.
    • fragmentEscaper

      @Nonnull private final Escaper fragmentEscaper
      Escaper for fragments.
    • pathEscaper

      @Nonnull private final Escaper pathEscaper
      Escaper for path segments.
    • customObject

      @Nullable private Object customObject
      A custom object to inject into the template.
  • Constructor Details

    • TemplatedStringLookupStrategy

      public TemplatedStringLookupStrategy()
      Constructor.
  • Method Details