Stephan Siano created CAMEL-10392:

             Summary: HTTP session handling in Camel routes
                 Key: CAMEL-10392
             Project: Camel
          Issue Type: Improvement
          Components: camel-ahc, camel-cxf, camel-http-common, camel-http4, 
camel-jetty, camel-netty4-http, camel-restlet, camel-undertow
    Affects Versions: 2.18.0
            Reporter: Stephan Siano
            Assignee: Stephan Siano

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)

This message was sent by Atlassian JIRA

Reply via email to