Skip to content

Commit

Permalink
Pull request #707: [ROCKSOLID-10811] Update code template reference t…
Browse files Browse the repository at this point in the history
…o use non-deprecated version for the Get HTTP Request Parameter method

Merge in MC/connect from bugfix/ROCKSOLID-10811-code-reference-for-getting-http-request-parameters-use-deprecated-functions to development

* commit 'c1426a43cdf1cc2b33b90fea325b4b0bb26018cf':
  [ROCKSOLID-10811] Update code template reference to use non-deprecated version for the Get HTTP Request Parameter method
  • Loading branch information
jdonextgen authored and narupley committed Jul 6, 2023
2 parents c2c7954 + c1426a4 commit bca27fc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public Map<String, List<CodeTemplate>> 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);

Expand Down

0 comments on commit bca27fc

Please sign in to comment.