java.lang.Object
ru.gammalabs.ice.utils.http.DefaultRequestProcessor
ru.gammalabs.ice.frontend.web.RequestProcessor
- All Implemented Interfaces:
- java.lang.Cloneable, ru.gammalabs.ice.utils.http.RequestProcessor
- public class RequestProcessor
- extends ru.gammalabs.ice.utils.http.DefaultRequestProcessor
This RequestProcessor does default request processing,
then tries to retrieve from the request currently displayed PartitionModel,
page Template, used for displaying the result page, and
all of the SearchCriteria objects.
- Version:
- $Revision: 1.2 $
| Methods inherited from class ru.gammalabs.ice.utils.http.DefaultRequestProcessor |
clear, clone, decode, decode, encode, encode, get, get, getRequestString, put, put, remove, scribbleboolean, scribbleBoolean, scribbleClass, scribbleDate, scribbleint, scribbleInteger, scribbleLocale, scribblelong, scribbleLong, scribbleObject, scribbleObject, scribbleRequestable, scribbleString, setRequestString, unscribbleboolean, unscribbleBoolean, unscribbleClass, unscribbleDate, unscribbleint, unscribbleInteger, unscribbleLocale, unscribblelong, unscribbleLong, unscribbleObject, unscribbleObject, unscribbleRequestable, unscribbleString |
log
private static final org.apache.log4j.Category log
currentPartition
private ru.gammalabs.ice.structure.PartitionModel currentPartition
- Currently displayed
PartitionModel.
- See Also:
- ru.gammalabs.ice.structure.PartitionModel
currentPageTemplate
private ru.gammalabs.ice.publishing.framework.Template currentPageTemplate
- Page
Template, used for displaying the result page.
- See Also:
- ru.gammalabs.ice.publishing.framework.Template
searchCriteriaObjects
private java.util.Map searchCriteriaObjects
- Map containing
SearchCriteria objects, supplied in the request.
- See Also:
- ru.gammalabs.ice.frontend.SearchCriteria
locale
private java.util.Locale locale
RequestProcessor
public RequestProcessor(javax.servlet.http.HttpServletRequest request)
- The constructor tries to retrieve from the
request
currently displayed PartitionModel,
page Template, used for displaying the result page,
and all of the SearchCriteria objects.
The following request keys are used to retrieve the objects mentioned:
WebKeys.PARTITION_ID_PARAMETER_REQUEST_KEY for currently displayed PartitionModel;
WebKeys.PAGE_TEMPLATE_NAME_PARAMETER_REQUEST_KEY for page Template;
WebKeys.SEARCH_CRITERIA_PARAMETER_REQUEST_KEY for SearchCriteria objects.
In case page Template can't be retrieved (either not specified in the request
or an error happened during Template retrieval) and PartitionModel is
retrieved successfully, PartitionModel's Template will be used as page
Template for displaying the result page.
getCurrentPartition
public ru.gammalabs.ice.structure.PartitionModel getCurrentPartition()
- Returns current
PartitionModel.
getCurrentPageTemplate
public ru.gammalabs.ice.publishing.framework.Template getCurrentPageTemplate()
- Returns page
Template, used for displaying the result page.
getSearchCriteria
public ru.gammalabs.ice.frontend.SearchCriteria getSearchCriteria(java.lang.String searchCriteriaName)
- Returns
SearchCriteria with the specified searchCriteriaName.
retrieveCurrentPartition
private ru.gammalabs.ice.structure.PartitionModel retrieveCurrentPartition(javax.servlet.http.HttpServletRequest request)
retrieveCurrentPageTemplate
private ru.gammalabs.ice.publishing.framework.Template retrieveCurrentPageTemplate(javax.servlet.http.HttpServletRequest request)
retrieveSearchCriteriaObjects
private java.util.Map retrieveSearchCriteriaObjects()