Search in sources :

Example 1 with CacheDirective

use of org.eclipse.hono.util.CacheDirective in project hono by eclipse.

the class AbstractRequestResponseClient method getRequestResponseResult.

private R getRequestResponseResult(final Message message) {
    final Integer status = MessageHelper.getApplicationProperty(message.getApplicationProperties(), MessageHelper.APP_PROPERTY_STATUS, Integer.class);
    if (status == null) {
        return null;
    } else {
        final String payload = MessageHelper.getPayload(message);
        final CacheDirective cacheDirective = CacheDirective.from(MessageHelper.getCacheDirective(message));
        return getResult(status, payload, cacheDirective);
    }
}
Also used : CacheDirective(org.eclipse.hono.util.CacheDirective)

Aggregations

CacheDirective (org.eclipse.hono.util.CacheDirective)1