'Fetching Http Request Details from a diff thread

I'm trying to fetch the request details using the following code.

HttpServletRequest request = 
        ((ServletRequestAttributes)RequestContextHolder.getRequestAttributes())
                .getRequest();

But this only works from the Http thread but from a diff thread. How can i fetch these details from a diff thread?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source