com.poscoict.glueframework.web.control.restful
Class RestfulController

java.lang.Object
  extended by com.poscoict.glueframework.web.control.restful.RestfulController

@Controller
public class RestfulController
extends Object

RESTful¹æ½ÄÀÇ À¥¼­ºñ½º¸¦ Á¦°øÇÏ´Â Controller URI ÆÐÅÏÀ¸·Î´Â ¾Æ·¡ µÎ°¡Áö ¹æ½ÄÀÌ Á¦°øµÈ´Ù.

GET,POST,PUT,DELETE ¹æ½ÄÀÌ Áö¿øµÇ¸ç ¾î¶² ¹æ½ÄÀÇ ¿äûÀ̾ú´ÂÁö´Â "action"À» Key·Î GlueContext¿¡ ¼Ò¹®ÀÚ·Î ÀúÀåµÈ´Ù. ÇØ´ç ¿äûÀÌ Key·Îµµ µî·ÏµÇ¹Ç·Î Default Router·Î ºÐ±âµµ °¡´ÉÇÏ´Ù. ajax¹æ½ÄÀ̳ª RestTemplateÀ» »ç¿ëÇÏ¿© ¼­ºñ½º¸¦ È£Ãâ ÇÒ ¼öÀÖÀ¸¸é JSON Çü½ÄÀÇ µ¥ÀÌÅÍ°¡ ReturnµÈ´Ù.


Constructor Summary
RestfulController()
           
 
Method Summary
 org.springframework.web.servlet.ModelAndView doGlueServiceDelete(String serviceName)
           
 org.springframework.web.servlet.ModelAndView doGlueServiceDeletetByData(String serviceName, String gluedata)
           
 org.springframework.web.servlet.ModelAndView doGlueServiceGet(String serviceName)
           
 org.springframework.web.servlet.ModelAndView doGlueServiceGetByData(String serviceName, String gluedata)
           
 org.springframework.web.servlet.ModelAndView doGlueServicePost(String serviceName, Map<String,Object> params)
           
 org.springframework.web.servlet.ModelAndView doGlueServicePostByData(String serviceName, String gluedata, Map<String,Object> params)
           
 org.springframework.web.servlet.ModelAndView doGlueServicePut(String serviceName, org.springframework.util.MultiValueMap<String,String> params)
           
 org.springframework.web.servlet.ModelAndView doGlueServicePutByData(String serviceName, String gluedata, org.springframework.util.MultiValueMap<String,String> params)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RestfulController

public RestfulController()
Method Detail

doGlueServiceGet

@RequestMapping(value="/glue/{serviceName}",
                method=GET)
public org.springframework.web.servlet.ModelAndView doGlueServiceGet(@PathVariable
                                                                                    String serviceName)
Parameters:
serviceName -
Returns:

doGlueServiceGetByData

@RequestMapping(value="/glue/{serviceName}/data/{gluedata}",
                method=GET)
public org.springframework.web.servlet.ModelAndView doGlueServiceGetByData(@PathVariable
                                                                                          String serviceName,
                                                                                          @PathVariable
                                                                                          String gluedata)
Parameters:
serviceName -
gluedata -
Returns:

doGlueServiceDelete

@RequestMapping(value="/glue/{serviceName}",
                method=DELETE)
public org.springframework.web.servlet.ModelAndView doGlueServiceDelete(@PathVariable
                                                                                       String serviceName)
Parameters:
serviceName -
Returns:

doGlueServiceDeletetByData

@RequestMapping(value="/glue/{serviceName}/data/{gluedata}",
                method=DELETE)
public org.springframework.web.servlet.ModelAndView doGlueServiceDeletetByData(@PathVariable
                                                                                              String serviceName,
                                                                                              @PathVariable
                                                                                              String gluedata)
Parameters:
serviceName -
gluedata -
Returns:

doGlueServicePost

@RequestMapping(value="/glue/{serviceName}",
                method=POST)
public org.springframework.web.servlet.ModelAndView doGlueServicePost(@PathVariable
                                                                                     String serviceName,
                                                                                     @RequestParam
                                                                                     Map<String,Object> params)
Parameters:
serviceName -
params -
Returns:

doGlueServicePostByData

@RequestMapping(value="/glue/{serviceName}/data/{gluedata}",
                method=POST)
public org.springframework.web.servlet.ModelAndView doGlueServicePostByData(@PathVariable
                                                                                           String serviceName,
                                                                                           @PathVariable
                                                                                           String gluedata,
                                                                                           @RequestParam
                                                                                           Map<String,Object> params)
Parameters:
serviceName -
gluedata -
params -
Returns:

doGlueServicePut

@RequestMapping(value="/glue/{serviceName}",
                method=PUT)
public org.springframework.web.servlet.ModelAndView doGlueServicePut(@PathVariable
                                                                                    String serviceName,
                                                                                    @RequestBody
                                                                                    org.springframework.util.MultiValueMap<String,String> params)
Parameters:
serviceName -
params -
Returns:

doGlueServicePutByData

@RequestMapping(value="/glue/{serviceName}/data/{gluedata}",
                method=PUT)
public org.springframework.web.servlet.ModelAndView doGlueServicePutByData(@PathVariable
                                                                                          String serviceName,
                                                                                          @PathVariable
                                                                                          String gluedata,
                                                                                          @RequestBody
                                                                                          org.springframework.util.MultiValueMap<String,String> params)
Parameters:
serviceName -
gluedata -
params -
Returns:


Copyright © 2013–2018 POSCO ICT. All rights reserved.