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

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

public class MicroBlogHandler
extends Object

Handles Micro Blog type of Web applications.


Field Summary
 AppLevelHandler instanceme
           
static CommonUtil xpathInstance
           
 
Constructor Summary
MicroBlogHandler()
          Sole constructor.
 
Method Summary
 ArrayList extractObjectsFromPost(String identifier, String objects)
          Extracts the Objects from Post level.
 String extractPostBody(String exp)
          Extract post body of Blog's post
 String extractPostDate(String exp)
          Extract the Post Date of the Post
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instanceme

public AppLevelHandler instanceme

xpathInstance

public static CommonUtil xpathInstance
Constructor Detail

MicroBlogHandler

public MicroBlogHandler()
Sole constructor. (For invocation by subclass constructors, typically implicit.).
A handler for Micro-Blog type of Web application.

Method Detail

extractObjectsFromPost

public ArrayList extractObjectsFromPost(String identifier,
                                        String objects)
                                 throws ParserConfigurationException,
                                        SAXException,
                                        IOException,
                                        XPathExpressionException,
                                        org.htmlcleaner.XPatherException
Extracts the Objects from Post level.

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

extractPostBody

public String extractPostBody(String exp)
                       throws ParserConfigurationException,
                              SAXException,
                              IOException,
                              XPathExpressionException,
                              org.htmlcleaner.XPatherException
Extract post body of Blog's post

Parameters:
exp - Xpath expression
Returns:
title of Web page
Throws:
ParserConfigurationException
SAXException
IOException
XPathExpressionException
org.htmlcleaner.XPatherException

extractPostDate

public String extractPostDate(String exp)
                       throws ParserConfigurationException,
                              SAXException,
                              IOException,
                              XPathExpressionException,
                              org.htmlcleaner.XPatherException
Extract the Post Date of the Post

Parameters:
exp - Xpath expression
Returns:
title of Web page
Throws:
ParserConfigurationException
SAXException
IOException
XPathExpressionException
org.htmlcleaner.XPatherException