Class MultipartResolvingVar

Direct Known Subclasses:
CoalesceVar, RequestAttributeVar, RequestFormDataVar, RequestHeaderVar, RequestPathVar, RequestQueryVar, RequestSwaggerVar, RequestVar, SwaggerVar

public abstract class MultipartResolvingVar extends SimpleVar
Interface for the resolution of vars that can have one or more keys where the first non-null resolution is returned.

For example, to resolve the system property "myProperty" but then resolve "myProperty2" if the property doesn't exist: "$S{myProperty1,myProperty2}"

Subclasses must implement the following method:

See Also:
  • Constructor Details

  • Method Details

    • doResolve

      public String doResolve(VarResolverSession session, String s) throws Exception
      Description copied from class: Var
      The method called from VarResolver.

      Can be overridden to intercept the request and do special handling.
      Default implementation simply calls resolve(String).

      Overrides:
      doResolve in class Var
      Parameters:
      session - The session object used for a single instance of a string resolution.
      s - The inside argument of the variable.
      Returns:
      The resolved value.
      Throws:
      Exception - Any exception can be thrown.