public interface SearchQueryHandler
The SearchQueryHandler
interface is implemented by classes
that define a mapping between a HTML search form and a specific search engine
query object.
An implementation of this interface class is passed as a paramter
(string value, i.e. "neo.util.taglib.search.DefaultSearchQueryHandler")
to the tag neo.taglib.search.SearchQueryHandlerTag
. For more
information on this tag, see its taglib documentation.
Modifier and Type | Method and Description |
---|---|
void |
addParameter(String key,
Object value)
This method adds a search parameter to the search query object created
by
buildSearchQuery . |
void |
buildSearchQuery(javax.servlet.ServletRequest request)
This method builds a search query object based on known parameters
found in the
ServletRequest object passed to this method. |
HashMap |
getLucyQuery()
Returns the search query object was created by the method
buildSearchQuery . |
String |
getUrlParams()
A method that returns the HTML search form parameters as an URL
encoded parameter
String . |
String |
getUrlParams(String pageNo)
Deprecated.
Dont use this, use
getUrlParams() |
boolean |
isSectionSelected(int sectionId) |
void buildSearchQuery(javax.servlet.ServletRequest request)
This method builds a search query object based on known parameters
found in the ServletRequest
object passed to this method.
request
- An object holding the parameters sent from a HTML search
form.void addParameter(String key, Object value)
buildSearchQuery
.key
- a String
value for the key namevalue
- an Object
value referenced by corresponding
parameter key
.HashMap getLucyQuery()
buildSearchQuery
.HashMap
value that contains a search engine
query parameters.String getUrlParams()
A method that returns the HTML search form parameters as an URL
encoded parameter String
.
String
valueString getUrlParams(String pageNo)
getUrlParams()
A method that returns the HTML search form parameters as an URL
encoded parameter String
.
The pageNo
parameter specifies which page number
the search query should include. If it is set to null
,
then it will not be included.
String
valueboolean isSectionSelected(int sectionId)
© 1998- 2021 Escenic AS