String path = req.getPathInfo();
if ( path == null || path.length() == 0 ) {
path = "/";
}
ChannelService channelService = ChannelServiceFactory.getChannelService();
String token = channelService.createChannel(path);
resp.setContentType("text/plain");
resp.getWriter().write(token);
}
public void doPost(HttpServletRequest req, HttpServletResponse resp)