Package com.hexagonkt.http.model
Class HttpResponse
-
- All Implemented Interfaces:
-
com.hexagonkt.http.model.HttpBase,com.hexagonkt.http.model.HttpMessage,com.hexagonkt.http.model.HttpResponsePort
public final class HttpResponse implements HttpResponsePort
-
-
Field Summary
Fields Modifier and Type Field Description private final Objectbodyprivate final Headersheadersprivate final ContentTypecontentTypeprivate final List<Cookie>cookiesprivate final HttpStatusstatusprivate final LongcontentLengthprivate final Function1<WsSession, Unit>onConnectprivate final Function2<WsSession, ByteArray, Unit>onBinaryprivate final Function2<WsSession, String, Unit>onTextprivate final Function2<WsSession, ByteArray, Unit>onPingprivate final Function2<WsSession, ByteArray, Unit>onPongprivate final Function3<WsSession, Integer, String, Unit>onClose
-
Constructor Summary
Constructors Constructor Description HttpResponse(Object body, Headers headers, ContentType contentType, List<Cookie> cookies, HttpStatus status, Long contentLength, Function1<WsSession, Unit> onConnect, Function2<WsSession, ByteArray, Unit> onBinary, Function2<WsSession, String, Unit> onText, Function2<WsSession, ByteArray, Unit> onPing, Function2<WsSession, ByteArray, Unit> onPong, Function3<WsSession, Integer, String, Unit> onClose)
-
Method Summary
Modifier and Type Method Description ObjectgetBody()HeadersgetHeaders()ContentTypegetContentType()List<Cookie>getCookies()HttpStatusgetStatus()LonggetContentLength()Function1<WsSession, Unit>getOnConnect()Function2<WsSession, ByteArray, Unit>getOnBinary()Function2<WsSession, String, Unit>getOnText()Function2<WsSession, ByteArray, Unit>getOnPing()Function2<WsSession, ByteArray, Unit>getOnPong()Function3<WsSession, Integer, String, Unit>getOnClose()HttpResponsePortwith(HttpStatus status, Object body, Headers headers, ContentType contentType, List<Cookie> cookies, Function1<WsSession, Unit> onConnect, Function2<WsSession, ByteArray, Unit> onBinary, Function2<WsSession, String, Unit> onText, Function2<WsSession, ByteArray, Unit> onPing, Function2<WsSession, ByteArray, Unit> onPong, Function3<WsSession, Integer, String, Unit> onClose)-
Methods inherited from class com.hexagonkt.http.model.HttpResponsePort
plus, plus, plus, plus -
Methods inherited from class com.hexagonkt.http.model.HttpMessage
cookiesMap -
Methods inherited from class com.hexagonkt.http.model.HttpBase
bodyString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
HttpResponse
HttpResponse(Object body, Headers headers, ContentType contentType, List<Cookie> cookies, HttpStatus status, Long contentLength, Function1<WsSession, Unit> onConnect, Function2<WsSession, ByteArray, Unit> onBinary, Function2<WsSession, String, Unit> onText, Function2<WsSession, ByteArray, Unit> onPing, Function2<WsSession, ByteArray, Unit> onPong, Function3<WsSession, Integer, String, Unit> onClose)
-
-
Method Detail
-
getBody
Object getBody()
-
getHeaders
Headers getHeaders()
-
getContentType
ContentType getContentType()
-
getCookies
List<Cookie> getCookies()
-
getStatus
HttpStatus getStatus()
-
getContentLength
Long getContentLength()
-
getOnConnect
Function1<WsSession, Unit> getOnConnect()
-
getOnBinary
Function2<WsSession, ByteArray, Unit> getOnBinary()
-
getOnClose
Function3<WsSession, Integer, String, Unit> getOnClose()
-
with
HttpResponsePort with(HttpStatus status, Object body, Headers headers, ContentType contentType, List<Cookie> cookies, Function1<WsSession, Unit> onConnect, Function2<WsSession, ByteArray, Unit> onBinary, Function2<WsSession, String, Unit> onText, Function2<WsSession, ByteArray, Unit> onPing, Function2<WsSession, ByteArray, Unit> onPong, Function3<WsSession, Integer, String, Unit> onClose)
-
-
-
-