public class HttpServerResponse extends Object implements HttpResponse
Constructor and Description |
---|
HttpServerResponse(ResteasyProviderFactory factory,
com.sun.net.httpserver.HttpExchange ex) |
Modifier and Type | Method and Description |
---|---|
protected void |
addHeader(String name,
Object value) |
void |
addNewCookie(javax.ws.rs.core.NewCookie cookie) |
void |
commitHeaders() |
void |
flushBuffer() |
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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, getAsyncOutputStream
public HttpServerResponse(ResteasyProviderFactory factory, com.sun.net.httpserver.HttpExchange ex)
public void commitHeaders() throws IOException
IOException
public int getStatus()
getStatus
in interface HttpResponse
public void setStatus(int status)
setStatus
in interface HttpResponse
public javax.ws.rs.core.MultivaluedMap<String,Object> getOutputHeaders()
getOutputHeaders
in interface HttpResponse
public OutputStream getOutputStream() throws IOException
getOutputStream
in interface HttpResponse
IOException
public void setOutputStream(OutputStream os)
setOutputStream
in interface HttpResponse
public void addNewCookie(javax.ws.rs.core.NewCookie cookie)
addNewCookie
in interface HttpResponse
public void sendError(int status) throws IOException
sendError
in interface HttpResponse
IOException
public void sendError(int status, String message) throws IOException
sendError
in interface HttpResponse
IOException
public boolean isCommitted()
isCommitted
in interface HttpResponse
public void reset()
HttpResponse
reset
in interface HttpResponse
public void flushBuffer() throws IOException
flushBuffer
in interface HttpResponse
IOException
Copyright © 2020 JBoss by Red Hat. All rights reserved.