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
IOException
void setOutputStream(OutputStream os)
default AsyncOutputStream getAsyncOutputStream() throws IOException
IOException
void addNewCookie(javax.ws.rs.core.NewCookie cookie)
void sendError(int status) throws IOException
IOException
void sendError(int status, String message) throws IOException
IOException
boolean isCommitted()
void reset()
default void close() throws IOException
close
in interface AutoCloseable
close
in interface Closeable
IOException
void flushBuffer() throws IOException
IOException
Copyright © 2020 JBoss by Red Hat. All rights reserved.