Search in sources :

Example 1 with ResponseStatus

use of com.codingchili.core.protocol.ResponseStatus in project chili-core by codingchili.

the class ListenerTestCases method handleBody.

protected void handleBody(ResponseListener listener, Buffer body) {
    ResponseStatus status = ResponseStatus.valueOf(body.toJsonObject().getString(CoreStrings.PROTOCOL_STATUS));
    listener.handle(body.toJsonObject(), status);
}
Also used : ResponseStatus(com.codingchili.core.protocol.ResponseStatus)

Aggregations

ResponseStatus (com.codingchili.core.protocol.ResponseStatus)1