public class ServletResponse extends Object implements Response, RedirectResponse
Response
for HttpServletResponse
.Constructor and Description |
---|
ServletResponse(javax.servlet.http.HttpServletResponse httpServletResponse) |
Modifier and Type | Method and Description |
---|---|
javax.servlet.http.HttpServletResponse |
getHttpServletResponse() |
OutputStream |
getOutputStream() |
void |
sendRedirect(String location) |
void |
setContentLength(int length) |
void |
setContentType(String mimeType) |
public ServletResponse(javax.servlet.http.HttpServletResponse httpServletResponse)
public javax.servlet.http.HttpServletResponse getHttpServletResponse()
public OutputStream getOutputStream() throws IOException
getOutputStream
in interface Response
IOException
public void setContentLength(int length)
setContentLength
in interface Response
public void setContentType(String mimeType)
setContentType
in interface Response
public void sendRedirect(String location) throws IOException
sendRedirect
in interface RedirectResponse
IOException
Copyright © 2004–2021 XWiki. All rights reserved.