-
- All Implemented Interfaces:
-
com.hexagonkt.http.model.HttpBase,com.hexagonkt.http.model.HttpMessage,com.hexagonkt.http.model.HttpResponse
public final class HttpServerResponse implements HttpResponse
-
-
Field Summary
Fields Modifier and Type Field Description private final Objectbodyprivate final Headersheadersprivate final ContentTypecontentTypeprivate final List<Cookie>cookiesprivate final HttpStatusstatusprivate final Function1<WsServerSession, Unit>onConnectprivate final Function2<WsServerSession, ByteArray, Unit>onBinaryprivate final Function2<WsServerSession, String, Unit>onTextprivate final Function2<WsServerSession, ByteArray, Unit>onPingprivate final Function2<WsServerSession, ByteArray, Unit>onPongprivate final Function3<WsServerSession, WsCloseStatus, String, Unit>onClose
-
Constructor Summary
Constructors Constructor Description HttpServerResponse(Object body, Headers headers, ContentType contentType, List<Cookie> cookies, HttpStatus status, Function1<WsServerSession, Unit> onConnect, Function2<WsServerSession, ByteArray, Unit> onBinary, Function2<WsServerSession, String, Unit> onText, Function2<WsServerSession, ByteArray, Unit> onPing, Function2<WsServerSession, ByteArray, Unit> onPong, Function3<WsServerSession, WsCloseStatus, String, Unit> onClose)
-
Method Summary
Modifier and Type Method Description ObjectgetBody()HeadersgetHeaders()ContentTypegetContentType()List<Cookie>getCookies()HttpStatusgetStatus()final Function1<WsServerSession, Unit>getOnConnect()final Function2<WsServerSession, ByteArray, Unit>getOnBinary()final Function2<WsServerSession, String, Unit>getOnText()final Function2<WsServerSession, ByteArray, Unit>getOnPing()final Function2<WsServerSession, ByteArray, Unit>getOnPong()final Function3<WsServerSession, WsCloseStatus, String, Unit>getOnClose()-
-
Constructor Detail
-
HttpServerResponse
HttpServerResponse(Object body, Headers headers, ContentType contentType, List<Cookie> cookies, HttpStatus status, Function1<WsServerSession, Unit> onConnect, Function2<WsServerSession, ByteArray, Unit> onBinary, Function2<WsServerSession, String, Unit> onText, Function2<WsServerSession, ByteArray, Unit> onPing, Function2<WsServerSession, ByteArray, Unit> onPong, Function3<WsServerSession, WsCloseStatus, String, Unit> onClose)
-
-
Method Detail
-
getBody
Object getBody()
-
getHeaders
Headers getHeaders()
-
getContentType
ContentType getContentType()
-
getCookies
List<Cookie> getCookies()
-
getStatus
HttpStatus getStatus()
-
getOnConnect
final Function1<WsServerSession, Unit> getOnConnect()
-
getOnBinary
final Function2<WsServerSession, ByteArray, Unit> getOnBinary()
-
getOnText
final Function2<WsServerSession, String, Unit> getOnText()
-
getOnPing
final Function2<WsServerSession, ByteArray, Unit> getOnPing()
-
getOnPong
final Function2<WsServerSession, ByteArray, Unit> getOnPong()
-
getOnClose
final Function3<WsServerSession, WsCloseStatus, String, Unit> getOnClose()
-
-
-
-