|
|||||||||
| 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.crawling.CommonUtil
public class CommonUtil
Extract the relevant crawling action from KB using a relavant XPath expression.
| Field Summary | |
|---|---|
AppLevelHandler |
instanceme
|
| Constructor Summary | |
|---|---|
CommonUtil()
|
|
| Method Summary | |
|---|---|
boolean |
checkExistObject(String check,
ArrayList nameArray)
Check if object is already extracted. |
ArrayList |
copy_KB_detect_rules(String exp,
ArrayList mylist)
Copy the detection rules of all Content Management System in the ArrayList |
ArrayList |
copy_KB_pred_rules(String exp,
ArrayList mylist)
Copy the Predicates relevant to the sub query from the predicate file. |
boolean |
detectPageLevel(String expression)
|
String |
detectWebApplication(String Queryexpression,
ArrayList stringlist)
Check one by one all detected rules for Web application Detection |
String |
extractTitle(String exp)
Extract the title of the Web page. |
void |
getcrawlingaction(String exp)
Get the Relevant crawling Action from KB. |
ArrayList |
getoutlinks(String reg,
ArrayList collectinglinksWithAnchor)
This will get the set of links with anchor text from current Web page. |
ArrayList |
getsetcrawlingaction(String exp)
Extract related crawling actions for given XPath expression. |
ArrayList |
getUnWAoutlinks(String reg,
ArrayList collectinglinksWithAnchor)
Extracts links with anchor |
ArrayList |
Load_Extract_Objects_KB(String objects)
Extracts the Objects name with xpath expression from KB. |
int |
runXpathcheckpage(String exp)
Check whether it is level or not. |
int |
runXpathdetectApp(String xpathexp)
Detect Web application against Expression. |
void |
runXpathdetectAppname(String exp)
Set the Application Name of Detected Content Management System |
ArrayList |
runXpathdetectlevelRules(String exp,
ArrayList mylist)
Copy the Specific level (Forum or Thread or post) detection rules into dynamic arrays. |
void |
runXpathdetectlevelRules(String level,
String exp)
Copy the Specific level (Forum or Thread or post) detection rules into dynamic arrays |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public AppLevelHandler instanceme
| Constructor Detail |
|---|
public CommonUtil()
| Method Detail |
|---|
public boolean checkExistObject(String check,
ArrayList nameArray)
check - nameArray -
public ArrayList copy_KB_detect_rules(String exp,
ArrayList mylist)
throws ParserConfigurationException,
SAXException,
IOException,
XPathExpressionException
exp - expression for copyingmylist - copy the result
XPathExpressionException
ParserConfigurationException
SAXException
IOException
public ArrayList copy_KB_pred_rules(String exp,
ArrayList mylist)
throws ParserConfigurationException,
SAXException,
IOException,
XPathExpressionException
exp - expression for copyingmylist - copy the result
XPathExpressionException
ParserConfigurationException
SAXException
IOException
public boolean detectPageLevel(String expression)
throws XPathExpressionException,
ParserConfigurationException,
SAXException,
IOException,
org.htmlcleaner.XPatherException
XPathExpressionException
ParserConfigurationException
SAXException
IOException
org.htmlcleaner.XPatherException
public String detectWebApplication(String Queryexpression,
ArrayList stringlist)
throws XPathExpressionException,
ParserConfigurationException,
IOException,
org.htmlcleaner.XPatherException,
SAXException
Queryexpression - Expression to be evaluatedstringlist - List of detected rules
XPathExpressionException
ParserConfigurationException
IOException
org.htmlcleaner.XPatherException
SAXException
public String extractTitle(String exp)
throws ParserConfigurationException,
SAXException,
IOException,
XPathExpressionException,
org.htmlcleaner.XPatherException
exp - Xpath expression
ParserConfigurationException
SAXException
IOException
XPathExpressionException
org.htmlcleaner.XPatherException
public void getcrawlingaction(String exp)
throws ParserConfigurationException,
SAXException,
IOException,
XPathExpressionException
exp - XPath Expression
ParserConfigurationException
SAXException
IOException
XPathExpressionException
public ArrayList getoutlinks(String reg,
ArrayList collectinglinksWithAnchor)
throws ParserConfigurationException,
IOException,
org.htmlcleaner.XPatherException,
XPathExpressionException,
SAXException
reg - expressioncollectinglinksWithAnchor - collection of Anchor and Link
ParserConfigurationException
IOException
org.htmlcleaner.XPatherException
XPathExpressionException
SAXException
public ArrayList getsetcrawlingaction(String exp)
throws ParserConfigurationException,
SAXException,
IOException,
XPathExpressionException
exp - XPath expression.
ParserConfigurationException
SAXException
IOException
XPathExpressionException
public ArrayList getUnWAoutlinks(String reg,
ArrayList collectinglinksWithAnchor)
throws ParserConfigurationException,
IOException,
org.htmlcleaner.XPatherException,
XPathExpressionException,
SAXException
reg - expression to extract linkscollectinglinksWithAnchor - collection box for links with anchor
ParserConfigurationException
IOException
org.htmlcleaner.XPatherException
XPathExpressionException
SAXException
public ArrayList Load_Extract_Objects_KB(String objects)
throws XPathExpressionException,
ParserConfigurationException,
SAXException,
IOException
objects - Expression to run over KB for extracting object expression
ParserConfigurationException
SAXException
IOException
XPathExpressionException
org.htmlcleaner.XPatherException
public int runXpathcheckpage(String exp)
throws ParserConfigurationException,
SAXException,
IOException,
XPathExpressionException,
org.htmlcleaner.XPatherException
exp - Xpath expression
ParserConfigurationException
SAXException
IOException
XPathExpressionException
org.htmlcleaner.XPatherException
public int runXpathdetectApp(String xpathexp)
throws ParserConfigurationException,
IOException,
org.htmlcleaner.XPatherException,
XPathExpressionException,
SAXException
xpathexp - Expression
ParserConfigurationException
IOException
org.htmlcleaner.XPatherException
XPathExpressionException
SAXException
public void runXpathdetectAppname(String exp)
throws ParserConfigurationException,
SAXException,
IOException,
XPathExpressionException
exp - XPath expression
ParserConfigurationException
SAXException
IOException
XPathExpressionException
public ArrayList runXpathdetectlevelRules(String exp,
ArrayList mylist)
throws ParserConfigurationException,
SAXException,
IOException,
XPathExpressionException
exp - XPath expression for copyingmylist - copy the result
XPathExpressionException
ParserConfigurationException
SAXException
IOException
public void runXpathdetectlevelRules(String level,
String exp)
throws ParserConfigurationException,
SAXException,
IOException,
XPathExpressionException
level - Level of web applicationexp - copy expression for copying
XPathExpressionException
ParserConfigurationException
SAXException
IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||