Package org.icepush

Examples of org.icepush.PushContext


   */
  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

Related Classes of org.icepush.PushContext

Copyright © 2018 www.massapicom. 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.