From c1426a43cdf1cc2b33b90fea325b4b0bb26018cf Mon Sep 17 00:00:00 2001 From: jdo Date: Thu, 6 Jul 2023 13:03:22 -0700 Subject: [PATCH] [ROCKSOLID-10811] Update code template reference to use non-deprecated version for the Get HTTP Request Parameter method --- .../connect/connectors/http/HttpListenerCodeTemplatePlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/com/mirth/connect/connectors/http/HttpListenerCodeTemplatePlugin.java b/client/src/com/mirth/connect/connectors/http/HttpListenerCodeTemplatePlugin.java index 77ce4cf4b9..98484190b8 100644 --- a/client/src/com/mirth/connect/connectors/http/HttpListenerCodeTemplatePlugin.java +++ b/client/src/com/mirth/connect/connectors/http/HttpListenerCodeTemplatePlugin.java @@ -33,7 +33,7 @@ public Map> getReferenceItems() { httpListenerFunctionsList.add(new CodeTemplate("Get HTTP Request Method", CodeTemplateType.DRAG_AND_DROP_CODE, CodeTemplateContextSet.getConnectorContextSet(), "sourceMap.get('method')", "Retrieves the method (e.g. GET, POST) from an incoming HTTP request.")); httpListenerFunctionsList.add(new CodeTemplate("Get HTTP Request Context Path", CodeTemplateType.DRAG_AND_DROP_CODE, CodeTemplateContextSet.getConnectorContextSet(), "sourceMap.get('contextPath')", "Retrieves the context path from an incoming HTTP request.")); httpListenerFunctionsList.add(new CodeTemplate("Get HTTP Request Header", CodeTemplateType.DRAG_AND_DROP_CODE, CodeTemplateContextSet.getConnectorContextSet(), "sourceMap.get('headers').getHeader('Header-Name')", "Retrieves a header value from an incoming HTTP request.")); - httpListenerFunctionsList.add(new CodeTemplate("Get HTTP Request Parameter", CodeTemplateType.DRAG_AND_DROP_CODE, CodeTemplateContextSet.getConnectorContextSet(), "sourceMap.get('parameters').get('parameterName')", "Retrieves a query/form parameter from an incoming HTTP request. If multiple values exist for the parameter, an array will be returned.")); + httpListenerFunctionsList.add(new CodeTemplate("Get HTTP Request Parameter", CodeTemplateType.DRAG_AND_DROP_CODE, CodeTemplateContextSet.getConnectorContextSet(), "sourceMap.get('parameters').getParameter('parameterName')", "Retrieves a query/form parameter from an incoming HTTP request. If multiple values exist for the parameter, an array will be returned.")); httpListenerFunctionsList.add(new CodeTemplate("Convert HTTP Payload to XML", CodeTemplateType.DRAG_AND_DROP_CODE, CodeTemplateContextSet.getGlobalContextSet(), "HTTPUtil.httpBodyToXml(httpBody, contentType)", "Serializes an HTTP request body into XML. Multipart requests will also automatically be parsed into separate XML nodes. The body may be passed in as a string or input stream.")); referenceItems.put("HTTP Listener Functions", httpListenerFunctionsList);