public class

MockHttpServletResponse

extends Object
implements HttpServletResponse
java.lang.Object
   ↳ com.atlassian.jira.mock.servlet.MockHttpServletResponse

Class Overview

Mock implementation of HttpServletResponse

Summary

[Expand]
Inherited Constants
From interface javax.servlet.http.HttpServletResponse
Public Constructors
MockHttpServletResponse()
MockHttpServletResponse(ServletOutputStream servletOutputStream)
MockHttpServletResponse(PrintWriter writer)
Public Methods
void addCookie(Cookie cookie)
void addDateHeader(String s, long l)
void addHeader(String name, String value)
void addIntHeader(String s, int i)
boolean containsHeader(String s)
String encodeRedirectURL(String s)
String encodeRedirectUrl(String s)
String encodeURL(String s)
String encodeUrl(String s)
void flushBuffer()
int getBufferSize()
String getCharacterEncoding()
String getContentType()
Iterable<Cookie> getCookies()
List<String> getHeader(String name)
Locale getLocale()
ServletOutputStream getOutputStream()
int getStatus()
PrintWriter getWriter()
boolean isCommitted()
void reset()
void resetBuffer()
void sendError(int i)
void sendError(int i, String s)
void sendRedirect(String s)
void setBufferSize(int i)
void setCharacterEncoding(String s)
void setContentLength(int i)
void setContentType(String ct)
void setDateHeader(String s, long l)
void setHeader(String name, String value)
void setIntHeader(String s, int i)
void setLocale(Locale locale)
void setStatus(int i)
void setStatus(int i, String s)
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface javax.servlet.ServletResponse
From interface javax.servlet.http.HttpServletResponse

Public Constructors

public MockHttpServletResponse ()

public MockHttpServletResponse (ServletOutputStream servletOutputStream)

public MockHttpServletResponse (PrintWriter writer)

Public Methods

public void addCookie (Cookie cookie)

public void addDateHeader (String s, long l)

public void addHeader (String name, String value)

public void addIntHeader (String s, int i)

public boolean containsHeader (String s)

public String encodeRedirectURL (String s)

public String encodeRedirectUrl (String s)

public String encodeURL (String s)

public String encodeUrl (String s)

public void flushBuffer ()

Throws
IOException

public int getBufferSize ()

public String getCharacterEncoding ()

public String getContentType ()

public Iterable<Cookie> getCookies ()

public List<String> getHeader (String name)

public Locale getLocale ()

public ServletOutputStream getOutputStream ()

Throws
IOException

public int getStatus ()

public PrintWriter getWriter ()

Throws
IOException

public boolean isCommitted ()

public void reset ()

public void resetBuffer ()

public void sendError (int i)

Throws
IOException

public void sendError (int i, String s)

Throws
IOException

public void sendRedirect (String s)

Throws
IOException

public void setBufferSize (int i)

public void setCharacterEncoding (String s)

public void setContentLength (int i)

public void setContentType (String ct)

public void setDateHeader (String s, long l)

public void setHeader (String name, String value)

public void setIntHeader (String s, int i)

public void setLocale (Locale locale)

public void setStatus (int i)

public void setStatus (int i, String s)

public String toString ()