no.sesat.search.mode.command
Class AbstractXmlSearchCommand

java.lang.Object
  extended by no.sesat.search.mode.command.AbstractSearchCommand
      extended by no.sesat.search.mode.command.AbstractXmlSearchCommand
All Implemented Interfaces:
Serializable, Callable<ResultList<ResultItem>>, SearchCommand
Direct Known Subclasses:
AbstractYahooSearchCommand, PicSearchCommand, YoutubeSearchCommand

public abstract class AbstractXmlSearchCommand
extends AbstractSearchCommand

Helper base implementation for search commands that are RESTful and have XML responses. The RESTful server is defined through: host: AbstractXmlSearchConfiguration.getHost() port: AbstractXmlSearchConfiguration.getPort()

Version:
$Id: AbstractXmlSearchCommand.java 7225 2009-04-09 00:32:20Z ssmiweve $
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class no.sesat.search.mode.command.AbstractSearchCommand
AbstractSearchCommand.QueryBuilderFactory, AbstractSearchCommand.ReconstructedQuery
 
Nested classes/interfaces inherited from interface no.sesat.search.mode.command.SearchCommand
SearchCommand.Context
 
Field Summary
 
Fields inherited from class no.sesat.search.mode.command.AbstractSearchCommand
completed, context, datamodel, datamodelParameters, DUMP, untransformedQuery
 
Constructor Summary
protected AbstractXmlSearchCommand(SearchCommand.Context cxt)
          Create new xml based command.
 
Method Summary
protected abstract  ResultItem createItem(Element result)
          Each individual result is usually defined within one given Element.
 String createRequestURL()
           
protected  XmlRestful getXmlRestful()
           
protected  void setXmlRestful(XmlRestful restful)
           
 
Methods inherited from class no.sesat.search.mode.command.AbstractSearchCommand
addFilterString, call, constructQueryBuilder, createQuery, createQuery, escape, execute, getCurrentOffset, getEngine, getFieldFilter, getFilter, getFilterBuilder, getOffset, getParameter, getQuery, getQueryBuilder, getQueryRepresentation, getReservedWords, getResultsToReturn, getSearchConfiguration, getSearchResult, getSingleParameter, getTransformedQuery, getTransformedQuerySesamSyntax, getTransformedTerms, getUserSortBy, handleCancellation, initialiseTransformedTerms, isCancelled, isPaginated, isUserSortable, performExecution, performQueryTransformation, performResultHandling, setTransformedQuerySesamSyntax, statisticsInfo, toString, updateTransformedQuerySesamSyntax, visitXorClause
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractXmlSearchCommand

protected AbstractXmlSearchCommand(SearchCommand.Context cxt)
Create new xml based command.

Parameters:
cxt - The context to execute in.
Method Detail

createRequestURL

public String createRequestURL()

createItem

protected abstract ResultItem createItem(Element result)
Each individual result is usually defined within one given Element.

Parameters:
result - the w3c element
Returns:
the ResultItem

getXmlRestful

protected final XmlRestful getXmlRestful()

setXmlRestful

protected final void setXmlRestful(XmlRestful restful)


Copyright © 2005-2009 Schibsted ASA. All Rights Reserved.