@PublicSpi public abstract class AbstractSearchRequestView extends Object implements SearchRequestView
SearchRequestView
Modifier and Type | Field and Description |
---|---|
protected SearchRequestViewModuleDescriptor |
descriptor |
Constructor and Description |
---|
AbstractSearchRequestView() |
Modifier and Type | Method and Description |
---|---|
void |
init(SearchRequestViewModuleDescriptor moduleDescriptor)
A lifecycle method that will be called by the plugin system that gives access to the
ModuleDescriptor
that controls this plugin. |
void |
writeHeaders(SearchRequest searchRequest,
RequestHeaders requestHeaders)
A default implementation which sets headers the explicitly tell the browser not to cache
the content generated by this SearchRequestView.
|
void |
writeHeaders(SearchRequest searchRequest,
RequestHeaders requestHeaders,
SearchRequestParams searchRequestParams)
By default we don't care about the user agent
|
abstract void |
writeSearchResults(SearchRequest searchRequest,
SearchRequestParams searchRequestParams,
Writer writer)
Responsible for writing out the searchResults including Headers and Footers of the implementing view type.
|
protected SearchRequestViewModuleDescriptor descriptor
public void init(SearchRequestViewModuleDescriptor moduleDescriptor)
SearchRequestView
ModuleDescriptor
that controls this plugin.init
in interface SearchRequestView
moduleDescriptor
- the controller of this plugin.public void writeHeaders(SearchRequest searchRequest, RequestHeaders requestHeaders)
public void writeHeaders(SearchRequest searchRequest, RequestHeaders requestHeaders, SearchRequestParams searchRequestParams)
writeHeaders
in interface SearchRequestView
searchRequest
- the original search request submitted by the userrequestHeaders
- subset of HttpServletResponse responsible for setting headers onlysearchRequestParams
- context about the current search requestpublic abstract void writeSearchResults(SearchRequest searchRequest, SearchRequestParams searchRequestParams, Writer writer) throws SearchException
SearchRequestView
writeSearchResults
in interface SearchRequestView
searchRequest
- the original search request submitted by the usersearchRequestParams
- stores a shallow copy of the session and a pagerfilter to determine how many results to displaywriter
- The writer used to stream the response.SearchException
- Exceptions occured while trying to peform a search on the SearchRequest
Copyright © 2002-2018 Atlassian. All Rights Reserved.