public class SearchPart extends BodyTagSupport implements ParameterOwner, Cloneable
SearchPart
offers the search results produced by a SearchProvider
of an Application
.
Attributes (defaults in brackets):
Application
that offers the SearchProvider
SearchProvider
within the applicationAnalyzer
to use for searching<appNG:searchPart application="acme-products" method="productSearchProvider" language="en" title="acme Products" fields="title,contents" analyzerClass="org.apache.lucene.analysis.en.EnglishAnalyzer"> <appNG:param name="foo">bar</appNG:param> <appNG:param name="jin">fizz</appNG:param> </appNG:searchPart>
SearchProvider
,
Serialized FormbodyContent
id, pageContext
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
EVAL_BODY_AGAIN
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
Constructor and Description |
---|
SearchPart() |
Modifier and Type | Method and Description |
---|---|
void |
addParameter(String name,
String value) |
protected SearchPart |
clone() |
int |
doEndTag() |
Analyzer |
getAnalyzer() |
String |
getAnalyzerClass() |
String |
getApplication() |
String |
getFields() |
String |
getLanguage() |
String |
getMethod() |
Map<String,String> |
getParameters() |
String |
getTitle() |
void |
setAnalyzerClass(String analyzerClass) |
void |
setApplication(String application) |
void |
setFields(String fields) |
void |
setLanguage(String language) |
void |
setMethod(String method) |
void |
setTitle(String title) |
String |
toString() |
doAfterBody, doInitBody, doStartTag, getBodyContent, getPreviousOut, release, setBodyContent
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getParent, setPageContext, setParent
public int doEndTag() throws JspException
doEndTag
in interface Tag
doEndTag
in class BodyTagSupport
JspException
public void addParameter(String name, String value)
addParameter
in interface ParameterOwner
public String getApplication()
public void setApplication(String application)
public String getMethod()
public void setMethod(String method)
public String getFields()
public void setFields(String fields)
public String getTitle()
public void setTitle(String title)
public String getLanguage()
public void setLanguage(String language)
public String getAnalyzerClass()
public void setAnalyzerClass(String analyzerClass)
public Analyzer getAnalyzer() throws ReflectiveOperationException
ReflectiveOperationException
protected SearchPart clone()
Copyright © 2011–2017 aiticon GmbH. All rights reserved.