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

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

public class AppLevelHandler
extends Object

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

anchorwithText1

public static ArrayList anchorwithText1

anchorwithText2

public static ArrayList anchorwithText2
Constructor Detail

AppLevelHandler

public AppLevelHandler()
Method Detail

checkGermanMonthName

public boolean checkGermanMonthName(String month)
Check if Month name is in German Language.

Parameters:
month - Month name as a String
Returns:
True if given month is in German language else false

checkIfMonth

public boolean checkIfMonth(String month)

checkLinkinRelated

public boolean checkLinkinRelated(String templink,
                                  String[][] templist)
Check if current link is already extracted.

Parameters:
templink - newly found link
templist - collection of links
Returns:
true if already exists else false

detectpostlevel

public int detectpostlevel(String expression)
                    throws ParserConfigurationException,
                           SAXException,
                           IOException,
                           XPathExpressionException,
                           org.htmlcleaner.XPatherException
Dectect the Post Level.

Parameters:
expression - Xpath expression.
Returns:
1 if level found else 0
Throws:
ParserConfigurationException
SAXException
IOException
XPathExpressionException
org.htmlcleaner.XPatherException

detectWebForumlevel

public int detectWebForumlevel(String expression)
                        throws ParserConfigurationException,
                               SAXException,
                               IOException,
                               XPathExpressionException,
                               org.htmlcleaner.XPatherException
The following function detect web application Forum's level

Parameters:
expression - XPath expression
Returns:
1 if level found else 0
Throws:
ParserConfigurationException
SAXException
IOException
XPathExpressionException
org.htmlcleaner.XPatherException

detectWebthreadlevel

public int detectWebthreadlevel(String detectedcms,
                                String expression)
                         throws ParserConfigurationException,
                                SAXException,
                                IOException,
                                XPathExpressionException,
                                org.htmlcleaner.XPatherException
The following method detect the Thread level.

Returns:
1 if found else 0
Throws:
ParserConfigurationException
SAXException
IOException
XPathExpressionException
org.htmlcleaner.XPatherException

getDateFromString

public Date getDateFromString(String DateAsString)

getIdOfMonth

public String getIdOfMonth(String name)

getoutlinks

public void getoutlinks(LinkType type)
                 throws XPathExpressionException,
                        ParserConfigurationException,
                        IOException,
                        org.htmlcleaner.XPatherException,
                        SAXException
This will get the set of links from current Web page.

Parameters:
type - Type of Link.
Throws:
XPathExpressionException
ParserConfigurationException
IOException
org.htmlcleaner.XPatherException
SAXException

getUnWAoutlinks

public void getUnWAoutlinks(LinkType type)
                     throws XPathExpressionException,
                            ParserConfigurationException,
                            IOException,
                            org.htmlcleaner.XPatherException,
                            SAXException
Extract links from the Web application which are not detected with the system.

Parameters:
type - Link type, in this case unknown
Throws:
XPathExpressionException
ParserConfigurationException
IOException
org.htmlcleaner.XPatherException
SAXException

parseDate

public String[] parseDate(String date)

parseDate2

public String[] parseDate2(String date)