Package ubic.gemma.web.view
Class TextView
- java.lang.Object
-
- org.springframework.context.support.ApplicationObjectSupport
-
- org.springframework.web.context.support.WebApplicationObjectSupport
-
- org.springframework.web.servlet.view.AbstractView
-
- ubic.gemma.web.view.TextView
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.context.ApplicationContextAware,org.springframework.web.context.ServletContextAware,org.springframework.web.servlet.View
public class TextView extends org.springframework.web.servlet.view.AbstractViewSimply 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 StringTEXT_PARAMName of parameter used to retrieve the text from the model.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidrenderMergedOutputModel(Map<String,Object> model, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)voidsetContentDisposition(String contentDisposition)-
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
-
-
-
-
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/plaincontent.
-
-
Method Detail
-
renderMergedOutputModel
protected void renderMergedOutputModel(Map<String,Object> model, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
- Specified by:
renderMergedOutputModelin classorg.springframework.web.servlet.view.AbstractView- Throws:
Exception
-
-