Examples of XcapService


Examples of org.cipango.kaleo.xcap.XcapService

    {
      PresenceEventPackage presence = new PresenceEventPackage();
      LocationService locationService = new LocationService();
      RegEventPackage regEventPackage = new RegEventPackage(locationService);
      WatcherInfoEventPackage watcherInfo = new WatcherInfoEventPackage(presence);
      XcapService xcapService = new XcapService();
      XcapPolicyManager policyManager = new XcapPolicyManager(xcapService);
     
      FileXcapDao xcapDao = new FileXcapDao();
      String baseDir = System.getProperty(XCAP_BASE_DIR_PROPERTY);
      if (baseDir != null)
        xcapDao.setBaseDir(new File(baseDir));
      else
        xcapDao.setBaseDir(new File(System.getProperty("jetty.home", ".") + "/data"));
      xcapService.setDao(xcapDao);
      presence.setPolicyManager(policyManager);
     
      locationService.start();
      presence.start();
      regEventPackage.start();
      watcherInfo.start();
      xcapService.start();
     
      ServletContext sc = event.getServletContext();
      sc.setAttribute(PresenceEventPackage.class.getName(), presence);
      sc.setAttribute(LocationService.class.getName(), locationService);
      sc.setAttribute(RegEventPackage.class.getName(), regEventPackage);
View Full Code Here

Examples of org.cipango.kaleo.xcap.XcapService

    "/org.openmobilealliance.pres-rules/users/sip:nicolas@cipango.org/pres-rules";
 
  public void setUp() throws Exception
  {
    super.setUp();
    XcapService xcapService = _xcapServlet.getXcapService();
    _policyManager = new XcapPolicyManager(xcapService);
  }
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.