Class BinaryView
java.lang.Object
org.springframework.context.support.ApplicationObjectSupport
org.springframework.web.context.support.WebApplicationObjectSupport
org.springframework.web.servlet.view.AbstractView
org.craftercms.studio.impl.v1.util.spring.mvc.BinaryView
- 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 BinaryView
extends org.springframework.web.servlet.view.AbstractView
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final long
static final String
static final String
static final String
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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
prepareResponse
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) protected void
renderMergedOutputModel
(Map<String, Object> model, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) void
setDisableCaching
(boolean disableCaching) Tells the client to disable caching of the generated JSON.Methods inherited from class org.springframework.web.servlet.view.AbstractView
addStaticAttribute, createMergedOutputModel, createRequestContext, createTemporaryOutputStream, exposeModelAsRequestAttributes, formatViewName, generatesDownloadContent, getAttributesMap, getBeanName, getContentType, getRequestContextAttribute, getRequestToExpose, getStaticAttributes, isExposePathVariables, render, setAttributes, setAttributesCSV, setAttributesMap, setBeanName, setContentType, setExposeContextBeansAsAttributes, setExposedContextBeanNames, 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, obtainApplicationContext, requiredContextClass, setApplicationContext
-
Field Details
-
DEFAULT_CONTENT_STREAM_MODEL_ATTR_NAME
- See Also:
-
DEFAULT_CONTENT_PATH_MODEL_ATTR_NAME
- See Also:
-
DEFAULT_CONTENT_TYPE
- See Also:
-
DEFAULT_CHARACTER_ENCODING
- See Also:
-
PRAGMA_HEADER_NAME
- See Also:
-
CACHE_CONTROL_HEADER_NAME
- See Also:
-
EXPIRES_HEADER_NAME
- See Also:
-
DISABLED_CACHING_PRAGMA_HEADER_VALUE
- See Also:
-
DISABLED_CACHING_CACHE_CONTROL_HEADER_VALUE
- See Also:
-
DISABLED_CACHING_EXPIRES_HEADER_VALUE
public static final long DISABLED_CACHING_EXPIRES_HEADER_VALUE- See Also:
-
-
Constructor Details
-
BinaryView
public BinaryView()
-
-
Method Details
-
setDisableCaching
public void setDisableCaching(boolean disableCaching) Tells the client to disable caching of the generated JSON. Default is false. -
prepareResponse
protected void prepareResponse(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) - Overrides:
prepareResponse
in classorg.springframework.web.servlet.view.AbstractView
-
renderMergedOutputModel
protected void renderMergedOutputModel(Map<String, Object> model, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws Exception- Specified by:
renderMergedOutputModel
in classorg.springframework.web.servlet.view.AbstractView
- Throws:
Exception
-