public class Response extends Object
| Constructor and Description |
|---|
Response(Request request,
javax.servlet.http.HttpServletResponse response) |
| Modifier and Type | Method and Description |
|---|---|
void |
addHeader(String name,
String value) |
boolean |
checkRequestHelper(com.atlassian.plugin.servlet.util.LastModifiedHandler lastModifiedHandler)
Deprecated.
|
OutputStream |
getOutputStream() |
int |
getStatus() |
long |
numBytesWritten()
Returns the total number of bytes written to the output stream.
|
void |
sendError(int code) |
void |
sendRedirect(String location,
String contentType) |
void |
setContentType(String contentType) |
void |
setContentTypeIfNotBlank(String contentType) |
void |
setStatus(int status) |
public Response(Request request, javax.servlet.http.HttpServletResponse response)
@Deprecated public boolean checkRequestHelper(@Nonnull com.atlassian.plugin.servlet.util.LastModifiedHandler lastModifiedHandler)
Only exists because WRM common has been left behind accidentally in Atlassian Plugins repo and we can't get both upgraded at the same time AND we don't want to expose the underlying HttpServletResponse
lastModifiedHandler - last modified handler to checkRequest withpublic void sendError(int code)
public void setContentType(String contentType)
public OutputStream getOutputStream()
public void setContentTypeIfNotBlank(String contentType)
public void setStatus(int status)
public int getStatus()
public long numBytesWritten()
Copyright © 2024 Atlassian. All rights reserved.