public boolean verify(String sLink, boolean bSilent)
{
setLink(sLink);
Document doc;
try {
SoupProxy proxy = new SoupProxy();
doc = proxy.getDocument(m_sLink);
m_doc = doc;
m_remoteUrl = proxy.getUrl();
}
catch (JCException e) {
m_ow.addLine(e.getMessage());
return false;
}
if (!bSilent)
println(PbnTools.m_res.getString("msg.documentLoaded"));
if (!checkGenerator(doc, "KoPS2www, JFR 2005", bSilent))
return false;
if (getOneTag(doc, "frame[src=wyn.html]", bSilent) == null)
return false;
if (getOneTag(doc, "frame[src=roz.html]", bSilent) == null)
return false;
getTitleAndDir();
// download 2 frames
try {
SoupProxy proxy = new SoupProxy();
m_docWyn = proxy.getDocument(getBaseUrl(m_sLink) + "wyn.html");
m_docRoz = proxy.getDocument(getBaseUrl(m_sLink) + "roz.html");
}
catch (JCException e) {
m_ow.addLine(e.getMessage());
return false;
}