I am looking to intercept Jetty HTTP endpoint where the Camel route is starting from.
My Camel route is as followed:
I want to be able to read the SSL details for which I need HttpServletRequest object.
How do I intercept "jetty:https://0.0.0.0:8183..........." endpoint with HttpServletRequest object where I can get the value for "javax.servlet.request.X509Certificate" attribute ???
Appreciate your response.
You can get access to the HttpServletRequest by
HttpServletRequest req = exchange.getIn(HttpMessage.class).getRequest(); ...
And import org.apache.camel.component.http.HttpMessage class.