public class BinaryView
extends org.springframework.web.servlet.view.AbstractView
Modifier and Type | Field and Description |
---|---|
static String |
CACHE_CONTROL_HEADER_NAME |
static String |
DEFAULT_CHARACTER_ENCODING |
static String |
DEFAULT_CONTENT_PATH_MODEL_ATTR_NAME |
static String |
DEFAULT_CONTENT_STREAM_MODEL_ATTR_NAME |
static String |
DEFAULT_CONTENT_TYPE |
static String |
DISABLED_CACHING_CACHE_CONTROL_HEADER_VALUE |
static long |
DISABLED_CACHING_EXPIRES_HEADER_VALUE |
static String |
DISABLED_CACHING_PRAGMA_HEADER_VALUE |
static String |
EXPIRES_HEADER_NAME |
static String |
PRAGMA_HEADER_NAME |
Constructor and Description |
---|
BinaryView() |
Modifier and Type | Method and Description |
---|---|
protected void |
prepareResponse(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected void |
renderMergedOutputModel(Map<String,Object> model,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
setDisableCaching(boolean disableCaching)
Tells the client to disable caching of the generated JSON.
|
addStaticAttribute, createMergedOutputModel, createRequestContext, createTemporaryOutputStream, exposeModelAsRequestAttributes, generatesDownloadContent, getAttributesMap, getBeanName, getContentType, getRequestContextAttribute, getRequestToExpose, getStaticAttributes, isExposePathVariables, render, setAttributes, setAttributesCSV, setAttributesMap, setBeanName, setContentType, setExposeContextBeansAsAttributes, setExposedContextBeanNames, setExposePathVariables, setRequestContextAttribute, setResponseContentType, toString, writeToResponse
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
public static final String DEFAULT_CONTENT_STREAM_MODEL_ATTR_NAME
public static final String DEFAULT_CONTENT_PATH_MODEL_ATTR_NAME
public static final String DEFAULT_CONTENT_TYPE
public static final String DEFAULT_CHARACTER_ENCODING
public static final String PRAGMA_HEADER_NAME
public static final String CACHE_CONTROL_HEADER_NAME
public static final String EXPIRES_HEADER_NAME
public static final String DISABLED_CACHING_PRAGMA_HEADER_VALUE
public static final String DISABLED_CACHING_CACHE_CONTROL_HEADER_VALUE
public static final long DISABLED_CACHING_EXPIRES_HEADER_VALUE
public void setDisableCaching(boolean disableCaching)
protected void prepareResponse(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
prepareResponse
in class org.springframework.web.servlet.view.AbstractView
protected void renderMergedOutputModel(Map<String,Object> model, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
renderMergedOutputModel
in class org.springframework.web.servlet.view.AbstractView
Exception
Copyright © 2018 CrafterCMS. All rights reserved.