|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfr.paris.telecomParisTech.dbWEB.arcomem.wp5.appliocationAwareHelper.integration.ApplicationAwareHelperImpl
public class ApplicationAwareHelperImpl
Implementation of ApplicationAwareHelper class Interface. It extract structured information from the Web page and return as a object of AugmentedDocument class to the caller.
| Field Summary | |
|---|---|
static BlogHandler |
blogHandle
An object of BlogHandler class. |
static AppLevelHandler |
instance
An object of AppLevelHandler class. |
static Logger |
logger
An object of log4j class. |
static MicroBlogHandler |
microBlogHandle
An object of MicroBlog class. |
static SystemLevel |
system
An object of SystemLevel class. |
static WebForumHandler |
webForumHandle
An object of WebForumHandler class. |
static CommonUtil |
xpathInstance
An object of CommonUtil class. |
| Fields inherited from interface eu.arcomem.framework.aahelper.ApplicationAwareHelper |
|---|
KEY_APPLICATION_AWARE_HELPER_CLASS |
| Constructor Summary | |
|---|---|
ApplicationAwareHelperImpl()
Sole constructor. |
|
| Method Summary | |
|---|---|
void |
ApplicationAwareHelper()
This method perform the main functionalities of Application-aware Helper Module. |
void |
checkBlogLevel()
Try to detect the level of a blog type of Web application. |
void |
checkForumLevel()
Try to detect the level of a Web forum type of Web application. |
void |
checkMicroBlogLevel()
Try to detect the level of a Micro-Blog type of Web application. |
void |
closeSystem()
Close the application-aware helper system. |
void |
detectForumLevel(String expression)
This method calls another method (named detectWebForumlevel) to check whether a given Web page is a type of "list of forums". |
static void |
detectPostLevel(String expression)
This method calls another method (named detectWebForumlevel) to check whether a given Web page is a type of "Post level". |
static void |
detectThreadLevel(String expression)
This method calls another method (named detectWebthreadlevel) to check whether a given Web page is a type of "list of thread". |
AugmentedDocument |
extractStructuredInformation(String url,
String content,
List<String> outLinks)
|
String |
replaceLineBreak(String html)
Replaces existing Line breaks with "" in a given string. |
static void |
searchAndExcuteBlogCrawlingActions()
Search the related Blog list level crawling actions and execute them. |
static void |
searchAndExcuteBlogPostCrawlingActions()
Search the related individual blog level crawling actions and execute them. |
static void |
searchAndExcuteForumCrawlingActions()
Search the related forum level crawling actions and execute them. |
static void |
searchAndExcuteMicroBlogCrawlingActions()
Search the related post level crawling actions for Blog type CMS and execute them. |
static void |
searchAndExcutePostCrawlingActions()
Search the related Post level crawling actions and execute them. |
static void |
searchAndExcuteThreadCrawlingActions()
Search the related Thread level crawling actions and execute them. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static BlogHandler blogHandle
public static AppLevelHandler instance
public static Logger logger
public static MicroBlogHandler microBlogHandle
public static SystemLevel system
public static WebForumHandler webForumHandle
public static CommonUtil xpathInstance
| Constructor Detail |
|---|
public ApplicationAwareHelperImpl()
throws XPathExpressionException,
XPathFactoryConfigurationException,
ParserConfigurationException,
SAXException,
IOException
XPathExpressionException
XPathFactoryConfigurationException
ParserConfigurationException
SAXException
IOException| Method Detail |
|---|
public void ApplicationAwareHelper()
throws XPathFactoryConfigurationException,
org.htmlcleaner.XPatherException,
IOException,
InterruptedException,
XPathExpressionException,
ParserConfigurationException,
SAXException,
gr.ntua.h2rdf.bytes.NotSupportedDatatypeException
XPathFactoryConfigurationException
org.htmlcleaner.XPatherException
IOException
InterruptedException
XPathExpressionException
ParserConfigurationException
SAXException
gr.ntua.h2rdf.bytes.NotSupportedDatatypeException
public void checkBlogLevel()
throws XPathExpressionException,
IOException,
ParserConfigurationException,
SAXException,
org.htmlcleaner.XPatherException,
gr.ntua.h2rdf.bytes.NotSupportedDatatypeException
XPathExpressionException
IOException
ParserConfigurationException
SAXException
org.htmlcleaner.XPatherException
gr.ntua.h2rdf.bytes.NotSupportedDatatypeException
public void checkForumLevel()
throws XPathExpressionException,
IOException,
ParserConfigurationException,
SAXException,
org.htmlcleaner.XPatherException,
gr.ntua.h2rdf.bytes.NotSupportedDatatypeException
XPathExpressionException
IOException
ParserConfigurationException
SAXException
org.htmlcleaner.XPatherException
gr.ntua.h2rdf.bytes.NotSupportedDatatypeException
public void checkMicroBlogLevel()
throws XPathExpressionException,
IOException,
ParserConfigurationException,
SAXException,
org.htmlcleaner.XPatherException
XPathExpressionException
IOException
ParserConfigurationException
SAXException
org.htmlcleaner.XPatherException
public void closeSystem()
throws IOException
IOException
public void detectForumLevel(String expression)
throws XPathExpressionException,
ParserConfigurationException,
SAXException,
IOException
expression - Xpath expression (for now as a string) to copy all Forum level detection rules from KB
XPathExpressionException
ParserConfigurationException
SAXException
IOException
public static void detectPostLevel(String expression)
throws XPathExpressionException,
ParserConfigurationException,
SAXException,
IOException
expression - Xpath expression (for now as a string) to copy all Forum level detection rules from KB
XPathExpressionException
ParserConfigurationException
SAXException
IOException
public static void detectThreadLevel(String expression)
throws XPathExpressionException,
ParserConfigurationException,
SAXException,
IOException
expression - Xpath expression (for now as a string) to copy all Forum level detection rules from KB
XPathExpressionException
ParserConfigurationException
SAXException
IOException
public AugmentedDocument extractStructuredInformation(String url,
String content,
List<String> outLinks)
extractStructuredInformation in interface ApplicationAwareHelperpublic String replaceLineBreak(String html)
html - Html content
public static void searchAndExcuteBlogCrawlingActions()
throws XPathExpressionException,
ParserConfigurationException,
SAXException,
IOException,
org.htmlcleaner.XPatherException
XPathExpressionException
ParserConfigurationException
SAXException
IOException
org.htmlcleaner.XPatherException
public static void searchAndExcuteBlogPostCrawlingActions()
throws XPathExpressionException,
ParserConfigurationException,
SAXException,
IOException,
org.htmlcleaner.XPatherException,
gr.ntua.h2rdf.bytes.NotSupportedDatatypeException
XPathExpressionException
ParserConfigurationException
SAXException
IOException
org.htmlcleaner.XPatherException
gr.ntua.h2rdf.bytes.NotSupportedDatatypeException
public static void searchAndExcuteForumCrawlingActions()
throws XPathExpressionException,
ParserConfigurationException,
SAXException,
IOException,
org.htmlcleaner.XPatherException
XPathExpressionException
ParserConfigurationException
SAXException
IOException
org.htmlcleaner.XPatherException
public static void searchAndExcuteMicroBlogCrawlingActions()
throws XPathExpressionException,
ParserConfigurationException,
SAXException,
IOException,
org.htmlcleaner.XPatherException
XPathExpressionException
ParserConfigurationException
SAXException
IOException
org.htmlcleaner.XPatherException
public static void searchAndExcutePostCrawlingActions()
throws XPathExpressionException,
ParserConfigurationException,
SAXException,
IOException,
org.htmlcleaner.XPatherException,
gr.ntua.h2rdf.bytes.NotSupportedDatatypeException
XPathExpressionException
ParserConfigurationException
SAXException
IOException
org.htmlcleaner.XPatherException
gr.ntua.h2rdf.bytes.NotSupportedDatatypeException
public static void searchAndExcuteThreadCrawlingActions()
throws XPathExpressionException,
ParserConfigurationException,
SAXException,
IOException,
org.htmlcleaner.XPatherException
XPathExpressionException
ParserConfigurationException
SAXException
IOException
org.htmlcleaner.XPatherException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||