public abstract class HttpTransportResponse extends UriTransportResponse implements TransportResponse
Modifier and Type | Field and Description |
---|---|
static int |
SC_FOUND |
static int |
SC_INTERNAL_SERVER_ERROR |
static int |
SC_NOT_FOUND |
static int |
SC_OK |
Constructor and Description |
---|
HttpTransportResponse() |
Modifier and Type | Method and Description |
---|---|
void |
sendError(int status,
String message) |
void |
sendRedirect(int status,
String location) |
void |
setContentLength(int contentLength) |
void |
setContentType(String contentType) |
abstract void |
setHeader(String name,
String value) |
abstract void |
setStatus(int status) |
abstract void |
writeBody(byte[] bytes,
boolean close) |
abstract void |
writeBody(String string,
boolean close) |
public static final int SC_OK
public static final int SC_FOUND
public static final int SC_NOT_FOUND
public static final int SC_INTERNAL_SERVER_ERROR
public abstract void setStatus(int status)
public abstract void writeBody(String string, boolean close) throws IOException
IOException
public abstract void writeBody(byte[] bytes, boolean close) throws IOException
IOException
public void setContentType(String contentType)
public void setContentLength(int contentLength)
public void sendRedirect(int status, String location) throws IOException
IOException
public void sendError(int status, String message) throws IOException
IOException
Copyright © 2017. All rights reserved.