/*
 * Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
 * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */

/*
 *$Id: TestServletResponseWrapper.java 62525 2011-04-15 12:14:31Z dougd $
 */

package com.sun.ts.tests.jsf.spec.navigation;

import javax.servlet.http.HttpServletResponseWrapper;
import javax.servlet.http.HttpServletResponse;

import java.io.IOException;

public class TestServletResponseWrapper extends HttpServletResponseWrapper {

    private boolean redirectSent = false;

    public TestServletResponseWrapper(HttpServletResponse response) {
        super(response);
    }

    // ---------------------------------- Methods from HttpServletRequestWrapper


    public void sendRedirect(String s) throws IOException {

        redirectSent = true;

    } // END sendRedirect


    // ---------------------------------------------------------- Public Methods

    public boolean getRedirectSent() {

        return redirectSent;

    } // END getRedirectSent

}
