public interface HttpResponse extends Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
addNewCookie(javax.ws.rs.core.NewCookie cookie) |
default void |
close() |
void |
flushBuffer() |
default AsyncOutputStream |
getAsyncOutputStream() |
javax.ws.rs.core.MultivaluedMap<String,Object> |
getOutputHeaders() |
OutputStream |
getOutputStream() |
int |
getStatus() |
boolean |
isCommitted() |
void |
reset()
reset status and headers.
|
void |
sendError(int status) |
void |
sendError(int status,
String message) |
void |
setOutputStream(OutputStream os) |
void |
setStatus(int status) |
int getStatus()
void setStatus(int status)
OutputStream getOutputStream() throws IOException
IOExceptionvoid setOutputStream(OutputStream os)
default AsyncOutputStream getAsyncOutputStream() throws IOException
IOExceptionvoid addNewCookie(javax.ws.rs.core.NewCookie cookie)
void sendError(int status)
throws IOException
IOExceptionvoid sendError(int status,
String message)
throws IOException
IOExceptionboolean isCommitted()
void reset()
default void close()
throws IOException
close in interface AutoCloseableclose in interface CloseableIOExceptionvoid flushBuffer()
throws IOException
IOExceptionCopyright © 2020 JBoss by Red Hat. All rights reserved.