Package org.openxri.xml

Examples of org.openxri.xml.SEPUri


        if (type == null || type.getValue() == null || type.getValue().trim().equals("")) continue;

        for (int iii=0; iii<service.getNumURIs(); iii++) {

          SEPUri uri = service.getURIAt(iii);

          if (uri == null || uri.getUriString() == null || uri.getUriString().trim().equals("")) continue;

          String xrdHref = uri.getUriString();
          if (SEPUri.APPEND_AUTHORITY.equals(uri.getAppend()) ||
              SEPUri.APPEND_LOCAL.equals(uri.getAppend()) ||
              SEPUri.APPEND_QXRI.equals(uri.getAppend())) {

            if (! xrdHref.endsWith("/")) xrdHref += "/";
            xrdHref += canonical;
          }
View Full Code Here


      if (service == null) continue;

      for (int ii=0; ii<service.getNumURIs(); ii++) {

        SEPUri uri = service.getURIAt(ii);

        if (uri == null || uri.getUriString() == null || uri.getUriString().trim().equals("")) continue;

        String jsonLocation = uri.getUriString();
        if (SEPUri.APPEND_AUTHORITY.equals(uri.getAppend()) ||
            SEPUri.APPEND_LOCAL.equals(uri.getAppend()) ||
            SEPUri.APPEND_QXRI.equals(uri.getAppend())) {

          if (! jsonLocation.endsWith("/")) jsonLocation += "/";
          jsonLocation += canonical;
        }
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

    */
    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

    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

    for (String uri : this.uris) {

      try {

        uris.add(new SEPUri(uri, null, SEPUri.APPEND_NONE));
      } catch (URISyntaxException ex) {

        throw new StageException("Invalid URI: " + uri.toString());
      }
    }
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.