|
|||||||||
| 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.AppLevelHandler
public class AppLevelHandler
Detects the level of a Web application. *
| Field Summary | |
|---|---|
static ArrayList |
anchorwithText1
|
static ArrayList |
anchorwithText2
|
| Constructor Summary | |
|---|---|
AppLevelHandler()
|
|
| Method Summary | |
|---|---|
boolean |
checkGermanMonthName(String month)
Check if Month name is in German Language. |
boolean |
checkIfMonth(String month)
|
boolean |
checkLinkinRelated(String templink,
String[][] templist)
Check if current link is already extracted. |
int |
detectpostlevel(String expression)
Dectect the Post Level. |
int |
detectWebForumlevel(String expression)
The following function detect web application Forum's level |
int |
detectWebthreadlevel(String detectedcms,
String expression)
The following method detect the Thread level. |
Date |
getDateFromString(String DateAsString)
|
String |
getIdOfMonth(String name)
|
void |
getoutlinks(LinkType type)
This will get the set of links from current Web page. |
void |
getUnWAoutlinks(LinkType type)
Extract links from the Web application which are not detected with the system. |
String[] |
parseDate(String date)
|
String[] |
parseDate2(String date)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static ArrayList anchorwithText1
public static ArrayList anchorwithText2
| Constructor Detail |
|---|
public AppLevelHandler()
| Method Detail |
|---|
public boolean checkGermanMonthName(String month)
month - Month name as a String
public boolean checkIfMonth(String month)
public boolean checkLinkinRelated(String templink,
String[][] templist)
templink - newly found linktemplist - collection of links
public int detectpostlevel(String expression)
throws ParserConfigurationException,
SAXException,
IOException,
XPathExpressionException,
org.htmlcleaner.XPatherException
expression - Xpath expression.
ParserConfigurationException
SAXException
IOException
XPathExpressionException
org.htmlcleaner.XPatherException
public int detectWebForumlevel(String expression)
throws ParserConfigurationException,
SAXException,
IOException,
XPathExpressionException,
org.htmlcleaner.XPatherException
expression - XPath expression
ParserConfigurationException
SAXException
IOException
XPathExpressionException
org.htmlcleaner.XPatherException
public int detectWebthreadlevel(String detectedcms,
String expression)
throws ParserConfigurationException,
SAXException,
IOException,
XPathExpressionException,
org.htmlcleaner.XPatherException
ParserConfigurationException
SAXException
IOException
XPathExpressionException
org.htmlcleaner.XPatherExceptionpublic Date getDateFromString(String DateAsString)
public String getIdOfMonth(String name)
public void getoutlinks(LinkType type)
throws XPathExpressionException,
ParserConfigurationException,
IOException,
org.htmlcleaner.XPatherException,
SAXException
type - Type of Link.
XPathExpressionException
ParserConfigurationException
IOException
org.htmlcleaner.XPatherException
SAXException
public void getUnWAoutlinks(LinkType type)
throws XPathExpressionException,
ParserConfigurationException,
IOException,
org.htmlcleaner.XPatherException,
SAXException
type - Link type, in this case unknown
XPathExpressionException
ParserConfigurationException
IOException
org.htmlcleaner.XPatherException
SAXExceptionpublic String[] parseDate(String date)
public String[] parseDate2(String date)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||