Package org.icepush

Examples of org.icepush.PushContext.push()


  public String firePushEventAction(HttpServletRequest request, HttpServletResponse response) {
    String dataSourceId = null;
    try {
      dataSourceId = request.getParameter("dataSourceId");
      PushContext pushContext = PushContext.getInstance(request.getSession().getServletContext());
      pushContext.push(dataSourceId);
      response.setStatus(HttpServletResponse.SC_OK);
    } catch (Exception e) {
      log.error("error while firing Push Event for dataSourceId: " + dataSourceId, e);
      response.setStatus(HttpServletResponse.SC_CONFLICT);
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.