edu.uoc.pfc.search
Class GoogleSearchGenerator

java.lang.Object
  extended by edu.uoc.pfc.search.SearchGenerator
      extended by edu.uoc.pfc.search.GoogleSearchGenerator

public class GoogleSearchGenerator
extends SearchGenerator

Classe encarregada d'enviar consultes al motor de cerca Google amb el format de les urls de consulta de Google i de tornar el resultat.

Author:
Rubén Salvador Gareta

Field Summary
static String DOMAIN
          Domini de Google.
 
Constructor Summary
GoogleSearchGenerator()
          Mètode constructor.
 
Method Summary
 String getQueryResult(String query)
          Mètode encarregat de configurar la URL de consulta de Google i de tornar la resposta de la cerca sobre el motor de cerca.
 
Methods inherited from class edu.uoc.pfc.search.SearchGenerator
sendQuery
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DOMAIN

public static String DOMAIN
Domini de Google.

Constructor Detail

GoogleSearchGenerator

public GoogleSearchGenerator()
Mètode constructor.

Method Detail

getQueryResult

public String getQueryResult(String query)
                      throws SearchGeneratorException
Mètode encarregat de configurar la URL de consulta de Google i de tornar la resposta de la cerca sobre el motor de cerca.

Specified by:
getQueryResult in class SearchGenerator
Parameters:
query - Cerque que l'usuari desitja realitzar.
Returns:
Resposta de la cerca.
Throws:
SearchGeneratorException