public interface HttpResponse
- Author:
- Vladlen Larionov
-
Method Summary
Modifier and TypeMethodDescriptionvoidDump response data to characters output for further loggingbooleanReturns true if the server has sent any data to a clientvoidsendData(ByteBuffer byteBuffer, String contentType, Integer statusCode) Send binary responsedefault voidsendRedirect(String location) voidsendRedirect(String location, Integer statusCode) Send redirect (Http header Location)voidSend text responsevoidsetContenType(String contentType) voidsetCookie(HttpCookie cookie) voidvoidsetStatusCode(Integer code)
-
Method Details
-
setStatusCode
-
setContenType
-
setCookie
-
setHeader
-
sendText
Send text response -
sendData
Send binary response -
sendRedirect
Send redirect (Http header Location) -
sendRedirect
-
getOutputStream
OutputStream getOutputStream() -
isResponded
boolean isResponded()Returns true if the server has sent any data to a client- Returns:
-
dump
Dump response data to characters output for further logging
-