Package kos.core
Class SerializableResponse<T>
- java.lang.Object
-
- kos.core.EmptyResponse
-
- kos.core.SerializableResponse<T>
-
- All Implemented Interfaces:
Response
class SerializableResponse<T> extends EmptyResponse
-
-
Field Summary
Fields Modifier and Type Field Description (package private) Tpayload-
Fields inherited from class kos.core.EmptyResponse
headers, statusCode
-
Fields inherited from interface kos.core.Response
ACCEPTED, BAD_GATEWAY, BAD_REQUEST, CONFLICT, CREATED, FORBIDDEN, GATEWAY_TIMEOUT, GONE, METHOD_NOT_ALLOWED, NO_CONTENT, NOT_ACCEPTABLE, NOT_FOUND, NOT_IMPLEMENTED, SERVICE_UNAVAILABLE, TOO_MANY_REQUESTS, UNAUTHORIZED
-
-
Constructor Summary
Constructors Constructor Description SerializableResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsend(io.vertx.core.http.HttpServerResponse response)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface kos.core.Response
headers, headers, statusCode, statusCode
-
-
-
-
Field Detail
-
payload
final T payload
-
-
Method Detail
-
send
public void send(io.vertx.core.http.HttpServerResponse response)
- Specified by:
sendin interfaceResponse- Overrides:
sendin classEmptyResponse
-
-