Package org.openxri.xml

Examples of org.openxri.xml.Redirect


    if (!it.hasNext())
      throw new RuntimeException("processRedirects: No redirect to process!");

    // do a depth-first following of redirects
    while (it.hasNext()) {
      Redirect r = (Redirect)it.next();
      log.debug("processRedirects - Got redirect " + r);

      URI uri;
      try {
        uri = new URI(r.getValue());
        if (r.getAppend() != null) {
          // construct URI
          String constructedURI = constructURI(uri, r.getAppend(), qxri);
          uri = new URI(constructedURI);
        }
      } catch (URISyntaxException e) {
        // skip invalid URIs
        log.warn("processRedirects - Encountered invalid URI while constructing Redirect URI");
View Full Code Here


    if (!it.hasNext())
      throw new RuntimeException("processServiceRedirects: No redirect to process!");

    // do a depth-first following of redirects
    while (it.hasNext()) {
      Redirect r = (Redirect)it.next();
      URI uri;
      try {
        uri = new URI(r.getValue());
        if (r.getAppend() != null) {
          // construct URI
          String constructedURI = constructURI(uri, r.getAppend(), qxri);
          uri = new URI(constructedURI);
        }
      } catch (URISyntaxException e) {
        XRDS tmpXRDS = new XRDS();
        XRD err = createErrorXRD(r.getValue(), Status.INVALID_REDIRECT, "Invalid Redirect URI");
        tmpXRDS.add(err);
        xrdsOut.add(tmpXRDS);
        continue;
      }
     
View Full Code Here

    if (!it.hasNext())
      throw new RuntimeException("processRedirects: No redirect to process!");

    // do a depth-first following of redirects
    while (it.hasNext()) {
      Redirect r = (Redirect)it.next();
      log.debug("processRedirects - Got redirect " + r);

      URI uri;
      try {
        uri = new URI(r.getValue());
        if (r.getAppend() != null) {
          // construct URI
          String constructedURI = constructURI(uri, r.getAppend(), qxri);
          uri = new URI(constructedURI);
        }
      } catch (URISyntaxException e) {
        // skip invalid URIs
        log.warn("processRedirects - Encountered invalid URI while constructing Redirect URI");
View Full Code Here

    if (!it.hasNext())
      throw new RuntimeException("processServiceRedirects: No redirect to process!");

    // do a depth-first following of redirects
    while (it.hasNext()) {
      Redirect r = (Redirect)it.next();
      URI uri;
      try {
        uri = new URI(r.getValue());
        if (r.getAppend() != null) {
          // construct URI
          String constructedURI = constructURI(uri, r.getAppend(), qxri);
          uri = new URI(constructedURI);
        }
      } catch (URISyntaxException e) {
        XRDS tmpXRDS = new XRDS();
        XRD err = createErrorXRD(r.getValue(), Status.INVALID_REDIRECT, "Invalid Redirect URI");
        tmpXRDS.add(err);
        xrdsOut.add(tmpXRDS);
        continue;
      }
     
View Full Code Here

    if (!it.hasNext())
      throw new RuntimeException("processRedirects: No redirect to process!");

    // do a depth-first following of redirects
    while (it.hasNext()) {
      Redirect r = (Redirect)it.next();
      log.debug("processRedirects - Got redirect " + r);

      URI uri;
      try {
        uri = new URI(r.getValue());
        if (r.getAppend() != null) {
          // construct URI
          String constructedURI = constructURI(uri, r.getAppend(), qxri);
          uri = new URI(constructedURI);
        }
      } catch (URISyntaxException e) {
        // skip invalid URIs
        log.warn("processRedirects - Encountered invalid URI while constructing Redirect URI");
View Full Code Here

    if (!it.hasNext())
      throw new RuntimeException("processServiceRedirects: No redirect to process!");

    // do a depth-first following of redirects
    while (it.hasNext()) {
      Redirect r = (Redirect)it.next();
      URI uri;
      try {
        uri = new URI(r.getValue());
        if (r.getAppend() != null) {
          // construct URI
          String constructedURI = constructURI(uri, r.getAppend(), qxri);
          uri = new URI(constructedURI);
        }
      } catch (URISyntaxException e) {
        XRDS tmpXRDS = new XRDS();
        XRD err = createErrorXRD(r.getValue(), Status.INVALID_REDIRECT, "Invalid Redirect URI");
        tmpXRDS.add(err);
        xrdsOut.add(tmpXRDS);
        continue;
      }
     
View Full Code Here

TOP

Related Classes of org.openxri.xml.Redirect

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.