Package com.mirth.connect.userutil
Class MessageParameters
java.lang.Object
com.mirth.connect.userutil.MessageParameters
A wrapper around a Map of HTTP parameters that provides convenience methods for accessing
parameter values.
-
Constructor Summary
ConstructorsConstructorDescriptionMessageParameters(Map<String, List<String>> delegate) Instantiates a new MessageParameters object that wraps the given Map of HTTP parameters. -
Method Summary
Modifier and TypeMethodDescriptionbooleanCheck if parameters exist for a given key.Deprecated.This method is deprecated and will soon be removed.getKeys()Get all parameter keys.getParameter(String key) Get the first parameter value for the given key.getParameterList(String key) Get all parameter values for the given key.toString()
-
Constructor Details
-
MessageParameters
Instantiates a new MessageParameters object that wraps the given Map of HTTP parameters.- Parameters:
delegate- The Map of HTTP parameters to wrap.
-
-
Method Details
-
get
Deprecated.This method is deprecated and will soon be removed. Please use getParameter(key) or getParameterList(key) instead.Get the first parameter value for the given key.- Parameters:
key- The name of the parameter key.- Returns:
- The associated value or null if no value exists.
-
getParameter
Get the first parameter value for the given key.- Parameters:
key- The name of the parameter key.- Returns:
- The associated value or null if no value exists.
-
getParameterList
Get all parameter values for the given key.- Parameters:
key- The name of parameter key.- Returns:
- A list of all parameter values for the given key or null if no values exist.
-
getKeys
Get all parameter keys.- Returns:
- A set of all parameter keys.
-
contains
Check if parameters exist for a given key.- Parameters:
key- The name of the parameter key.- Returns:
- true if parameters exist for the given key, false otherwise.
-
toString
-