|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.endeca.b2creference.services.query.impl.UICLContentQueryService
public class UICLContentQueryService
Creates and submits content queries to the MDEX engine and processes query results.
Constructor Summary | |
---|---|
UICLContentQueryService()
|
Method Summary | |
---|---|
ApplicationConfig |
getApplicationConfig()
|
com.endeca.content.ContentManager |
getContentManager()
|
int |
getMaxRequeryCount()
|
java.lang.String |
getMdexHost()
Getter for mdexHost property. |
int |
getMdexPort()
Getter for mdexPort property. |
com.endeca.soleng.urlformatter.QueryBuilder |
getQueryBuilder()
|
java.util.List<QueryProcessor> |
getQueryProcessors()
|
com.endeca.soleng.uiComponentLibrary.web.urlFormatter.config.UrlConfig |
getUrlConfig()
|
PageResult |
parseResults(javax.servlet.http.HttpServletRequest request,
com.endeca.content.ene.ENEContentQuery query,
com.endeca.content.ene.ENEContentResults contentResults,
com.endeca.soleng.urlformatter.UrlState urlState)
Parses the content results, and sets the following request attributes: Submitted ENEQuery object (REQUEST_ATTR_ENE_QUERY) Returned ENEContentResults object (REQUEST_ATTR_CONTENT_RESULTS) Current UrlState object (REQUEST_ATTR_URL_STATE) The UrlFormatter object that should be used for generating links (REQUEST_ATTR_URL_FORMATTER) Redirect URL string (REQUEST_ATTR_REDIRECT_URL), if one was specified by a merch rule Response type (REQUEST_ATTR_RESPONSE_TYPE) - e.g. |
PageResult |
processRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
com.endeca.soleng.urlformatter.UrlState urlState)
Called by the Controller to process the request. |
void |
setApplicationConfig(ApplicationConfig applicationConfig)
|
void |
setContentManager(com.endeca.content.ContentManager contentManager)
|
void |
setLocalizedUrlFormatter(LocalizedUrlFormatter localizedUrlFormatter)
|
void |
setMaxRequeryCount(int maxRequeryCount)
|
void |
setQueryBuilder(com.endeca.soleng.urlformatter.QueryBuilder queryBuilder)
|
void |
setQueryProcessors(java.util.List<QueryProcessor> queryProcessors)
|
void |
setUrlConfig(com.endeca.soleng.uiComponentLibrary.web.urlFormatter.config.UrlConfig urlConfig)
|
com.endeca.content.ene.ENEContentResults |
submitContentQuery(com.endeca.content.ene.ENEContentQuery contentQuery,
com.endeca.content.ContentManager contentManager)
Creates and submits a content query based on the passed ENEQuery to the MDEX engine, and returns the ENEContentResults. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UICLContentQueryService()
Method Detail |
---|
public PageResult processRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, com.endeca.soleng.urlformatter.UrlState urlState) throws java.net.MalformedURLException, com.endeca.soleng.urlformatter.UrlFormatException, com.endeca.soleng.urlformatter.QueryBuildException, com.endeca.content.ContentException, DataRetrievalException
ContentQueryService
processRequest
in interface ContentQueryService
request
- HttpServletRequest
response
- HttpServletResponse
urlState
- UrlState
java.net.MalformedURLException
- On error during a redirect.
com.endeca.soleng.urlformatter.UrlFormatException
- On error when parsing a request into an UrlState.
com.endeca.soleng.urlformatter.QueryBuildException
- On error when marshaling an UrlState into an ENEQuery object.
com.endeca.content.ContentException
- On exception when interacting with the Content Assembler API.
DataRetrievalException
public PageResult parseResults(javax.servlet.http.HttpServletRequest request, com.endeca.content.ene.ENEContentQuery query, com.endeca.content.ene.ENEContentResults contentResults, com.endeca.soleng.urlformatter.UrlState urlState)
request
- HttpServletRequest
query
- ENEQuery
contentResults
- ENEContentResults
urlFormatter
- UrlFormatter
urlState
- base UrlState
for this requestpublic com.endeca.content.ene.ENEContentResults submitContentQuery(com.endeca.content.ene.ENEContentQuery contentQuery, com.endeca.content.ContentManager contentManager) throws com.endeca.content.ContentException
query
- ENEQuery
contentManager
- ContentManager
ENEContentResults
com.endeca.content.ContentException
- On exceptions when interacting with the Content Assembler APIpublic java.lang.String getMdexHost() throws com.endeca.content.ContentException
com.endeca.content.ContentException
public int getMdexPort()
public ApplicationConfig getApplicationConfig()
public void setApplicationConfig(ApplicationConfig applicationConfig)
public com.endeca.content.ContentManager getContentManager()
public void setContentManager(com.endeca.content.ContentManager contentManager)
public com.endeca.soleng.urlformatter.QueryBuilder getQueryBuilder()
public void setQueryBuilder(com.endeca.soleng.urlformatter.QueryBuilder queryBuilder)
public void setLocalizedUrlFormatter(LocalizedUrlFormatter localizedUrlFormatter)
public com.endeca.soleng.uiComponentLibrary.web.urlFormatter.config.UrlConfig getUrlConfig()
public void setUrlConfig(com.endeca.soleng.uiComponentLibrary.web.urlFormatter.config.UrlConfig urlConfig)
public void setQueryProcessors(java.util.List<QueryProcessor> queryProcessors)
public java.util.List<QueryProcessor> getQueryProcessors()
public int getMaxRequeryCount()
public void setMaxRequeryCount(int maxRequeryCount)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |