public class SpringViewUtilities
extends java.lang.Object
implements org.tangram.view.ViewUtilities
| Modifier and Type | Field and Description |
|---|---|
static org.springframework.web.servlet.View |
NOT_FOUND_DUMMY
Value to be used if there is not view in hash tables and the like where the use of null would not indicate
if there is no view or if we didn't look it up up to now.
|
| Constructor and Description |
|---|
SpringViewUtilities() |
| Modifier and Type | Method and Description |
|---|---|
static org.springframework.web.servlet.ModelAndView |
createModelAndView(org.tangram.view.ViewContext viewContext)
This is a direct converter of tangram view context to spring model and view.
|
org.tangram.view.RequestParameterAccess |
createParameterAccess(javax.servlet.http.HttpServletRequest request)
Creates a spring request parameter access instance.
|
org.tangram.view.ViewContextFactory |
getViewContextFactory() |
void |
render(java.io.Writer writer,
java.util.Map<java.lang.String,java.lang.Object> model,
java.lang.String view) |
void |
render(java.io.Writer writer,
java.lang.Object bean,
java.lang.String view,
javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response) |
public static final org.springframework.web.servlet.View NOT_FOUND_DUMMY
public org.tangram.view.ViewContextFactory getViewContextFactory()
getViewContextFactory in interface org.tangram.view.ViewUtilitiespublic org.tangram.view.RequestParameterAccess createParameterAccess(javax.servlet.http.HttpServletRequest request)
throws java.lang.Exception
createParameterAccess in interface org.tangram.view.ViewUtilitiesrequest - the request instance to collect parameters fromjava.lang.Exception - generic exception marker from the interface may mostly result in IOExceptions herepublic static org.springframework.web.servlet.ModelAndView createModelAndView(org.tangram.view.ViewContext viewContext)
viewContext - the tangram view context to be transformed to spring's ModelAndViewpublic void render(java.io.Writer writer,
java.util.Map<java.lang.String,java.lang.Object> model,
java.lang.String view)
throws java.io.IOException
render in interface org.tangram.view.ViewUtilitiesjava.io.IOExceptionpublic void render(java.io.Writer writer,
java.lang.Object bean,
java.lang.String view,
javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response)
throws java.io.IOException
render in interface org.tangram.view.ViewUtilitiesjava.io.IOException