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 Summary
Constructors -
Method Summary
Modifier 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
-
EntityViewRequest
public EntityViewRequest()
-
-
Method Details
-
hasPartialFragment
public boolean hasPartialFragment()- Returns:
trueif only a partial fragment should be rendered of the view
-
isForView
Checks whether the given name matches the view being rendered.- Parameters:
viewName- to check- Returns:
trueif the name matches the current view name.
-
toString
-
getEntityViewContext
The contextual information of the entity type and entity being viewed. -
getPageContentStructure
Page content being built. -
getCommand
Command object for the view. -
getDataBinder
public org.springframework.web.bind.WebDataBinder getDataBinder()DataBinder being used for the command object. -
getBindingResult
public org.springframework.validation.BindingResult getBindingResult()Binding result for the command object. -
getViewName
Name of the view being requested. -
getViewFactory
TheEntityViewFactorybeing used. -
getConfigurationAttributes
The 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. -
getWebRequest
public org.springframework.web.context.request.NativeWebRequest getWebRequest()Original web request/response context. -
getHttpMethod
public org.springframework.http.HttpMethod getHttpMethod()HTTP method for the web request. -
getPartialFragment
The partial fragment to render. -
getModel
public org.springframework.ui.ModelMap getModel()The model associated with the current view. -
getRedirectAttributes
public org.springframework.web.servlet.mvc.support.RedirectAttributes getRedirectAttributes()The redirect attributes for the current view request. -
setEntityViewContext
The contextual information of the entity type and entity being viewed. -
setPageContentStructure
Page content being built. -
setCommand
Command object for the view. -
setDataBinder
public void setDataBinder(org.springframework.web.bind.WebDataBinder dataBinder) DataBinder being used for the command object. -
setBindingResult
public void setBindingResult(org.springframework.validation.BindingResult bindingResult) Binding result for the command object. -
setViewName
Name of the view being requested. -
setViewFactory
TheEntityViewFactorybeing used. -
setConfigurationAttributes
The 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. -
setWebRequest
public void setWebRequest(org.springframework.web.context.request.NativeWebRequest webRequest) Original web request/response context. -
setHttpMethod
public void setHttpMethod(org.springframework.http.HttpMethod httpMethod) HTTP method for the web request. -
setPartialFragment
The partial fragment to render. -
setModel
public void setModel(org.springframework.ui.ModelMap model) The model associated with the current view. -
setRedirectAttributes
public void setRedirectAttributes(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) The redirect attributes for the current view request. -
equals
-
canEqual
-
hashCode
public int hashCode()
-