Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[higgins-dev] ExecutionContext in XDI4J

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


Back to the top