Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.18.0
-
None
-
Unknown
Description
Provide support for client side HTTP session handling for different HTTP based consumer endpoints.
An interface (CookieHandler) and two implementations ExchangeCookieHandler and InstanceCookieHandler will be provided in camel-http-common.
The endpoints in the mentioned HTTP based components are extended by a cookieHandler parameter.
If no CookieHandler is defined on the endpoint it will continue working as it did before (without any session support).
An ExchangeCookieHandler will maintain session cookies on exchange basis. If the same URI is called multiple times from the same exchange state will be maintained, different exchanges do not share state. This can be used for stateful services.
An InstanceCookieHandler will maintain session information within it's instance. This means that state will be shared across exchanges. This behaviour is similar to the existing cookieStore parameter for the camel-http4 component (but available for all mentioned components, not only camel-http4)
Attachments
Issue Links
- is related to
-
CAMEL-11658 URISyntaxException in RestletProducer
- Resolved