Package kos.api
Class AbstractResponse
- java.lang.Object
-
- kos.api.AbstractResponse
-
- All Implemented Interfaces:
Response
- Direct Known Subclasses:
EmptyResponse,RawResponse,SerializableResponse
abstract class AbstractResponse extends Object implements Response
-
-
Field Summary
Fields Modifier and Type Field Description (package private) @NonNull Map<CharSequence,CharSequence>headers(package private) intstatusCode-
Fields inherited from interface kos.api.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 AbstractResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsend(KosContext kosContext, io.vertx.core.http.HttpServerResponse response)protected voidsendStatusAndHeader(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.api.Response
addHeader, headers, headers, statusCode, statusCode
-
-
-
-
Field Detail
-
statusCode
int statusCode
-
headers
@NonNull @NonNull Map<CharSequence,CharSequence> headers
-
-
Method Detail
-
send
public void send(KosContext kosContext, io.vertx.core.http.HttpServerResponse response)
-
sendStatusAndHeader
protected void sendStatusAndHeader(io.vertx.core.http.HttpServerResponse response)
-
-