*/
protected static boolean parseListPagesResponse(InputStream is, XThreadStringBuffer buffer, String startPageTitle, ReturnString lastTitle)
throws ManifoldCFException, ServiceInterruption
{
// Parse the document. This will cause various things to occur, within the instantiated XMLContext class.
XMLStream x = new XMLStream(false);
WikiListPagesAPIContext c = new WikiListPagesAPIContext(x,buffer,startPageTitle);
x.setContext(c);
try
{
try
{
x.parse(is);
String lastTitleString = c.getLastTitle();
lastTitle.returnValue = lastTitleString;
return c.isLoginRequired();
}
catch (IOException e)
{
long time = System.currentTimeMillis();
throw new ServiceInterruption(e.getMessage(),e,time + 300000L,time + 12L * 60000L,-1,false);
}
}
finally
{
x.cleanup();
}
}