Class RestfulController
java.lang.Object
com.poscoict.glueframework.web.control.restful.RestfulController
RESTful방식의 웹서비스를 제공하는 Controller URI 패턴으로는 아래 두가지 방식이 제공된다.
- /glue/{serviceName} : URI의 serviceName과 Service명이 일치하는 Glue Servic가 실행 된다.
- /glue/{serviceName}/data/{gluedata} : URI의 serviceName과 Service명이 일치하는 Glue Servic가 실행되며 URI의 gluedata값은 "gluedata"를 Key로 GlueContext에 저장된다.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoGlueServiceDelete
(String serviceName) doGlueServiceDeletetByData
(String serviceName, String gluedata) doGlueServiceGet
(String serviceName) doGlueServiceGetByData
(String serviceName, String gluedata) doGlueServicePost
(String serviceName, Map<String, Object> params) doGlueServicePut
(String serviceName, MultiValueMap<String, String> params) doGlueServicePutByData
(String serviceName, String gluedata, MultiValueMap<String, String> params)
-
Constructor Details
-
RestfulController
public RestfulController()
-
-
Method Details
-
doGlueServiceGet
@RequestMapping(value="/glue/{serviceName}", method=GET) public ModelAndView doGlueServiceGet(@PathVariable("serviceName") String serviceName) - Parameters:
serviceName
-- Returns:
- ModelAndView
-
doGlueServiceGetByData
@RequestMapping(value="/glue/{serviceName}/data/{gluedata}", method=GET) public ModelAndView doGlueServiceGetByData(@PathVariable("serviceName") String serviceName, @PathVariable("gluedata") String gluedata) - Parameters:
serviceName
-gluedata
-- Returns:
- ModelAndView
-
doGlueServiceDelete
@RequestMapping(value="/glue/{serviceName}", method=DELETE) public ModelAndView doGlueServiceDelete(@PathVariable("serviceName") String serviceName) - Parameters:
serviceName
-- Returns:
- ModelAndView
-
doGlueServiceDeletetByData
@RequestMapping(value="/glue/{serviceName}/data/{gluedata}", method=DELETE) public ModelAndView doGlueServiceDeletetByData(@PathVariable("serviceName") String serviceName, @PathVariable("gluedata") String gluedata) - Parameters:
serviceName
-gluedata
-- Returns:
- ModelAndView
-
doGlueServicePost
@RequestMapping(value="/glue/{serviceName}", method=POST) public ModelAndView doGlueServicePost(@PathVariable("serviceName") String serviceName, @RequestParam Map<String, Object> params) - Parameters:
serviceName
-params
-- Returns:
- ModelAndView
-
doGlueServicePostByData
@RequestMapping(value="/glue/{serviceName}/data/{gluedata}", method=POST) public ModelAndView doGlueServicePostByData(@PathVariable("serviceName") String serviceName, @PathVariable("gluedata") String gluedata, @RequestParam Map<String, Object> params) - Parameters:
serviceName
-gluedata
-params
-- Returns:
- ModelAndView
-
doGlueServicePut
@RequestMapping(value="/glue/{serviceName}", method=PUT) public ModelAndView doGlueServicePut(@PathVariable("serviceName") String serviceName, @RequestBody MultiValueMap<String, String> params) - Parameters:
serviceName
-params
-- Returns:
- ModelAndView
-
doGlueServicePutByData
@RequestMapping(value="/glue/{serviceName}/data/{gluedata}", method=PUT) public ModelAndView doGlueServicePutByData(@PathVariable("serviceName") String serviceName, @PathVariable("gluedata") String gluedata, @RequestBody MultiValueMap<String, String> params) - Parameters:
serviceName
-gluedata
-params
-- Returns:
- ModelAndView
-