Question
NJ Judiciary
US
Last activity: 17 Feb 2021 10:12 EST
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***