Class Response
java.lang.Object
com.atlassian.plugin.webresource.impl.support.http.Response
Probably would be removed after the refactoring, currently needed to hide some implementation details.
- Since:
- 3.3
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleancheckRequestHelper(com.atlassian.plugin.servlet.util.LastModifiedHandler lastModifiedHandler) Deprecated.intlongReturns the total number of bytes written to the output stream.voidsendError(int code) voidsendRedirect(String location, String contentType) voidsetCharacterEncoding(String characterEncoding) voidsetContentType(String contentType) voidsetContentTypeIfNotBlank(String contentType) voidsetStatus(int status)
-
Constructor Details
-
Response
-
-
Method Details
-
addHeader
-
checkRequestHelper
@Deprecated public boolean checkRequestHelper(@Nonnull com.atlassian.plugin.servlet.util.LastModifiedHandler lastModifiedHandler) Deprecated.DEPRECATED - just like the underlying method.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
- Parameters:
lastModifiedHandler- last modified handler to checkRequest with- Returns:
- lastModifiedHandler#checkRequest
-
sendRedirect
-
sendError
public void sendError(int code) -
setContentType
-
setCharacterEncoding
-
getOutputStream
-
setContentTypeIfNotBlank
-
setStatus
public void setStatus(int status) -
getStatus
public int getStatus() -
numBytesWritten
public long numBytesWritten()Returns the total number of bytes written to the output stream. NOTE: this is not necessarily the size of the Response.- Returns:
- total number of bytes written to the output stream
-