Examples of Redirect


Examples of org.ocpsoft.rewrite.servlet.config.Redirect

               if (!query.evaluate(event, context))
               {
                  return false;
               }
            }
            Redirect redirect = Redirect.permanent(((HttpInboundServletRewrite) event).getContextPath()
                     + requestPattern);
            redirect.setParameterStore(store);
            context.addPreOperation(redirect);
            return true;
         }
      }
      else if ((event instanceof HttpOutboundServletRewrite))
View Full Code Here

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

Examples of org.openxri.xml.Redirect

    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

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

Examples of org.openxri.xml.Redirect

    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

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

Examples of org.openxri.xml.Redirect

    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

Examples of play.mvc.results.Redirect

        if (federatedIdentity != null) {
            url = getUserService().createLoginURL(returnURL, null, federatedIdentity, attributesRequest);
        } else {
            url = getUserService().createLoginURL(returnURL);
        }
        throw new Redirect(url);
    }
View Full Code Here

Examples of play.mvc.results.Redirect

    }

    public static void logout(String returnAction) {
        String returnURL = Router.getFullUrl(returnAction);
        String url = getUserService().createLogoutURL(returnURL);
        throw new Redirect(url);
    }
View Full Code Here

Examples of play.mvc.results.Redirect

     */
    protected static void redirect(String url, boolean permanent) {
        if (url.matches("^([^./]+[.]?)+$")) { // fix Java !
            redirect(url, permanent, new Object[0]);
        }
        throw new Redirect(url, permanent);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.