Class EntityViewRequest
java.lang.Object
com.foreach.across.modules.entity.views.request.EntityViewRequest
@Component
@Exposed
@Scope(scopeName="request",
       proxyMode=TARGET_CLASS)
public class EntityViewRequest
extends Object
Represents a specifically requested 
EntityViewFactory with its
 full set of information:
 - the EntityViewContext
- the EntityViewCommandand itsBindingResult
- the NativeWebRequestthat requested the view
- the PageContentStructurebeing built and the template information
Data bean that is also registered as a request-scoped proxy.
- Since:
- 2.0.0
- Author:
- Arne Vandamme
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleanbooleanorg.springframework.validation.BindingResultBinding result for the command object.Command object for the view.The map of configuration attributes that were used to initialized thisEntityViewFactory.org.springframework.web.bind.WebDataBinderDataBinder being used for the command object.The contextual information of the entity type and entity being viewed.org.springframework.http.HttpMethodHTTP method for the web request.org.springframework.ui.ModelMapgetModel()The model associated with the current view.Page content being built.The partial fragment to render.org.springframework.web.servlet.mvc.support.RedirectAttributesThe redirect attributes for the current view request.TheEntityViewFactorybeing used.Name of the view being requested.org.springframework.web.context.request.NativeWebRequestOriginal web request/response context.inthashCode()booleanbooleanChecks whether the given name matches the view being rendered.voidsetBindingResult(org.springframework.validation.BindingResult bindingResult) Binding result for the command object.voidsetCommand(EntityViewCommand command) Command object for the view.voidsetConfigurationAttributes(Map<String, Object> configurationAttributes) The map of configuration attributes that were used to initialized thisEntityViewFactory.voidsetDataBinder(org.springframework.web.bind.WebDataBinder dataBinder) DataBinder being used for the command object.voidsetEntityViewContext(EntityViewContext entityViewContext) The contextual information of the entity type and entity being viewed.voidsetHttpMethod(org.springframework.http.HttpMethod httpMethod) HTTP method for the web request.voidsetModel(org.springframework.ui.ModelMap model) The model associated with the current view.voidsetPageContentStructure(PageContentStructure pageContentStructure) Page content being built.voidsetPartialFragment(String partialFragment) The partial fragment to render.voidsetRedirectAttributes(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) The redirect attributes for the current view request.voidsetViewFactory(EntityViewFactory viewFactory) TheEntityViewFactorybeing used.voidsetViewName(String viewName) Name of the view being requested.voidsetWebRequest(org.springframework.web.context.request.NativeWebRequest webRequest) Original web request/response context.toString()
- 
Constructor Details- 
EntityViewRequestpublic EntityViewRequest()
 
- 
- 
Method Details- 
hasPartialFragmentpublic boolean hasPartialFragment()- Returns:
- trueif only a partial fragment should be rendered of the view
 
- 
isForViewChecks whether the given name matches the view being rendered.- Parameters:
- viewName- to check
- Returns:
- trueif the name matches the current view name.
 
- 
toString
- 
getEntityViewContextThe contextual information of the entity type and entity being viewed.
- 
getPageContentStructurePage content being built.
- 
getCommandCommand object for the view.
- 
getDataBinderpublic org.springframework.web.bind.WebDataBinder getDataBinder()DataBinder being used for the command object.
- 
getBindingResultpublic org.springframework.validation.BindingResult getBindingResult()Binding result for the command object.
- 
getViewNameName of the view being requested.
- 
getViewFactoryTheEntityViewFactorybeing used.
- 
getConfigurationAttributesThe map of configuration attributes that were used to initialized thisEntityViewFactory. Should never benulland can optionally be modified by early view processors to modify behaviour of later processors.
- 
getWebRequestpublic org.springframework.web.context.request.NativeWebRequest getWebRequest()Original web request/response context.
- 
getHttpMethodpublic org.springframework.http.HttpMethod getHttpMethod()HTTP method for the web request.
- 
getPartialFragmentThe partial fragment to render.
- 
getModelpublic org.springframework.ui.ModelMap getModel()The model associated with the current view.
- 
getRedirectAttributespublic org.springframework.web.servlet.mvc.support.RedirectAttributes getRedirectAttributes()The redirect attributes for the current view request.
- 
setEntityViewContextThe contextual information of the entity type and entity being viewed.
- 
setPageContentStructurePage content being built.
- 
setCommandCommand object for the view.
- 
setDataBinderpublic void setDataBinder(org.springframework.web.bind.WebDataBinder dataBinder) DataBinder being used for the command object.
- 
setBindingResultpublic void setBindingResult(org.springframework.validation.BindingResult bindingResult) Binding result for the command object.
- 
setViewNameName of the view being requested.
- 
setViewFactoryTheEntityViewFactorybeing used.
- 
setConfigurationAttributesThe map of configuration attributes that were used to initialized thisEntityViewFactory. Should never benulland can optionally be modified by early view processors to modify behaviour of later processors.
- 
setWebRequestpublic void setWebRequest(org.springframework.web.context.request.NativeWebRequest webRequest) Original web request/response context.
- 
setHttpMethodpublic void setHttpMethod(org.springframework.http.HttpMethod httpMethod) HTTP method for the web request.
- 
setPartialFragmentThe partial fragment to render.
- 
setModelpublic void setModel(org.springframework.ui.ModelMap model) The model associated with the current view.
- 
setRedirectAttributespublic void setRedirectAttributes(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) The redirect attributes for the current view request.
- 
equals
- 
canEqual
- 
hashCodepublic int hashCode()
 
-