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

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

public class BlogHandler
extends Object

Handles Blog type of Web applications. *


Field Summary
 AppLevelHandler instanceme
           
static CommonUtil xpathInstance
           
 
Constructor Summary
BlogHandler()
          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.
 String getPostBodyAsHtml(String expression)
          Get Post Body as HTML.
 
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

BlogHandler

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

Method Detail

extractObjectsFromPost

public ArrayList extractObjectsFromPost(String identifier,
                                        String objects)
                                 throws ParserConfigurationException,
                                        SAXException,
                                        IOException,
                                        XPathExpressionException,
                                        org.htmlcleaner.XPatherException,
                                        gr.ntua.h2rdf.bytes.NotSupportedDatatypeException
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
gr.ntua.h2rdf.bytes.NotSupportedDatatypeException

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:
Blog post creation Date.
Throws:
ParserConfigurationException
SAXException
IOException
XPathExpressionException
org.htmlcleaner.XPatherException

getPostBodyAsHtml

public String getPostBodyAsHtml(String expression)
                         throws IOException,
                                ParserConfigurationException,
                                XPathExpressionException,
                                SAXException
Get Post Body as HTML.

Parameters:
expression - XPath Expression
Returns:
Return Result as String.
Throws:
IOException
ParserConfigurationException
XPathExpressionException
SAXException