Question

4
Replies
207
Views
NagarjunC3414 Member since 2017 1 post
NJ Courts
Posted: 1 year ago
Last activity: 1 year 4 months ago
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
Share this page LinkedIn