@Controller public class RouterController extends Object implements org.springframework.beans.factory.InitializingBean
| Constructor and Description |
|---|
RouterController(org.springframework.context.ApplicationContext context,
org.springframework.core.convert.ConversionService conversionService,
JsonHandler jsonHandler) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
ExtDirectPollResponse |
poll(String beanName,
String method,
String event,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Locale locale) |
List<ExtDirectResponse> |
router(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Locale locale,
Object requestData) |
String |
router(String extAction,
String extMethod) |
void |
setConfiguration(Configuration configuration) |
@Autowired
public RouterController(org.springframework.context.ApplicationContext context,
org.springframework.core.convert.ConversionService conversionService,
JsonHandler jsonHandler)
public void setConfiguration(Configuration configuration)
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanException@RequestMapping(value="/poll/{beanName}/{method}/{event}")
@ResponseBody
public ExtDirectPollResponse poll(@PathVariable(value="beanName")
String beanName,
@PathVariable(value="method")
String method,
@PathVariable(value="event")
String event,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Locale locale)
throws Exception
Exception@RequestMapping(value="/router",
method=POST,
params="extAction")
public String router(@RequestParam(value="extAction")
String extAction,
@RequestParam(value="extMethod")
String extMethod)
@RequestMapping(value="/router",
method=POST,
params="!extAction")
@ResponseBody
public List<ExtDirectResponse> router(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Locale locale,
@RequestBody
Object requestData)
Copyright © 2010-2012. All Rights Reserved.