Package org.openxri.xml

Examples of org.openxri.xml.Ref


    log.trace("replace()");

    if (original == null) return(null);

    Ref ref = (Ref) original;

    try {

      return (ref.clone());
    } catch (CloneNotSupportedException e) {

      throw new HibernateException("Cannot clone ref.");
    }
  }
View Full Code Here


    }
   

    ///// attempt each ref in turn
    for (int i = 0; i < refs.size(); i++) {
      Ref r = (Ref)refs.get(i);
      XRI refXRI = null;
      try {
        refXRI = parseAbsoluteQXRIOrError(r.getValue());
      }
      catch (PartialResolutionException e) {
        log.warn("resolveAuthSegment - Invalid ref encountered: " + e.getMessage());
        continue;
      }
View Full Code Here

          throw new PartialResolutionException(xrdsOut);         
        }

        // we have some references, let's process it
        for (int i = 0; i < refs.size(); i++) {
          Ref r = (Ref)refs.get(i);
          XRI refXRI = null;
          try {
            refXRI = new XRI(r.getValue());
          }
          catch (XRIParseException e) {
            log.warn("resolveAuthSegment - Invalid ref encountered: " + e.getMessage());
           
            // bail out if this is the last segment
View Full Code Here

    List refs = parent.getPrioritizedRefs();
    Iterator it = refs.iterator();
   
    //// try each one in turn
    while (it.hasNext()) {
      Ref ref = (Ref)it.next();

      checkMaxRefs(xrdsOut, ref.getValue(), state);

      XRI refXRI;
      try {
        refXRI = parseAbsoluteQXRIOrError(ref.getValue());
      }
      catch (PartialResolutionException e) {
        xrdsOut.add(e.getPartialXRDS());
        continue;
      }
View Full Code Here

    List refs = srv.getPrioritizedRefs();
    Iterator it = refs.iterator();
   
    //// try each one in turn
    while (it.hasNext()) {
      Ref ref = (Ref)it.next();
 
      checkMaxRefs(xrdsOut, ref.getValue(), state);
 
      XRI refXRI;
      try {
        refXRI = parseAbsoluteQXRIOrError(ref.getValue());
      }
      catch (PartialResolutionException e) {
        xrdsOut.add(e.getPartialXRDS());
        continue;
      }
View Full Code Here

            if ((oURI.getPath() != null) && (oURI.getPath().length() > 0))
                return null;

            XRD oDesc = new XRD();
            XRI oExternal = new XRI("xri://@foo");
            oDesc.addRef(new Ref(oExternal.toString()));
            XRDS oDescs = new XRDS();
            oDescs.add(oDesc);
           
      state.pushResolved(oURI.toString(), flags.toString(), oDesc.toString(), oURI);
View Full Code Here

            if ((oURI.getPath() != null) && (oURI.getPath().length() > 0))
                return null;

            XRD oDesc = new XRD();
            XRI oExternal = new XRI("xri://@foo");
            oDesc.addRef(new Ref(oExternal.toString()));
            XRDS oDescs = new XRDS();
            oDescs.add(oDesc);
           
      state.pushResolved(oURI.toString(), flags.toString(), oDesc.toString(), oURI);
View Full Code Here

    }
   

    ///// attempt each ref in turn
    for (int i = 0; i < refs.size(); i++) {
      Ref r = (Ref)refs.get(i);
      XRI refXRI = null;
      try {
        refXRI = parseAbsoluteQXRIOrError(r.getValue());
      }
      catch (PartialResolutionException e) {
        log.warn("resolveAuthSegment - Invalid ref encountered: " + e.getMessage());
        continue;
      }
View Full Code Here

          throw new PartialResolutionException(xrdsOut);         
        }

        // we have some references, let's process it
        for (int i = 0; i < refs.size(); i++) {
          Ref r = (Ref)refs.get(i);
          XRI refXRI = null;
          try {
            refXRI = new XRI(r.getValue());
          }
          catch (XRIParseException e) {
            log.warn("resolveAuthSegment - Invalid ref encountered: " + e.getMessage());
           
            // bail out if this is the last segment
View Full Code Here

            if ((oURI.getPath() != null) && (oURI.getPath().length() > 0))
                return null;

            XRD oDesc = new XRD();
            XRI oExternal = new XRI("xri://@foo");
            oDesc.addRef(new Ref(oExternal.toString()));
            XRDS oDescs = new XRDS();
            oDescs.add(oDesc);
           
      state.pushResolved(oURI.toString(), trustType.toString(), oDesc.toString(), oURI);
View Full Code Here

TOP

Related Classes of org.openxri.xml.Ref

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.