private static String valueTypeToString(final ValueType valueType) { return valueType.name().toLowerCase().replaceAll("_", "-"); }
@Override protected BrokerResponse<T> readResponse() { if (isRejection()) { final BrokerRejection brokerRejection = new BrokerRejection( request.getIntent(), request.getKey(), response.getRejectionType(), response.getRejectionReason()); return new BrokerRejectionResponse<>(brokerRejection); } else if (isValidValueType()) { final T responseDto = toResponseDto(response.getValue()); return new BrokerResponse<>(responseDto, response.getPartitionId(), response.getKey()); } else { throw new UnsupportedBrokerResponseException( request.getValueType().name(), response.getValueType().name()); } }
String.format( "Expected to map value type %s to intent type, but did not recognize the value type", valueType.name()));
String.format( "Expected to map value type %s to intent type, but did not recognize the value type", valueType.name()));
String.format( "Expected to map value type %s to intent type, but did not recognize the value type", valueType.name()));
String.format( "Expected to map value type %s to intent type, but did not recognize the value type", valueType.name()));