/** * Creates an empty response for a request ID that contains only the status. * * @param requestId The request ID of the command that this is the response for. * @param deviceId The device ID of the device sending the response. * @param status The HTTP status code indicating the outcome of the command. * @return The response or {@code null} if the request ID could not be parsed, the status is {@code null} or if the * status code is < 200 or >= 600. */ public static CommandResponse from(final String requestId, final String deviceId, final Integer status) { return from(requestId, deviceId, null, null, status); }
@Override public void verifyPlain(final String authzid, final String authcid, final String password, final Handler<AsyncResult<HonoUser>> authenticationResultHandler) { client.verifyPlain(authzid, authcid, password, authenticationResultHandler); }
@Override protected void customizeTenantServiceClientConfig(final RequestResponseClientConfigProperties config) { if (config != null) { config.setName(CONTAINER_ID_HONO_AMQP_ADAPTER); } }
/** * Settles the command message with the <em>accepted</em> outcome. * <p> * This method simply invokes {@link CommandContext#accept(int)} with * 0 credits. */ public void accept() { accept(0); }
/** * Settles the command message with the <em>released</em> outcome. * <p> * This method simply invokes {@link CommandContext#release(int)} with * 0 credits. */ public void release() { release(0); }
/** * Settles the command message with the <em>rejected</em> outcome. * <p> * This method simply invokes {@link CommandContext#reject(ErrorCondition, int)} * with 0 credits. * * @param errorCondition The error condition to send in the disposition frame (may be {@code null}). */ public void reject(final ErrorCondition errorCondition) { reject(errorCondition, 0); }
@Override public void verifyPlain(final String authzid, final String authcid, final String password, final Handler<AsyncResult<HonoUser>> authenticationResultHandler) { client.verifyPlain(authzid, authcid, password, authenticationResultHandler); }