Package org.openxri

Examples of org.openxri.AuthorityPath


    XRDS xrdsOut = new XRDS();
    xrdsOut.setRef("xri://" + qxri.getAuthorityPath().toString());

    // determine the authority type
    AuthorityPath ap = qxri.getAuthorityPath();
    try {
      XRDS newXRDS;
      if (ap instanceof XRIAuthority)
        newXRDS = resolveXRIAuth(qxri, (XRIAuthority)ap, flags, state);
      else if (ap instanceof IRIAuthority)
View Full Code Here


        return Status.CID_FAILED;
     
      if (thisCIDXRI.isRelative())
        return Status.CID_FAILED;
     
      AuthorityPath parentAuthorityAP = parentCIDXRI.getAuthorityPath();
      if (parentAuthorityAP == null)
        return Status.CID_FAILED;
     
      AuthorityPath thisAuthorityAP = thisCIDXRI.getAuthorityPath();
      if (thisAuthorityAP == null)
        return Status.CID_FAILED;
     
      if (!(thisAuthorityAP instanceof XRIAuthority))
        return Status.CID_FAILED;
View Full Code Here

      if (query != null) {
        result.append('?');
        result.append(query);
      }
    } else if (append.equals(SEPUri.APPEND_AUTHORITY)) {
      AuthorityPath a = qxri.getAuthorityPath();
      if (a != null)
        result.append(a.toURINormalForm());
    } else if (append.equals(SEPUri.APPEND_PATH)) {
      XRIAbsolutePath p = qxri.getXRIAbsolutePath();
      if (p != null)
        result.append(p.toURINormalForm());
    } else if (append.equals(SEPUri.APPEND_QUERY)) {
View Full Code Here

    XRDS xrdsOut = new XRDS();
    xrdsOut.setRef("xri://" + qxri.getAuthorityPath().toString());

    // determine the authority type
    AuthorityPath ap = qxri.getAuthorityPath();
    try {
      XRDS newXRDS;
      if (ap instanceof XRIAuthority)
        newXRDS = resolveXRIAuth(qxri, (XRIAuthority)ap, flags, state);
      else if (ap instanceof IRIAuthority)
View Full Code Here

        return Status.CID_FAILED;
     
      if (thisCIDXRI.isRelative())
        return Status.CID_FAILED;
     
      AuthorityPath parentAuthorityAP = parentCIDXRI.getAuthorityPath();
      if (parentAuthorityAP == null)
        return Status.CID_FAILED;
     
      AuthorityPath thisAuthorityAP = thisCIDXRI.getAuthorityPath();
      if (thisAuthorityAP == null)
        return Status.CID_FAILED;
     
      if (!(thisAuthorityAP instanceof XRIAuthority))
        return Status.CID_FAILED;
View Full Code Here

      if (query != null) {
        result.append('?');
        result.append(query);
      }
    } else if (append.equals(SEPUri.APPEND_AUTHORITY)) {
      AuthorityPath a = qxri.getAuthorityPath();
      if (a != null)
        result.append(a.toURINormalForm());
    } else if (append.equals(SEPUri.APPEND_PATH)) {
      XRIAbsolutePath p = qxri.getXRIAbsolutePath();
      if (p != null)
        result.append(p.toURINormalForm());
    } else if (append.equals(SEPUri.APPEND_QUERY)) {
View Full Code Here

      XRDS xrdsOut = new XRDS();
      xrdsOut.setRef("xri://" + qxri.getAuthorityPath().toString());
     
      // get the authority
      AuthorityPath ap = qxri.getAuthorityPath();
      if (ap instanceof XRIAuthority) {
        String rootAuth = ((XRIAuthority)ap).getRootAuthority();
        if (rootAuth == null) {
          throw new RuntimeException("First subsegment of '" + ap + "' is null");
        }
View Full Code Here

        result.append('?');
        result.append(query);
      }
    }
    else if (append.equals(SEPUri.APPEND_AUTHORITY)) {
      AuthorityPath a = qxri.getAuthorityPath();
      if (a != null)
        result.append(a.toURINormalForm());
    }
    else if (append.equals(SEPUri.APPEND_PATH)) {
      XRIAbsolutePath p = qxri.getXRIAbsolutePath();
      if (p != null)
        result.append(p.toURINormalForm());
View Full Code Here

    XRDS xrdsOut = new XRDS();
    xrdsOut.setRef("xri://" + qxri.getAuthorityPath().toString());

    // determine the authority type
    AuthorityPath ap = qxri.getAuthorityPath();
    try {
      XRDS newXRDS;
      if (ap instanceof XRIAuthority)
        newXRDS = resolveXRIAuth(qxri, (XRIAuthority)ap, flags, state);
      else if (ap instanceof IRIAuthority)
View Full Code Here

        return Status.CID_FAILED;
     
      if (thisCIDXRI.isRelative())
        return Status.CID_FAILED;
     
      AuthorityPath parentAuthorityAP = parentCIDXRI.getAuthorityPath();
      if (parentAuthorityAP == null)
        return Status.CID_FAILED;
     
      AuthorityPath thisAuthorityAP = thisCIDXRI.getAuthorityPath();
      if (thisAuthorityAP == null)
        return Status.CID_FAILED;
     
      if (!(thisAuthorityAP instanceof XRIAuthority))
        return Status.CID_FAILED;
View Full Code Here

TOP

Related Classes of org.openxri.AuthorityPath

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.