Class DocumentationController

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.web.context.ServletContextAware

    @Controller
    public class DocumentationController
    extends org.springframework.web.context.support.WebApplicationObjectSupport
    • Field Summary

      • Fields inherited from class org.springframework.context.support.ApplicationObjectSupport

        logger
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.springframework.http.MediaType getMediaType​(com.revolsys.spring.resource.Resource resource)  
      void handleRequest​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)  
      protected boolean isInvalidPath​(String path)  
      protected void setHeaders​(javax.servlet.http.HttpServletResponse response, com.revolsys.spring.resource.Resource resource, org.springframework.http.MediaType mediaType)  
      • 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
    • Constructor Detail

      • DocumentationController

        public DocumentationController()
    • Method Detail

      • getMediaType

        protected org.springframework.http.MediaType getMediaType​(com.revolsys.spring.resource.Resource resource)
      • handleRequest

        public void handleRequest​(javax.servlet.http.HttpServletRequest request,
                                  javax.servlet.http.HttpServletResponse response)
                           throws javax.servlet.ServletException,
                                  IOException
        Throws:
        javax.servlet.ServletException
        IOException
      • isInvalidPath

        protected boolean isInvalidPath​(String path)
      • setHeaders

        protected void setHeaders​(javax.servlet.http.HttpServletResponse response,
                                  com.revolsys.spring.resource.Resource resource,
                                  org.springframework.http.MediaType mediaType)
                           throws IOException
        Throws:
        IOException