Examples of XRIAuthority


Examples of org.openxri.XRIAuthority

      ServerException ex2 = new ServerInternalException("Unsupported encoding in namespace: " + ex.getMessage(), ex);
      log.warn("", ex2);
      throw ex2;
    }

    XRIAuthority authorityPath = new GCSAuthority(utf8Namespace);

    Authority parentAuthority;
    setParentQueryName(utf8Namespace);

    try {
View Full Code Here

Examples of org.openxri.xri3.XRIAuthority

    // The resolver needs to know the following:
    // - list of subsegments
    // - path

    XRI xri = new XRI3("=parity*markus/+contact");
    XRIAuthority xriAuthority = xri.getAuthority();
    XRIPath xriPath = xri.getPath();

    System.out.println("Resolving XRI " + xri.toString());
    System.out.println("Listing " + xriAuthority.getNumSubSegments() + " subsegments...");

    for (int i=0; i<xriAuthority.getNumSubSegments(); i++) {

      XRISubSegment subSegment = xriAuthority.getSubSegment(i);
      System.out.println("Subsegment #" + i + ": " + subSegment.toString());
      System.out.println("  Global: " + subSegment.isGlobal());
      System.out.println("  Local: " + subSegment.isLocal());
    }

View Full Code Here

Examples of org.openxri.xri3.XRIAuthority

    // - XDI subject
    // - XDI predicate
    // - XDI reference

    XRI xri = new XRI3("+name+first/$is/+!3");
    XRIAuthority xriAuthority = xri.getAuthority();
    XRIPath xriPath = xri.getPath();

    System.out.println("Checking XDI address " + xri.toString());
   
    System.out.println("XDI Subject: " + xriAuthority.toString());
    System.out.println("XDI Predicate: " + xriPath.getSegment(0).toString());
    System.out.println("XDI Reference: " + xriPath.getSegment(1).toString());
  }
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.