public abstract class AbstractResponse extends AbstractSdxObject
SdxObject.ConfigurationNode
Modifier and Type | Field and Description |
---|---|
protected int |
_count |
protected int |
_hitsPerPage
The number of results to show per page.
|
protected int |
_nbPages
The maximum number of pages
|
protected SearchLocations |
_searchLocations
The indices where the results come from.
|
static int |
HITS_PER_PAGE
The default number of documents to show per page.
|
static int |
HPP_ALL_HITS |
_configuration, _context, _description, _encoding, _id, _locale, _logger, _manager, _xmlizable_objects, _xmlLang, isToSaxInitialized
DEFAULT_ENCODING
Constructor and Description |
---|
AbstractResponse() |
Modifier and Type | Method and Description |
---|---|
int |
count() |
abstract int |
countPages() |
int |
getHitsPerPage() |
int |
getNbPages() |
SearchLocations |
getSearchLocations() |
protected boolean |
initToSax()
Init the LinkedHashMap _xmlizable_objects with the objects in order to describ them in XML
|
protected void |
initVolatileObjectsToSax()
Init the LinkedHashMap _xmlizable_volatile_objects with the objects in order to describ them in XML
Some objects need to be refresh each time a toSAX is called
|
void |
setAllHits() |
void |
setHitsPerPage(int hpp) |
protected void |
setNbPages(int nb) |
void |
setSearchLocations(SearchLocations searchLocations) |
configure, configureDescription, contextualize, enableLogging, getBaseAttributes, getClassNameSuffix, getConfiguration, getContext, getDescription, getEncoding, getId, getLocale, getLog, getServiceManager, getXmlLang, service, setDescription, setEncoding, setId, setLocale, setUpSdxObject, setUpSdxObject, setXmlLang, toSAX, verifyConfigurationResources
public static final int HPP_ALL_HITS
public static final int HITS_PER_PAGE
protected int _nbPages
protected int _hitsPerPage
protected SearchLocations _searchLocations
protected int _count
public int getHitsPerPage()
public int getNbPages()
public SearchLocations getSearchLocations()
public int count()
public void setSearchLocations(SearchLocations searchLocations)
public abstract int countPages()
public void setHitsPerPage(int hpp)
protected void setNbPages(int nb)
public void setAllHits()
protected boolean initToSax()
AbstractSdxObject
initToSax
in class AbstractSdxObject
protected void initVolatileObjectsToSax()
initVolatileObjectsToSax
in class AbstractSdxObject
Copyright © 2000-2010 Ministere de la culture et de la communication / AJLSM. All Rights Reserved.