Package org.openxri.xml

Examples of org.openxri.xml.SEPUri


      Service topService = (Service)xrd.getSelectedServices().getList().get(0);

      ArrayList urisOut = new ArrayList();
      ArrayList uris = topService.getPrioritizedURIs();
      for (int i = 0; uris != null && i < uris.size(); i++) {
        SEPUri uri = (SEPUri)uris.get(i);
        String append = uri.getAppend();
        if (append == null)
          append = SEPUri.APPEND_LOCAL;
        urisOut.add(constructURI(uri.getURI(), append, qxri));
      }
     
      return urisOut;
    }
View Full Code Here


        Service srv = (Service)srvIterator.next();
       
        Iterator uriIterator = srv.getPrioritizedURIs().iterator();
          ///// try each selected service URI in turn (skip only if nothing was read)
          while (uriIterator.hasNext()) {
            SEPUri sepURI = (SEPUri)uriIterator.next();
            URI uri = sepURI.getURI();
           
            log.trace("resolveAuthSegment - trying URI='" + uri + "'");

            // skip non-HTTPS URIs if HTTPS was requested
            if (trustType.isHTTPS() && !uri.getScheme().equals(HTTPS)) {
View Full Code Here

    Service topService = (Service) xrd.getSelectedServices().getList().get(0);

    ArrayList urisOut = new ArrayList();
    ArrayList uris = topService.getPrioritizedURIs();
    for (int i = 0; uris != null && i < uris.size(); i++) {
      SEPUri uri = (SEPUri) uris.get(i);
      String append = uri.getAppend();
      urisOut.add(constructURI(uri.getURI(), append, qxri));
    }

    return urisOut;
  }
View Full Code Here

    while (srvIterator.hasNext()) {     
      Service srv = (Service) srvIterator.next();
      Iterator uriIterator = srv.getPrioritizedURIs().iterator();
     
      while (uriIterator.hasNext()) {
        SEPUri sepURI = (SEPUri) uriIterator.next();
        URI uri = sepURI.getURI();

        log.trace("fetchAuthXRDS - trying URI='" + uri + "'");

        // skip non-HTTPS URIs if HTTPS was requested
        if (flags.isHttps() && !uri.getScheme().equals(HTTPS)) {
View Full Code Here

      log.debug("constructURIinXRD() got selected service");
      Service sep = (Service)it.next();
      List uris = sep.getURIs();
      Iterator itURI = uris.iterator();
      while (itURI.hasNext()) {
        SEPUri uri = (SEPUri)itURI.next();
        String append = uri.getAppend();
        if (append != null) {
          String r = constructURI(uri.getURI(), uri.getAppend(), qxri);
          try {
            uri.setURI(new URI(r));
            uri.setAppend(null);
          } catch (URISyntaxException e) {}
        }
      }
    }

    for (int i = 0; i < finalXRD.getNumServices(); i++) {
      log.debug("constructURIinXRD() got service");
      Service sep = (Service)finalXRD.getServiceAt(i);
      List uris = sep.getURIs();
      Iterator itURI = uris.iterator();
      while (itURI.hasNext()) {
        SEPUri uri = (SEPUri)itURI.next();
        String append = uri.getAppend();
        if (append != null) {
          String r = constructURI(uri.getURI(), uri.getAppend(), qxri);
          try {
            uri.setURI(new URI(r));
            uri.setAppend(null);
          } catch (URISyntaxException e) {}
        }
      }     
    }
  }
View Full Code Here

      Service topService = (Service)xrd.getSelectedServices().getList().get(0);

      ArrayList urisOut = new ArrayList();
      ArrayList uris = topService.getPrioritizedURIs();
      for (int i = 0; uris != null && i < uris.size(); i++) {
        SEPUri uri = (SEPUri)uris.get(i);
        String append = uri.getAppend();
        if (append == null)
          append = SEPUri.APPEND_LOCAL;
        urisOut.add(constructURI(uri.getURI(), append, qxri));
      }
     
      return urisOut;
    }
View Full Code Here

        Service srv = (Service)srvIterator.next();
       
        Iterator uriIterator = srv.getPrioritizedURIs().iterator();
          ///// try each selected service URI in turn (skip only if nothing was read)
          while (uriIterator.hasNext()) {
            SEPUri sepURI = (SEPUri)uriIterator.next();
            URI uri = sepURI.getURI();
           
            log.trace("resolveAuthSegment - trying URI='" + uri + "'");

            // skip non-HTTPS URIs if HTTPS was requested
            if (trustType.isHTTPS() && !uri.getScheme().equals(HTTPS)) {
View Full Code Here

    */
    protected Service getRootAuthority()
        throws URISyntaxException, XMLSecurityException
    {
        Service oAuthority = new Service();
        oAuthority.addURI(new SEPUri(ssRootURI + "?ns=at"));

        // Add encrypted Root URI
        oAuthority.addURI(new SEPUri(ssEncryptedRootURI + "?ns=at"));

        /* there is no more such concept as TrustedURIs
        oAuthority.getTrustedURIs().add(new URI(ssRootURI + "?ns=at"));
        oAuthority.getTrustedURIs().add(new URI(ssEncryptedRootURI + "?ns=at"));
        */
 
View Full Code Here

            Iterator it = services.iterator();
            while (it.hasNext())
            {
                Service srv = (Service)it.next();
                Iterator itURI = srv.getPrioritizedURIs().iterator();
                SEPUri sepURI;
                while (itURI.hasNext())
                {
                    sepURI = (SEPUri) itURI.next();
                    try
                    {
                        String urlString = xriResolver.constructURI(
                                sepURI.getURI(),
                                sepURI.getAppend(),
                                new XRI(identifier.toString()));

                        opEndpointUrl = new URL(urlString);

                        DiscoveryInformation extracted =
                                new DiscoveryInformation(
                                        opEndpointUrl,
                                        wantCID ? claimedIdentifier : null,
                                        null,
                                        srvType);

                        _log.info("Added " + srvType +
                                  " endpoint: " + opEndpointUrl);

                        out.add(extracted);
                    }
                    catch (MalformedURLException mue)
                    {
                        _log.warn("Ignoring malformed OP endpoint URL in XRDS file: "
                                  + sepURI.toString(), mue);
                    }
                    catch (IllegalArgumentException ee)
                    {
                        _log.warn("Ignoring invalid OP endpoint URL in XRDS file: "
                                  + sepURI.toString(), ee);
                    }

                }
            }
View Full Code Here

TOP

Related Classes of org.openxri.xml.SEPUri

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.