FileDocCategorySizeDatePackage
StrutsMockHttpServletResponse.javaAPI DocExample2744Mon Jul 23 13:26:16 BST 2007org.apache.struts2.views.jsp

StrutsMockHttpServletResponse

public class StrutsMockHttpServletResponse extends com.mockobjects.servlet.MockHttpServletResponse
StrutsMockHttpServletResponse

Fields Summary
private Locale
locale
private PrintWriter
writer
private int
status
private String
redirectURL
Constructors Summary
Methods Summary
public java.lang.StringencodeRedirectURL(java.lang.String s)

        return s;
    
public java.lang.StringencodeURL(java.lang.String s)

        return s;
    
public java.lang.StringencodeUrl(java.lang.String s)

        return s;
    
public java.lang.StringgetContentType()

        return null;  //To change body of implemented methods use File | Settings | File Templates.
    
public java.util.LocalegetLocale()

        return locale;
    
public java.lang.StringgetRedirectURL()

        return redirectURL;
    
public intgetStatus()

        return status;
    
public java.io.PrintWritergetWriter()

        if (writer == null)
            return new PrintWriter(new ByteArrayOutputStream());
        else
            return writer;
    
public voidsendRedirect(java.lang.String redirectURL)

        this.redirectURL = redirectURL;
        super.sendRedirect(redirectURL);
    
public voidsetCharacterEncoding(java.lang.String string)

        //To change body of implemented methods use File | Settings | File Templates.
    
public voidsetLocale(java.util.Locale locale)

        this.locale = locale;
    
public voidsetStatus(int i)

        this.status = i;
        super.setStatus(i);
    
public voidsetWriter(java.io.PrintWriter writer)

        this.writer = writer;