@Controller public class RouterController extends Object implements org.springframework.beans.factory.InitializingBean
| Modifier and Type | Field and Description |
|---|---|
static org.springframework.http.MediaType |
APPLICATION_JSON |
static org.springframework.http.MediaType |
TEXT_HTML |
| Constructor and Description |
|---|
RouterController() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
Configuration |
getConfiguration() |
JsonHandler |
getJsonHandler() |
void |
poll(String beanName,
String method,
String event,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Locale locale) |
void |
router(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Locale locale) |
String |
router(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String extAction,
String extMethod) |
void |
writeJsonResponse(javax.servlet.http.HttpServletResponse response,
Object responseObject,
boolean streamResponse) |
public static final org.springframework.http.MediaType APPLICATION_JSON
public static final org.springframework.http.MediaType TEXT_HTML
public Configuration getConfiguration()
public JsonHandler getJsonHandler()
public void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean@RequestMapping(value="/poll/{beanName}/{method}/{event}")
public void 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(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
@RequestParam(value="extAction")
String extAction,
@RequestParam(value="extMethod")
String extMethod)
throws IOException
IOException@RequestMapping(value="/router",
method=POST,
params="!extAction")
public void router(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Locale locale)
throws IOException
IOExceptionpublic void writeJsonResponse(javax.servlet.http.HttpServletResponse response,
Object responseObject,
boolean streamResponse)
throws IOException,
org.codehaus.jackson.JsonGenerationException,
org.codehaus.jackson.map.JsonMappingException
IOExceptionorg.codehaus.jackson.JsonGenerationExceptionorg.codehaus.jackson.map.JsonMappingExceptionCopyright © 2010-2012. All Rights Reserved.