Class WmDownloadViewResolver

  • All Implemented Interfaces:
    org.springframework.web.servlet.ViewResolver

    public class WmDownloadViewResolver
    extends Object
    implements org.springframework.web.servlet.ViewResolver
    ViewResolver for download reponses to the client if the requested viewname == WmDownloadModel.WM_DOWNLOAD_VIEW a new WmDownloadView instance is returned otherwhise null so other resolvers can render this viewname
    Author:
    johntd
    • Constructor Detail

      • WmDownloadViewResolver

        public WmDownloadViewResolver()
    • Method Detail

      • setViewClass

        public void setViewClass​(Class viewClass)
        set the viewclass.
        Parameters:
        viewClass - class, must implement View interface
      • getViewClass

        protected Class getViewClass()
        get the viewclass to to be resolved
        Returns:
        viewClass
      • resolveViewName

        public org.springframework.web.servlet.View resolveViewName​(String viewName,
                                                                    Locale locale)
                                                             throws Exception
        ViewResolver for download reponses to the client if the requested viewname == WmDownloadModel.WM_DOWNLOAD_VIEW a new WmDownloadView instance is returned otherwhise null so other resolvers can render this viewname
        Specified by:
        resolveViewName in interface org.springframework.web.servlet.ViewResolver
        Parameters:
        viewName - viename to be rendered
        locale - locale
        Returns:
        WmDownloadView or null
        Throws:
        Exception