fr.paris.telecomParisTech.dbWEB.arcomem.wp5.appliocationAwareHelper.environmentsetting
Class SystemLevel

java.lang.Object
  extended by fr.paris.telecomParisTech.dbWEB.arcomem.wp5.appliocationAwareHelper.environmentsetting.SystemLevel

public class SystemLevel
extends Object

Sets the environment that stay alive until application-aware helper system is running.


Field Summary
static ArrayList detect_pred
          Predicate from Knowledgebase.
static ArrayList detect_rules
          Web application detection rules.
static edu.berkeley.cs.db.yfilter.filter.EXfilterBasic filtertest
          Yfliter filtering system Object.
static File KBFile
          File object for application-aware helper knowlwgebase
static InputStream kbStream
          Knowledgebase as Stream.
static ArrayList parse_detect_rules
          Parsed web application detection rules.
static File predFile
          Predicate file object.
static InputStream predStream
          Queries predicate as stream
static InputStream QStream
          Queries as a stream.
static File queriesFile
          Object of the Quereis file.
static ArrayList queryList
          List of Queries.
static RdfStore storeObj
          RdfStore object.
 
Constructor Summary
SystemLevel()
          Sole constructor.
 
Method Summary
static void close()
          Dealloacte resources occupied by Application-aware Helper System.
 String detectWA_with_NFA(File webResource)
          Detects Web Application using Yfilter filtering system which is based on NFA machine.
static void disconnectConnectionRDFStore()
          Disconnect connection from RDF store.
 void establishConnectionRDFStore()
          Establish Connection with RDF store.
static void freeVariable()
          Free variables that are used by DocumentLevel.
 void loadFilteringSystem()
          This method will load the filtering System by creating the NFA with set of Queries needs to detect the web application
 void loadKB()
          This method will load the KB.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

detect_pred

public static ArrayList detect_pred
Predicate from Knowledgebase.


detect_rules

public static ArrayList detect_rules
Web application detection rules.


filtertest

public static edu.berkeley.cs.db.yfilter.filter.EXfilterBasic filtertest
Yfliter filtering system Object.


KBFile

public static File KBFile
File object for application-aware helper knowlwgebase


kbStream

public static InputStream kbStream
Knowledgebase as Stream.


parse_detect_rules

public static ArrayList parse_detect_rules
Parsed web application detection rules.


predFile

public static File predFile
Predicate file object.


predStream

public static InputStream predStream
Queries predicate as stream


QStream

public static InputStream QStream
Queries as a stream.


queriesFile

public static File queriesFile
Object of the Quereis file.


queryList

public static ArrayList queryList
List of Queries.


storeObj

public static RdfStore storeObj
RdfStore object.

Constructor Detail

SystemLevel

public SystemLevel()
            throws XPathExpressionException,
                   XPathFactoryConfigurationException,
                   ParserConfigurationException,
                   SAXException,
                   IOException
Sole constructor. (For invocation by subclass constructors, typically implicit.).
This will set the System Environment.

Throws:
XPathExpressionException
XPathFactoryConfigurationException
ParserConfigurationException
SAXException
IOException
Method Detail

close

public static void close()
                  throws IOException
Dealloacte resources occupied by Application-aware Helper System.

Throws:
IOException

detectWA_with_NFA

public String detectWA_with_NFA(File webResource)
                         throws IOException,
                                XPathExpressionException,
                                ParserConfigurationException,
                                SAXException,
                                org.htmlcleaner.XPatherException
Detects Web Application using Yfilter filtering system which is based on NFA machine.

Parameters:
webResource - A given Web page
Returns:
Id of the detected Content Management System
Throws:
IOException
XPathExpressionException
ParserConfigurationException
SAXException
org.htmlcleaner.XPatherException

disconnectConnectionRDFStore

public static void disconnectConnectionRDFStore()
Disconnect connection from RDF store.


establishConnectionRDFStore

public void establishConnectionRDFStore()
Establish Connection with RDF store.


freeVariable

public static void freeVariable()
                         throws IOException
Free variables that are used by DocumentLevel.

Throws:
IOException

loadFilteringSystem

public void loadFilteringSystem()
                         throws IOException
This method will load the filtering System by creating the NFA with set of Queries needs to detect the web application

Throws:
IOException

loadKB

public void loadKB()
            throws ParserConfigurationException,
                   SAXException,
                   IOException,
                   XPathExpressionException,
                   XPathFactoryConfigurationException
This method will load the KB.

Throws:
ParserConfigurationException
SAXException
IOException
XPathExpressionException
XPathFactoryConfigurationException