Class ApiExceptionResolver.EmptyView

java.lang.Object
org.springframework.context.support.ApplicationObjectSupport
org.springframework.web.context.support.WebApplicationObjectSupport
org.springframework.web.servlet.view.AbstractView
org.bremersee.exception.servlet.ApiExceptionResolver.EmptyView
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
Enclosing class:
ApiExceptionResolver

protected static class ApiExceptionResolver.EmptyView extends org.springframework.web.servlet.view.AbstractView
The empty view.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final RestApiException
    The rest api exception.

    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
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    EmptyView(RestApiException payload, String contentType)
    Instantiates a new empty view.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    renderMergedOutputModel(Map<String,Object> map, jakarta.servlet.http.HttpServletRequest httpServletRequest, jakarta.servlet.http.HttpServletResponse httpServletResponse)
     

    Methods inherited from class org.springframework.web.servlet.view.AbstractView

    addStaticAttribute, createMergedOutputModel, createRequestContext, createTemporaryOutputStream, exposeModelAsRequestAttributes, formatViewName, generatesDownloadContent, getAttributesMap, getBeanName, getContentType, getRequestContextAttribute, getRequestToExpose, getStaticAttributes, isExposePathVariables, prepareResponse, 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • restApiException

      protected final RestApiException restApiException
      The rest api exception.
  • Constructor Details

    • EmptyView

      protected EmptyView(RestApiException payload, String contentType)
      Instantiates a new empty view.
      Parameters:
      payload - the payload
      contentType - the content type
  • Method Details

    • renderMergedOutputModel

      protected void renderMergedOutputModel(@NonNull Map<String,Object> map, @NonNull jakarta.servlet.http.HttpServletRequest httpServletRequest, @NonNull jakarta.servlet.http.HttpServletResponse httpServletResponse)
      Specified by:
      renderMergedOutputModel in class org.springframework.web.servlet.view.AbstractView