public interface HttpResponse
- Author:
- Vladlen Larionov
-
Method Summary
| Modifier and Type |
Method |
Description |
void |
dump(java.io.Writer out) |
Dump response data to characters output for further logging
|
java.io.OutputStream |
getOutputStream() |
|
boolean |
isResponded() |
Returns true if the server has sent any data to a client
|
void |
sendData(java.nio.ByteBuffer byteBuffer,
java.lang.String contentType,
java.lang.Integer statusCode) |
Send binary response
|
default void |
sendRedirect(java.lang.String location) |
|
void |
sendRedirect(java.lang.String location,
java.lang.Integer statusCode) |
Send redirect (Http header Location)
|
void |
sendText(java.lang.String text,
java.lang.String contentType,
java.lang.Integer statusCode) |
Send text response
|
void |
setContenType(java.lang.String contentType) |
|
void |
setCookie(HttpCookie cookie) |
|
void |
setHeader(java.lang.String name,
java.lang.String vale) |
|
void |
setStatusCode(java.lang.Integer code) |
|
-
Method Details
-
void setStatusCode(java.lang.Integer code)
-
void setContenType(java.lang.String contentType)
-
-
void setHeader(java.lang.String name,
java.lang.String vale)
-
void sendText(java.lang.String text,
java.lang.String contentType,
java.lang.Integer statusCode)
Send text response
-
void sendData(java.nio.ByteBuffer byteBuffer,
java.lang.String contentType,
java.lang.Integer statusCode)
Send binary response
-
void sendRedirect(java.lang.String location,
java.lang.Integer statusCode)
Send redirect (Http header Location)
-
default void sendRedirect(java.lang.String location)
-
java.io.OutputStream getOutputStream()
-
boolean isResponded()
Returns true if the server has sent any data to a client
- Returns:
-
void dump(java.io.Writer out)
Dump response data to characters output for further logging