Question

4
Replies
219
Views
Close popover
Nagarjun Chevula (NagarjunC3414)
NJ Courts

NJ Courts
US
NagarjunC3414 Member since 2017 1 post
NJ Courts
Posted: March 29, 2019
Last activity: June 3, 2019
Closed
Solved

How to get handle on http response object in java stetp?

PublicAPI tools = null;
PRThread thisThread = (PRThread)ThreadContainer.get();
if (thisThread!= null)
{
tools = thisThread.getPublicAPI();
}
else
{
throw new PRAppRuntimeException("Pega ProCo",0,"Unable to obtain current Thread");
}
javax.servlet.http.HttpServletResponse httpResponse = (javax.servlet.http.HttpServletResponse)tools.getRequestor().getRequestorPage().getObject("pxHTTPServletResponse");

When I used the above code in java step the object httpResponse is coming as null.

Any idea how to get the httpResponse object?

***Edited by Moderator Marissa to update SR Details***

Data Integration SR Exists
Moderation Team has archived post