Examples of XcapUri


Examples of org.cipango.kaleo.xcap.XcapUri

    }
  }
 
  public void setContent(String xcapUri) throws IOException
  {
    XcapUri uri = new XcapUri(xcapUri, "/");
    String doc = uri.getDocumentSelector().replace(":", "%3A");
    File sourceFile = new File("target/test-classes/xcap-root", doc);
    if (!sourceFile.exists())
      sourceFile = new File("target/test-classes/xcap-root", doc.replace("@", "%40"));
    InputStream is = new FileInputStream(sourceFile);
    File outputFile = new File("target/test-data", doc.replace("@", "%40"));
View Full Code Here

Examples of org.cipango.kaleo.xcap.XcapUri

 
  public XcapPolicy(Resource resource, XcapService xcapService)
  {
    _resourceUri = resource.getUri();
    _xcapService = xcapService;
    addXcapRessource(new XcapUri("org.openmobilealliance.pres-rules", _resourceUri, "pres-rules", null));
  }
View Full Code Here

Examples of org.cipango.kaleo.xcap.XcapUri

    return _resourceUri;
  }
   
  private void addXcapRessource(XcapUri xcapUri)
  {
    XcapUri uri = new XcapUri(xcapUri.getDocumentSelector());
    if (!_xcapResources.contains(uri))
    {
      _xcapResources.add(uri);
      if (_listeners != null)
        _xcapService.addListener(_xcapListener, uri);
View Full Code Here

Examples of org.cipango.kaleo.xcap.XcapUri

 
  public SubHandling getPolicy(String subscriberUri)
  {
    try
    {
      XcapUri xcapUri = _xcapResources.get(0);
      XcapResource xcapResource = _xcapService.getResource(xcapUri, false, null, null);
      Ruleset ruleset = RulesetDocument.Factory.parse(xcapResource.getSelectedResource().getDom()).getRuleset();
      SubHandling best = null;
      String domain = null;
      if (subscriberUri.indexOf('@') != -1)
View Full Code Here

Examples of org.cipango.kaleo.xcap.XcapUri

  private boolean match(String anchor, String subscriberAor)
  {
    int index = anchor.indexOf("://");
    // Assume it is the same XCAP server
    String uri = anchor.substring(anchor.indexOf(_xcapService.getRootName(), index + 3));
    XcapUri xcapUri = new XcapUri(uri, _xcapService.getRootName());
   
    // Listen for changes for this resource.
    addXcapRessource(xcapUri);
   
    XcapResource xcapResource = _xcapService.getResource(xcapUri, false, null, null);
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.