fr.paris.telecomParisTech.dbWEB.arcomem.wp5.appliocationAwareHelper.crawling
Class WebForumHandler

java.lang.Object
  extended by fr.paris.telecomParisTech.dbWEB.arcomem.wp5.appliocationAwareHelper.crawling.WebForumHandler

public class WebForumHandler
extends Object

Handles Web Forum type of Web applications. Web Forum is also known as discussion boards, or Internet forum, or message boards.


Field Summary
 AppLevelHandler instanceme
           
 CommonUtil xpathInstance
          Declares Object of CommonUtil class.
 
Constructor Summary
WebForumHandler()
          Sole constructor.
 
Method Summary
 Boolean checkExecuteNavigation(String action, File htmlFile, String identifier, String objects)
          Check if Page navigation detected if yes then Execute
 ArrayList extractresult_VBulletin_phpBB(String identifier, String objects)
          Extracts the Objects from Post level for VBulletin and PhpBB
type of Web Applications
 void pageNavigation(File htmlFile, String identifier, String objects)
          copy navigaation pattern from KB and execute
 void returnfile(URL url)
          Download, clean and return the newly navigated Web page
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instanceme

public AppLevelHandler instanceme

xpathInstance

public CommonUtil xpathInstance
Declares Object of CommonUtil class.

Constructor Detail

WebForumHandler

public WebForumHandler()
Sole constructor.

Method Detail

checkExecuteNavigation

public Boolean checkExecuteNavigation(String action,
                                      File htmlFile,
                                      String identifier,
                                      String objects)
                               throws SAXException,
                                      IOException,
                                      XPathExpressionException,
                                      ParserConfigurationException,
                                      org.htmlcleaner.XPatherException,
                                      gr.ntua.h2rdf.bytes.NotSupportedDatatypeException
Check if Page navigation detected if yes then Execute

Parameters:
action - navigation pattern
htmlFile - Html file reference
identifier - Main detection pattern
objects - Expressuin for object extraction
Returns:
True if Page detection found
Throws:
SAXException
IOException
XPathExpressionException
ParserConfigurationException
org.htmlcleaner.XPatherException
gr.ntua.h2rdf.bytes.NotSupportedDatatypeException

extractresult_VBulletin_phpBB

public ArrayList extractresult_VBulletin_phpBB(String identifier,
                                               String objects)
                                        throws ParserConfigurationException,
                                               SAXException,
                                               IOException,
                                               XPathExpressionException,
                                               org.htmlcleaner.XPatherException,
                                               gr.ntua.h2rdf.bytes.NotSupportedDatatypeException
Extracts the Objects from Post level for VBulletin and PhpBB
type of Web Applications

Parameters:
identifier - crawling action
objects - Object that needs to be extracted
Returns:
extracted object
Throws:
ParserConfigurationException
SAXException
IOException
XPathExpressionException
org.htmlcleaner.XPatherException
gr.ntua.h2rdf.bytes.NotSupportedDatatypeException

pageNavigation

public void pageNavigation(File htmlFile,
                           String identifier,
                           String objects)
                    throws XPathExpressionException,
                           ParserConfigurationException,
                           SAXException,
                           IOException,
                           org.htmlcleaner.XPatherException,
                           gr.ntua.h2rdf.bytes.NotSupportedDatatypeException
copy navigaation pattern from KB and execute

Parameters:
htmlFile - HTML reference
identifier - detection pattern
objects - expression to extract objects
Throws:
XPathExpressionException
ParserConfigurationException
SAXException
IOException
org.htmlcleaner.XPatherException
gr.ntua.h2rdf.bytes.NotSupportedDatatypeException

returnfile

public void returnfile(URL url)
                throws IOException
Download, clean and return the newly navigated Web page

Parameters:
url - Newly found URL after navigation
Throws:
IOException