HttpServletResponse
, WebApplicationResponse
, WebApplicationServerResponse
DefaultWebApplicationResponse
, DefaultWebApplicationServerResponse
, EmbeddedResponse
, HttpServletResponseWrapper
, NanoResponse
, ServletResponseWrapper
public interface ServletResponse
Modifier and Type | Method | Description |
---|---|---|
void |
flushBuffer() |
Flush the buffer.
|
int |
getBufferSize() |
Get the buffer size.
|
String |
getCharacterEncoding() |
Get the character encoding.
|
String |
getContentType() |
Get the content type.
|
Locale |
getLocale() |
Get the locale.
|
ServletOutputStream |
getOutputStream() |
Get the output stream.
|
PrintWriter |
getWriter() |
Get the writer.
|
boolean |
isCommitted() |
Is committed.
|
void |
reset() |
Reset.
|
void |
resetBuffer() |
Reset the buffer.
|
void |
setBufferSize(int bufferSize) |
Set the buffer size.
|
void |
setCharacterEncoding(String characterEncoding) |
Set the character encoding.
|
void |
setContentLength(int contentLength) |
Set the content length.
|
void |
setContentLengthLong(long contentLength) |
Set the content length.
|
void |
setContentType(String contentType) |
Set the content type.
|
void |
setLocale(Locale locale) |
Set the locale.
|
void flushBuffer() throws IOException
IOException
- when an I/O error occurs.int getBufferSize()
String getCharacterEncoding()
String getContentType()
Locale getLocale()
ServletOutputStream getOutputStream() throws IOException
IOException
- when an I/O error occurs.PrintWriter getWriter() throws IOException
IOException
- when an I/O error occurs.boolean isCommitted()
void reset()
void resetBuffer()
void setBufferSize(int bufferSize)
bufferSize
- the buffer size.void setCharacterEncoding(String characterEncoding)
characterEncoding
- the character encoding.void setContentLength(int contentLength)
contentLength
- the content length.void setContentLengthLong(long contentLength)
contentLength
- the content length.void setContentType(String contentType)
contentType
- the content type.void setLocale(Locale locale)
locale
- the locale.Copyright © 2020 Piranha Cloud. All rights reserved.