Hi Sergey, I agree. I made the change. You can use this code to get the HttpServletRequest:
ServletExecutionContext.getHttpServletRequest(executionContext); Hope this works.. Markus On Fri, Jan 14, 2011 at 8:10 PM, Sergey Lyakhov <[email protected]>wrote: > Hello Markus, > > I need to pass an auth token (as HTTP header) to IdAS Proxy Messaging > Targets. I see there is ExecutionContext in AbstractMessagingTarget, so any > ResourceHandler implementation has an access to this ExecutionContext. > However, execution context is hidden by AbstractMessagingTarget, and not > available to pass HTTP headers from EndpointServlet (in particular) to > handlers. Suppose, it would be helpful to add ExecutionContext param to > MessagingTarget.execute(MessageEnvelope, MessageResult) method: > MessagingTarget.execute(MessageEnvelope, MessageResult, ExecutionContext). > As a result, any external data (HTTPRequest in my case) could be passed to > handlers using ExecutionContext. What do you think about this little > refactoring? > > Thanks, > Sergey Lyakhov >
_______________________________________________ higgins-dev mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/higgins-dev
