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
EntityViewCommand
and itsBindingResult
- the
NativeWebRequest
that requested the view - the
PageContentStructure
being 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
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
org.springframework.validation.BindingResult
Binding 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.WebDataBinder
DataBinder being used for the command object.The contextual information of the entity type and entity being viewed.org.springframework.http.HttpMethod
HTTP method for the web request.org.springframework.ui.ModelMap
getModel()
The model associated with the current view.Page content being built.The partial fragment to render.org.springframework.web.servlet.mvc.support.RedirectAttributes
The redirect attributes for the current view request.TheEntityViewFactory
being used.Name of the view being requested.org.springframework.web.context.request.NativeWebRequest
Original web request/response context.int
hashCode()
boolean
boolean
Checks whether the given name matches the view being rendered.void
setBindingResult
(org.springframework.validation.BindingResult bindingResult) Binding result for the command object.void
setCommand
(EntityViewCommand command) Command object for the view.void
setConfigurationAttributes
(Map<String, Object> configurationAttributes) The map of configuration attributes that were used to initialized thisEntityViewFactory
.void
setDataBinder
(org.springframework.web.bind.WebDataBinder dataBinder) DataBinder being used for the command object.void
setEntityViewContext
(EntityViewContext entityViewContext) The contextual information of the entity type and entity being viewed.void
setHttpMethod
(org.springframework.http.HttpMethod httpMethod) HTTP method for the web request.void
setModel
(org.springframework.ui.ModelMap model) The model associated with the current view.void
setPageContentStructure
(PageContentStructure pageContentStructure) Page content being built.void
setPartialFragment
(String partialFragment) The partial fragment to render.void
setRedirectAttributes
(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) The redirect attributes for the current view request.void
setViewFactory
(EntityViewFactory viewFactory) TheEntityViewFactory
being used.void
setViewName
(String viewName) Name of the view being requested.void
setWebRequest
(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:
true
if 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:
true
if 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
TheEntityViewFactory
being used. -
getConfigurationAttributes
The map of configuration attributes that were used to initialized thisEntityViewFactory
. Should never benull
and 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
TheEntityViewFactory
being used. -
setConfigurationAttributes
The map of configuration attributes that were used to initialized thisEntityViewFactory
. Should never benull
and 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()
-