
public interface HttpResponse extends Response
| Modifier and Type | Field and Description |
|---|---|
static int |
SC_INTERNAL_SERVER_ERROR |
static int |
SC_NOT_FOUND |
static int |
SC_OK |
| Modifier and Type | Method and Description |
|---|---|
OutputStream |
getBodyOutputStream() |
Writer |
getBodyWriter() |
void |
sendError(int sc,
String msg) |
void |
sendRedirect(String location) |
void |
setContentLength(int len) |
void |
setContentType(String type) |
void |
setHeader(String name,
String value) |
void |
setStatus(int sc) |
static final int SC_OK
static final int SC_NOT_FOUND
static final int SC_INTERNAL_SERVER_ERROR
void setStatus(int sc)
void setContentType(String type)
void setContentLength(int len)
void sendRedirect(String location) throws IOException
IOExceptionvoid sendError(int sc,
String msg)
throws IOException
IOExceptionWriter getBodyWriter() throws IOException
IOExceptionOutputStream getBodyOutputStream() throws IOException
IOExceptionCopyright © 2015. All Rights Reserved.