com.poscoict.glueframework.web.control.spring
Class GlueJsonController
java.lang.Object
com.poscoict.glueframework.web.control.spring.GlueAbstractController
com.poscoict.glueframework.web.control.spring.GlueJsonController
- All Implemented Interfaces:
- Controller
public class GlueJsonController
- extends GlueAbstractController
Json Controller for SpringMVC.
Bean Property
- viewPage : (Çʼö) default´Â 'jsonView'
ModelAndView ¿ì¼±¼øÀ§
1. GlueService ½ÇÇàÁß GlueContext¿¡ "forwardname" À̸§À¸·Î ´ã±â´Â °ª.
2. controller bean¿¡ Á¤ÀÇµÈ viewPage property °ª
3. jsonView
JSON Data
1. "result-keys" : GlueResultKeyList activity
2. is_success : GlueContextÀÇ Exception À¯¹«
3. exception_class
4. exception_code
5. exception_message
6. exception_localized_message
¿¹Á¦
»ç¿ë ¿¹# 1
»ç¿ë ¿¹# 1
Âü°í : web.xml
dispatcher
org.springframework.web.servlet.DispatcherServlet
1
dispatcher
*.json
. . .
Âü°í : dispatcher-json-servlet.xml
Âü°í : dispatcher-json-servlet.xml
/*.json=controller
Methods inherited from class com.poscoict.glueframework.web.control.spring.GlueAbstractController |
afterDoAction, getViewPage, handleRequest, preDoAction, processUploadFile, setCookie, setErrorPage, setHeader, setRequestAttr, setRequestParam, setSessionAttr, setViewPage |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GlueJsonController
public GlueJsonController()
preDoAction
public void preDoAction(GlueWebContext ctx)
- Specified by:
preDoAction
in class GlueAbstractController
afterDoAction
public void afterDoAction(GlueWebContext ctx)
- Specified by:
afterDoAction
in class GlueAbstractController
setModelAndView
public ModelAndView setModelAndView(GlueWebContext ctx)
- Specified by:
setModelAndView
in class GlueAbstractController
Copyright © 2013–2016 POSCO ICT. All rights reserved.