Package org.xwiki.container.servlet
Class ServletResponse
- java.lang.Object
-
- org.xwiki.container.servlet.ServletResponse
-
- All Implemented Interfaces:
RedirectResponse
,Response
public class ServletResponse extends Object implements Response, RedirectResponse
This is the implementation ofResponse
forHttpServletResponse
.- Version:
- $Id: d23d98b58b4b9a9ba9b19ef93efe260c107ba4bd $
-
-
Constructor Summary
Constructors Constructor Description ServletResponse(javax.servlet.http.HttpServletResponse httpServletResponse)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.servlet.http.HttpServletResponse
getHttpServletResponse()
OutputStream
getOutputStream()
void
sendRedirect(String location)
void
setContentLength(int length)
void
setContentType(String mimeType)
-
-
-
Method Detail
-
getHttpServletResponse
public javax.servlet.http.HttpServletResponse getHttpServletResponse()
-
getOutputStream
public OutputStream getOutputStream() throws IOException
- Specified by:
getOutputStream
in interfaceResponse
- Throws:
IOException
-
setContentLength
public void setContentLength(int length)
- Specified by:
setContentLength
in interfaceResponse
-
setContentType
public void setContentType(String mimeType)
- Specified by:
setContentType
in interfaceResponse
-
sendRedirect
public void sendRedirect(String location) throws IOException
- Specified by:
sendRedirect
in interfaceRedirectResponse
- Throws:
IOException
-
-