Package kos.api
Class EmptyResponse
- java.lang.Object
-
- kos.api.AbstractResponse
-
- kos.api.EmptyResponse
-
- All Implemented Interfaces:
Response
class EmptyResponse extends AbstractResponse
-
-
Field Summary
-
Fields inherited from class kos.api.AbstractResponse
headers, statusCode
-
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 Modifier Constructor Description EmptyResponse()privateEmptyResponse(int statusCode, @NonNull Map<CharSequence,CharSequence> headers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResponseaddHeader(CharSequence key, CharSequence value)-
Methods inherited from class kos.api.AbstractResponse
send, sendStatusAndHeader
-
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
headers, headers, statusCode, statusCode
-
-
-
-
Constructor Detail
-
EmptyResponse
public EmptyResponse()
-
EmptyResponse
private EmptyResponse(int statusCode, @NonNull @NonNull Map<CharSequence,CharSequence> headers)
-
-
Method Detail
-
addHeader
public Response addHeader(CharSequence key, CharSequence value)
-
-