Apama 10.15.0 | Connecting Apama Applications to External Components | Standard Connectivity Plug-ins | The HTTP Server Transport Connectivity Plug-in | Mapping events between EPL and HTTP server requests | Providing HTTP query parameters
 
Providing HTTP query parameters
HTTP requests can be set to contain request parameters, which are encoded at the end of the URL in the following form:
/path?key=value&key=value
The request parameters are decoded and added to the metadata.http.queryString map as key-value pairs. The parameters can either be mapped to a dictionary field in an event, or a specific named parameter can be mapped to a single field. For example:
- mapperCodec:
Request:
towardsHost:
mapFrom:
# set one query parameter individually
- payload.paramValue: metadata.http.queryString.param
# alternatively set all query parameters in an EPL dictionary
- payload.parameters: metadata.http.queryString