Apama 10.3 | Apama Documentation | Connecting Apama Applications to External Components | Standard Connectivity Plug-ins | The HTTP Client Transport Connectivity Plug-in | Mapping events between EPL and HTTP client requests | Providing HTTP query parameters
Providing HTTP query parameters
HTTP requests can contain request parameters, which are encoded at the end of the URL in the following form:
The request parameters can be provided as part of the metadata.http.path element in a request. In this case, however, they must be correctly encoded within the request.
A better solution is to provide the request parameters as part of the metadata.http.queryString element. This is a map of key/value pairs which will be correctly HTTP encoded and appended to the end of the metadata.http.path in the request. The parameters can either be set as a map directly out of the payload, or they can be set individually via the Mapper codec. For example:
- mapperCodec:
# set one query parameter individually
- metadata.http.queryString.param: payload.paramValue
# alternatively set all query parameters from an EPL dictionary
- metadata.http.queryString: payload.parameters

Copyright © 2013-2018 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.