Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

ru.gammalabs.ice.frontend.web
Class RequestProcessor  view RequestProcessor download RequestProcessor.java

java.lang.Object
  extended byru.gammalabs.ice.utils.http.DefaultRequestProcessor
      extended byru.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 $

Field Summary
private  ru.gammalabs.ice.publishing.framework.Template currentPageTemplate
          Page Template, used for displaying the result page.
private  ru.gammalabs.ice.structure.PartitionModel currentPartition
          Currently displayed PartitionModel.
private  java.util.Locale locale
           
private static org.apache.log4j.Category log
           
private  java.util.Map searchCriteriaObjects
          Map containing SearchCriteria objects, supplied in the request.
 
Fields inherited from class ru.gammalabs.ice.utils.http.DefaultRequestProcessor
cache, request, values
 
Constructor Summary
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.
 
Method Summary
 ru.gammalabs.ice.publishing.framework.Template getCurrentPageTemplate()
          Returns page Template, used for displaying the result page.
 ru.gammalabs.ice.structure.PartitionModel getCurrentPartition()
          Returns current PartitionModel.
 ru.gammalabs.ice.frontend.SearchCriteria getSearchCriteria(java.lang.String searchCriteriaName)
          Returns SearchCriteria with the specified searchCriteriaName.
private  ru.gammalabs.ice.publishing.framework.Template retrieveCurrentPageTemplate(javax.servlet.http.HttpServletRequest request)
           
private  ru.gammalabs.ice.structure.PartitionModel retrieveCurrentPartition(javax.servlet.http.HttpServletRequest request)
           
private  java.util.Map retrieveSearchCriteriaObjects()
           
 
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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

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.

Method Detail

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()