System.out.println("====================>response control is not null");
for (int i = 0; i < controls.length; i++)
{
if (controls[i] instanceof PagedResultsResponseControl)
{
PagedResultsResponseControl prrc = (PagedResultsResponseControl)controls[i];
System.out.println("page result size: " + prrc.getResultSize());
System.out.println("cookie: " + prrc.getCookie());
}
else
{
// Handle other response controls (if any)
}
}
}
}
}
Control[] controls = ctx.getResponseControls();
if (controls != null)
{
System.out.println("====================>response control is not null");
for (int i = 0; i < controls.length; i++)
{
if (controls[i] instanceof PagedResultsResponseControl)
{
PagedResultsResponseControl prrc = (PagedResultsResponseControl)controls[i];
System.out.println("page result size: " + prrc.getResultSize());
System.out.println("cookie: " + prrc.getCookie());
}
else
{
// Handle other response controls (if any)
}