HTTP Report execution using HTTP API

0

Hi,

I recently started upgrade to JRS 5.0.1 from 4.5.0. We execute reports using HTTP API. Most of our reports use web services to fetch data which is implemented using JRDataSource. In 4.5.0, we were able to retrieve HttpServletRequest using code snippet
private HttpServletRequest getHttpServletRequest() {
    HttpServletRequest request = null;
    ServletRequestAttributes attrs = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
    if(attrs != null) {
        request = attrs.getRequest();
    }
    return request;
}

This method returns null in 5.0.1. Does anyone know how to retrieve this request object in JRDataSource implementation.

Thanks,

atiquek's picture
38
Joined: Nov 16 2011 - 10:31pm
Last seen: 5 years 11 months ago

0 Answers:

No answers yet
Feedback