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 | Dealing with cookies
 
Dealing with cookies
The HTTP server stores cookies in metadata.http.cookies.keyname entries.
In requests, the HTTP server takes any number of HTTP Cookie headers and turns them into corresponding metadata.http.cookies entries. You can either map the entire set of cookies to a dictionary field in an event, or you can map a specific cookie key to a field in an event.
In responses, the HTTP server adds Set-Cookie headers for each entry in metadata.http.cookies. You must use the Mapper codec to map things from your response events into the metadata entries.