Class Parameters

java.lang.Object
com.swiftmq.impl.streams.Parameters

public class Parameters extends Object
Encapsulates the Parameters for a Script
Author:
IIT Software GmbH, Muenster/Germany, (c) 2017, All Rights Reserved
  • Method Details

    • get

      public String get(String name)
      Returns the parameter value for this name.
      Parameters:
      name - parameter name
      Returns:
      value or null if not defined
    • require

      public String require(String name) throws Exception
      Returns a required paremeter with this name. Throws an exception if not defined.
      Parameters:
      name - parameter name
      Returns:
      value
      Throws:
      Exception - if not defined
    • optional

      public String optional(String name, String defaultValue)
      Returns an optional parameter. Returns the default value if not defined.
      Parameters:
      name - parameter name
      defaultValue - default value
      Returns:
      value