Examples of redirect()


Examples of ch.entwine.weblounge.dispatcher.DispatchListener.redirect()

    // Ask registered listeners whether they want to redirect the url.
    // TODO: Are DispatchListeners still used?
    for (int i = 0; i < dispatcher.size(); i++) {
      DispatchListener d = dispatcher.get(i);
      url = d.redirect(url, request, response);
    }

    // Ask registered listeners whether they are willing to do the work for us
    for (int i = 0; i < dispatcher.size(); i++) {
      DispatchListener d = dispatcher.get(i);
View Full Code Here

Examples of com.foreach.across.modules.web.context.PrefixingPathContext.redirect()

  @Test
  public void redirectMethod() {
    PrefixingPathContext ctx = new PrefixingPathContext( "/boe" );

    assertEquals( "redirect:/boe/test/path", ctx.redirect( "test/path" ) );
    assertEquals( "redirect:/boe/test/path", ctx.redirect( "/test/path" ) );
    assertEquals( "redirect:http://www.google.be", ctx.redirect( "http://www.google.be" ) );
    assertEquals( "redirect:~/test/path", ctx.redirect( "~/test/path" ) );
    assertEquals( "redirect:/boe/test/path", ctx.redirect( "redirect:test/path" ) );
    assertEquals( "redirect:/boe/test/path", ctx.redirect( "redirect:/test/path" ) );
View Full Code Here

Examples of com.google.sitebricks.Respond.redirect()

    Respond respond = new StringBuilderRespond(instance);
    respond.setErrors(errors);
    if (null != redirect) {

      if (redirect instanceof String)
        respond.redirect((String) redirect);
      else if (redirect instanceof Class) {
        PageBook.Page targetPage = book.forClass((Class<?>) redirect);

        // should never be null coz it is validated on compile.
        respond.redirect(contextualize(request, targetPage.getUri()));
View Full Code Here

Examples of com.google.sitebricks.StringBuilderRespond.redirect()

    Respond respond = new StringBuilderRespond(instance);
    respond.setErrors(errors);
    if (null != redirect) {

      if (redirect instanceof String)
        respond.redirect((String) redirect);
      else if (redirect instanceof Class) {
        PageBook.Page targetPage = book.forClass((Class<?>) redirect);

        // should never be null coz it is validated on compile.
        respond.redirect(contextualize(request, targetPage.getUri()));
View Full Code Here

Examples of com.pugh.sockso.web.Response.redirect()

        u.setLocale( locale );
        u.setProperties( new StringProperties() );

        res.addCookie( (HttpResponseCookie) anyObject() );
        res.addCookie( (HttpResponseCookie) anyObject() );
        res.redirect( "/" );
        replay( res );
       
        u.logout();
       
        verify( res );
View Full Code Here

Examples of fitnesse.http.Response.redirect()

      response.addHeader("Current-Version", commitRecord.getName());
    }
    context.recentChanges.updateRecentChanges(page);

    if (request.hasInput("redirect"))
      response.redirect("", request.getInput("redirect").toString());
    else
      response.redirect(context.contextRoot, request.getResource());

    return response;
  }
View Full Code Here

Examples of fitnesse.http.SimpleResponse.redirect()

  private Response createChildPageAndMakeResponse(FitNesseContext context) {
    createChildPage(context);
    SimpleResponse response = new SimpleResponse();
    WikiPagePath fullPathOfCurrentPage = currentPage.getPageCrawler().getFullPath();
    response.redirect(context.contextRoot, fullPathOfCurrentPage.toString());
    return response;
  }

  private boolean nameIsInvalid(String name) {
    if (name.equals(""))
View Full Code Here

Examples of grails.web.mapping.ResponseRedirector.redirect()

        ResponseRedirector redirector = new ResponseRedirector(getLinkGenerator(webRequest));
        redirector.setRedirectListeners(redirectListeners);
        redirector.setRequestDataValueProcessor(initRequestDataValueProcessor());
        redirector.setUseJessionId(useJessionId);
        redirector.redirect(webRequest.getRequest(), webRequest.getResponse(), argMap);
        return null;
    }

    private LinkGenerator getLinkGenerator(GrailsWebRequest webRequest) {
        if (linkGenerator == null) {
View Full Code Here

Examples of javax.faces.context.ExternalContext.redirect()

   public void gotoAuthorizationURL(OAuthServiceHandler service) throws IOException
   {
      setCurrentServiceHdl(service);
      ExternalContext externalContext = FacesContext.getCurrentInstance().getExternalContext();
      externalContext.redirect(getAuthorizationURL());
   }

   public boolean isCurrentServiceOk()
   {
      return currentServiceHdl != null && currentServiceHdl.isConnected();
View Full Code Here

Examples of javax.faces.context.ExternalContext.redirect()

        if (getFragment() != null) url = url + "#" + fragment;
       
        ExternalContext ctx = FacesContext.getCurrentInstance().getExternalContext();
        try {
            log.debug("redirecting to URL: " + url);
            ctx.redirect(ctx.encodeResourceURL(url));
        } catch (IOException ioe) {
            throw new RedirectException(ioe);
        }
        FacesContext.getCurrentInstance().responseComplete();
    }
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.