Package org.apache.tapestry

Examples of org.apache.tapestry.RedirectException


public abstract class Redirect extends BasePage
{
    public void redirectInternal()
    {
        throw new RedirectException("redirect-target.html");
    }
View Full Code Here


        throw new RedirectException("redirect-target.html");
    }

    public void redirectExternal()
    {
        throw new RedirectException("http://jakarta.apache.org/tapestry");
    }
View Full Code Here

    }

    /** @since 4.0 */
    public void sendRedirect(String URL)
    {
        throw new RedirectException(URL);
    }
View Full Code Here

        expect(cycle.getAttribute(TapestryUtils.PAGE_RENDER_SUPPORT_ATTRIBUTE)).andReturn(null);
        cycle.setAttribute(eq(TapestryUtils.PAGE_RENDER_SUPPORT_ATTRIBUTE), isA(PageRenderSupport.class));

        cycle.renderPage(builder);
        // only done to simulate a caught internal stale link / other exception that would cause a new renderPage() request
        expectLastCall().andThrow(new RedirectException("redir"));

        cycle.renderPage(builder);
        cycle.removeAttribute(TapestryUtils.PAGE_RENDER_SUPPORT_ATTRIBUTE);

        replay();
View Full Code Here

public abstract class Redirect extends BasePage
{
    public void redirectInternal(IRequestCycle cycle)
    {
        throw new RedirectException("redirect-target.html");
    }
View Full Code Here

        throw new RedirectException("redirect-target.html");
    }

    public void redirectExternal(IRequestCycle cycle)
    {
        throw new RedirectException("http://jakarta.apache.org/tapestry");
    }
View Full Code Here

public abstract class Home extends BasePage
{
    public void internalRedirect(IRequestCycle cycle)
    {
        throw new RedirectException("static/Warning.html");
    }
View Full Code Here

        throw new RedirectException("static/Warning.html");
    }

    public void externalRedirect(IRequestCycle cycle)
    {
        throw new RedirectException("http://jakarta.apache.org/tapestry");
    }
View Full Code Here

    {
        // Special value, stands in for any resource that can't be found
        // resulting in the ServletContext returning null for the
        // dispatcher.

        throw new RedirectException("NULL");
    }
View Full Code Here

    public void servletException(IRequestCycle cycle)
    {
        // Special value, forces a ServletException to be thrown
        // from within RequestDispatcher.forward()

        throw new RedirectException("FAIL_SERVLET");
    }
View Full Code Here

TOP

Related Classes of org.apache.tapestry.RedirectException

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.