What is the ‘canonical’ way to access the MessageContext from a PayloadEndpoint?
We are using PayloadEndpoint and AbstractMarshallingPayloadEndpoint which do not expose the MessageContext to their invoke / invokeinternal methods, but will now need to access the HTTP request parameters.
Easiest way I can think of: create a ‘wrapper’ endpoint which implements MessageEndpoint. Then you can extract your request parameters and pass them down to your actual endpoint.
You could store the request variables in a ThreadLocal so the original endpoint can access them.