Class DocumentationController
- java.lang.Object
-
- org.springframework.context.support.ApplicationObjectSupport
-
- org.springframework.web.context.support.WebApplicationObjectSupport
-
- ca.bc.gov.open.cpf.api.web.controller.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
-
-
Constructor Summary
Constructors Constructor Description DocumentationController()
-
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
-
-
-
-
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
-
-