Package com.swiftmq.impl.streams
Class Parameters
java.lang.Object
com.swiftmq.impl.streams.Parameters
Encapsulates the Parameters for a Script
- Author:
- IIT Software GmbH, Muenster/Germany, (c) 2017, All Rights Reserved
-
Method Summary
-
Method Details
-
get
Returns the parameter value for this name.- Parameters:
name
- parameter name- Returns:
- value or null if not defined
-
require
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
Returns an optional parameter. Returns the default value if not defined.- Parameters:
name
- parameter namedefaultValue
- default value- Returns:
- value
-