@Controller @RequestMapping(value="/") public class PubSubController extends Object
| Constructor and Description |
|---|
PubSubController() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.web.servlet.ModelAndView |
broadcastMessage(javax.servlet.http.HttpServletRequest request)
Takes a request to post data and broadcasts it to everyone else.
|
String |
loadPage()
Handles the main page load
|
org.springframework.web.servlet.ModelAndView |
subscribe(javax.servlet.http.HttpServletRequest request)
This method takes a request to subscribe to the topic
|
@RequestMapping(produces="text/html") public String loadPage()
@RequestMapping(value="{topic}",
method=GET)
public org.springframework.web.servlet.ModelAndView subscribe(javax.servlet.http.HttpServletRequest request)
throws Exception
request - Exception@RequestMapping(value="{topic}",
method=POST)
public org.springframework.web.servlet.ModelAndView broadcastMessage(javax.servlet.http.HttpServletRequest request)
throws Exception
request - ExceptionCopyright © 2015. All Rights Reserved.