Examples of redirect()


Examples of org.apache.beehive.netui.pageflow.handler.ForwardRedirectHandler.redirect()

            //
            // If the URI is absolute (e.g., starts with "http:"), do a redirect to it no matter what.
            //
            if ( FileUtils.isAbsoluteURI( path ) )
            {
                fwdRedirectHandler.redirect( context, addScopeParams( path, request ) );
            }
            else if ( fwd.getRedirect() )
            {
                String redirectURI;
View Full Code Here

Examples of org.apache.beehive.netui.pageflow.handler.ForwardRedirectHandler.redirect()

                else
                {
                    redirectURI = request.getContextPath() + RequestUtils.forwardURL( request, fwd );
                }

                fwdRedirectHandler.redirect( context, addScopeParams( redirectURI, request ) );
            }
            else
            {
                String fwdURI;
View Full Code Here

Examples of org.apache.beehive.netui.pageflow.handler.ForwardRedirectHandler.redirect()

        URI redirectURI = new URI( scheme, null, request.getServerName(), port,
                                   request.getContextPath() + webappRelativeURI,
                                   queryString, null );

        ForwardRedirectHandler fwdRedirectHandler = _handlers.getForwardRedirectHandler();
        fwdRedirectHandler.redirect( context, redirectURI.toString() );

        if ( _log.isDebugEnabled() )
        {
            _log.debug( "Redirected to " + redirectURI );
        }
View Full Code Here

Examples of org.apache.cocoon.environment.Redirector.redirect()

        {
            redirector.globalRedirect(this.createSession, resolvedURI);
        }
        else
        {
            redirector.redirect(this.createSession, resolvedURI);
        }

        return true;
    }
}
View Full Code Here

Examples of org.apache.cocoon.faces.FacesRedirector.redirect()

        FacesRedirector redirector = (FacesRedirector)request.getAttribute(FacesAction.REQUEST_REDIRECTOR_ATTRIBUTE);
        if (redirector == null) {
            throw new IOException("Can not redirect to <" + url + ">: Redirector missing.");
        }

        redirector.redirect(url);
    }
}
View Full Code Here

Examples of org.apache.tapestry.request.RequestContext.redirect()

        _stateful = false;

        String url = context.getAbsoluteURL(_servletPath);

        context.redirect(url);
    }

    /**
     *  Delegate method for the servlet.  Services the request.
     *
 
View Full Code Here

Examples of org.apache.wicket.Response.redirect()

      RequestContext rc = RequestContext.get();
      String continueTo = null;
      if (rc.isPortletRequest() && ((PortletRequestContext)rc).isEmbedded())
      {
        response.redirect(redirectUrl);
      }
      else
      {
        String location = RequestCycle.get()
          .getRequest()
View Full Code Here

Examples of org.apache.wicket.Response.redirect()

        if (location.startsWith("./") && location.length() > 2)
        {
          location = location.substring(2);
        }

        response.redirect(location);
      }
    }
    else if (redirectUrl.indexOf("://") > 0)
    {
      // absolute url
View Full Code Here

Examples of org.apache.wicket.protocol.http.WebResponse.redirect()

    if (markupIdToComponent.values().contains(page))
    {
      // the page itself has been added to the request target, we simply issue a redirect back
      // to the page
      final String url = requestCycle.urlFor(page).toString();
      response.redirect(url);
      return;
    }

    for (ITargetRespondListener listener : respondListeners)
    {
View Full Code Here

Examples of org.apache.wicket.protocol.http.WebResponse.redirect()

    if (markupIdToComponent.values().contains(page))
    {
      // the page itself has been added to the request target, we simply issue a redirect back
      // to the page
      final String url = requestCycle.urlFor(page).toString();
      response.redirect(url);
      return;
    }

    for (ITargetRespondListener listener : respondListeners)
    {
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.