ar.com.jmfsg.documentation.controller
Class DocumentationController

java.lang.Object
  extended by ar.com.jmfsg.documentation.controller.DocumentationController
All Implemented Interfaces:
DocumentationListener, org.springframework.beans.factory.InitializingBean

@Controller
public class DocumentationController
extends Object
implements org.springframework.beans.factory.InitializingBean, DocumentationListener

Controller mapping /docs/**

Author:
jformoso

Constructor Summary
DocumentationController()
           
 
Method Summary
 void afterPropertiesSet()
           
 void documentationChanged(DocumentationLoader loader)
           
 org.springframework.web.servlet.ModelAndView getDetail(String method)
           
 DocumentationLoader getDocumentationLoader()
           
 org.springframework.web.servlet.ModelAndView getFavicon()
           
 org.springframework.web.servlet.ModelAndView getIndex()
           
 org.springframework.web.servlet.ModelAndView getPage(String name)
           
 org.springframework.web.servlet.ModelAndView getRaw(javax.servlet.http.HttpServletResponse response, String ifNoneMatches)
           
 String jsonResult(org.springframework.ui.Model model)
           
 void setDocumentationLoader(DocumentationLoader documentationLoader)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentationController

public DocumentationController()
Method Detail

getIndex

@RequestMapping(value={"/","/docs"},
                method=GET)
public org.springframework.web.servlet.ModelAndView getIndex()

getRaw

@RequestMapping(value="/docs/raw",
                method=GET)
public org.springframework.web.servlet.ModelAndView getRaw(javax.servlet.http.HttpServletResponse response,
                                                                          @RequestHeader(value="If-None-Matches",required=false)
                                                                          String ifNoneMatches)

getFavicon

@RequestMapping(value="/favicon.ico",
                method=GET)
public org.springframework.web.servlet.ModelAndView getFavicon()

getDetail

@RequestMapping(value="/docs/method/{method}",
                method=GET)
public org.springframework.web.servlet.ModelAndView getDetail(@PathVariable
                                                                             String method)

getPage

@RequestMapping(value="/docs/page/{name}",
                method=GET)
public org.springframework.web.servlet.ModelAndView getPage(@PathVariable
                                                                           String name)

jsonResult

@RequestMapping(value="/docs/jsonResult/",
                method=GET)
public String jsonResult(org.springframework.ui.Model model)

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception

getDocumentationLoader

public DocumentationLoader getDocumentationLoader()

setDocumentationLoader

public void setDocumentationLoader(DocumentationLoader documentationLoader)

documentationChanged

public void documentationChanged(DocumentationLoader loader)
Specified by:
documentationChanged in interface DocumentationListener


Copyright © 2013. All Rights Reserved.