public class SaxGeneralDataSearchComponent extends Object implements SearchComponent, Configurable
SearchComponent
executing in two parts: opening 'search' tag and SAXing general data, then closing 'search' tag.Modifier and Type | Field and Description |
---|---|
private static String |
__IS_AJAX_PARAMETER_NAME |
private int |
_part |
DISABLE_DEFAULT_SAX_PARAMETER_NAME, MAX_PRIORITY, MIN_PRIORITY, SEARCH_PRIORITY
Constructor and Description |
---|
SaxGeneralDataSearchComponent() |
Modifier and Type | Method and Description |
---|---|
void |
configure(Configuration configuration) |
void |
execute(SearchComponentArguments args)
Executes the component.
|
int |
priority()
Get the priority of the component.
|
protected void |
saxAdditionalInfos(SearchComponentArguments args)
Generate any additional information.
|
protected void |
saxAdditionalParameters(SearchComponentArguments args)
Generate the value of the
AdditionalSearchServiceParameter s |
protected void |
saxCacheable(SearchComponentArguments args,
ZoneItem zoneItem)
Generate the "cacheable" status of the service instance
|
protected void |
saxRSSFeedURL(ContentHandler contentHandler,
SearchServiceInstance serviceInstance,
ZoneItem zoneItem)
Generate the URL for RSS feed
|
protected void |
saxServiceIdentifiers(SearchComponentArguments args,
ZoneItem zoneItem)
Generate the service identifiers: service group ID, ZoneItem ID, ...
|
boolean |
supports(SearchComponentArguments args)
Returns
true if the component must be executed . |
private static final String __IS_AJAX_PARAMETER_NAME
private int _part
public SaxGeneralDataSearchComponent()
public void configure(Configuration configuration) throws ConfigurationException
configure
in interface Configurable
ConfigurationException
public int priority()
SearchComponent
priority
in interface SearchComponent
public boolean supports(SearchComponentArguments args)
SearchComponent
true
if the component must be executed
.supports
in interface SearchComponent
args
- the argumentstrue
if the component must be executed
.public void execute(SearchComponentArguments args) throws Exception
SearchComponent
execute
in interface SearchComponent
args
- the argumentsException
- if an exception occurs. Other search components will be attempted to be executedprotected void saxServiceIdentifiers(SearchComponentArguments args, ZoneItem zoneItem) throws SAXException, IOException, ProcessingException
args
- The argumentszoneItem
- The zone itemSAXException
- if an error occurs SAXing data.IOException
- if an error occurs SAXing data.ProcessingException
- if a processing error occurs.protected void saxCacheable(SearchComponentArguments args, ZoneItem zoneItem) throws SAXException
args
- The argumentszoneItem
- The zone itemSAXException
- if an error occurs SAXing data.protected void saxAdditionalParameters(SearchComponentArguments args) throws SAXException
AdditionalSearchServiceParameter
sargs
- The argumentsSAXException
- if an error occurs SAXing data.protected void saxAdditionalInfos(SearchComponentArguments args) throws SAXException, IOException, ProcessingException
args
- The argumentsSAXException
- if an error occurs SAXing data.IOException
- if an error occurs SAXing data.ProcessingException
- if a processing error occurs.protected void saxRSSFeedURL(ContentHandler contentHandler, SearchServiceInstance serviceInstance, ZoneItem zoneItem) throws SAXException
contentHandler
- The content handlerserviceInstance
- The service instancezoneItem
- The zone itemSAXException
- if an error occurs SAXing data.