Package ubic.gemma.web.view
Class TextView
-
- All Implemented Interfaces:
Aware
,BeanNameAware
,ApplicationContextAware
,ServletContextAware
,View
public class TextView extends AbstractView
Simply prints text to the client. The model must have a parameter matching TEXT_PARAM which holds the text to be written.- Author:
- pavlidis
-
-
Field Summary
Fields Modifier and Type Field Description static String
TEXT_PARAM
Name of parameter used to retrieve the text from the model.-
Fields inherited from class org.springframework.web.servlet.view.AbstractView
DEFAULT_CONTENT_TYPE
-
Fields inherited from class org.springframework.context.support.ApplicationObjectSupport
logger
-
Fields inherited from interface org.springframework.web.servlet.View
PATH_VARIABLES, RESPONSE_STATUS_ATTRIBUTE, SELECTED_CONTENT_TYPE
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
renderMergedOutputModel(Map<String,Object> model, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
-
Methods inherited from class org.springframework.web.servlet.view.AbstractView
addStaticAttribute, createMergedOutputModel, createRequestContext, createTemporaryOutputStream, exposeModelAsRequestAttributes, generatesDownloadContent, getAttributesMap, getBeanName, getContentType, getRequestContextAttribute, getStaticAttributes, isExposePathVariables, prepareResponse, render, setAttributes, setAttributesCSV, setAttributesMap, setBeanName, setContentType, setExposePathVariables, setRequestContextAttribute, setResponseContentType, toString, writeToResponse
-
Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
-
Methods inherited from class org.springframework.context.support.ApplicationObjectSupport
getApplicationContext, getMessageSourceAccessor, initApplicationContext, requiredContextClass, setApplicationContext
-
-
-
-
Field Detail
-
TEXT_PARAM
public static final String TEXT_PARAM
Name of parameter used to retrieve the text from the model.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TextView
public TextView(String textMediaSubType)
- Parameters:
textMediaSubType
- the subtype oftext/*
media type to use.
-
TextView
public TextView()
Create a text view fortext/plain
content.
-
-
Method Detail
-
renderMergedOutputModel
protected void renderMergedOutputModel(Map<String,Object> model, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
- Specified by:
renderMergedOutputModel
in classAbstractView
- Throws:
Exception
-
-