StringUtils.fromByteBuffer(entry.getValue().getBinaryValue())); if (binaryListValuesListValue != null) { request.addParameter("MessageAttribute." + messageAttributesListIndex + ".Value.BinaryListValue." + binaryListValuesListIndex, StringUtils.fromByteBuffer(binaryListValuesListValue));
+ ".Value.BinaryValue", StringUtils.fromByteBuffer(entry.getValue().getBinaryValue())); if (binaryListValuesListValue != null) { request.addParameter("SendMessageBatchRequestEntry." + entriesListIndex + ".MessageAttribute." + messageAttributesListIndex + ".Value.BinaryListValue." + binaryListValuesListIndex, StringUtils.fromByteBuffer(binaryListValuesListValue));
StringUtils.fromByteBuffer(entry.getValue().getBinaryValue()));
request.addParameter("RawMessage.Data", StringUtils.fromByteBuffer(rawMessage.getData()));
public void marshall(RawMessage _rawMessage, Request<?> request, String _prefix) { String prefix; if (_rawMessage.getData() != null) { prefix = _prefix + "Data"; java.nio.ByteBuffer data = _rawMessage.getData(); request.addParameter(prefix, StringUtils.fromByteBuffer(data)); } }
/** * Tests that {@link StringUtils#fromByteBuffer(ByteBuffer)} correctly * base64 encodes the contents in a ByteBuffer and returns the correct * result. */ @Test public void testFromByteBuffer() { final String expectedData = "hello world"; final String expectedEncodedData = "aGVsbG8gd29ybGQ="; final ByteBuffer byteBuffer = ByteBuffer.wrap(expectedData.getBytes(UTF8)); final String encodedData = StringUtils.fromByteBuffer(byteBuffer); assertEquals(expectedEncodedData, encodedData); }
public void marshall(MessageAttributeValue _messageAttributeValue, Request<?> request, String _prefix) { String prefix; if (_messageAttributeValue.getDataType() != null) { prefix = _prefix + "DataType"; String dataType = _messageAttributeValue.getDataType(); request.addParameter(prefix, StringUtils.fromString(dataType)); } if (_messageAttributeValue.getStringValue() != null) { prefix = _prefix + "StringValue"; String stringValue = _messageAttributeValue.getStringValue(); request.addParameter(prefix, StringUtils.fromString(stringValue)); } if (_messageAttributeValue.getBinaryValue() != null) { prefix = _prefix + "BinaryValue"; java.nio.ByteBuffer binaryValue = _messageAttributeValue.getBinaryValue(); request.addParameter(prefix, StringUtils.fromByteBuffer(binaryValue)); } }
prefix = _prefix + "BinaryValue"; java.nio.ByteBuffer binaryValue = _messageAttributeValue.getBinaryValue(); request.addParameter(prefix, StringUtils.fromByteBuffer(binaryValue)); prefix = binaryListValuesPrefix + "." + binaryListValuesIndex; if (binaryListValuesItem != null) { request.addParameter(prefix, StringUtils.fromByteBuffer(binaryListValuesItem));
StringUtils.fromByteBuffer(entry.getValue().getBinaryValue())); if (binaryListValuesListValue != null) { request.addParameter("MessageAttribute." + messageAttributesListIndex + ".Value.BinaryListValue." + binaryListValuesListIndex, StringUtils.fromByteBuffer(binaryListValuesListValue));
+ ".Value.BinaryValue", StringUtils.fromByteBuffer(entry.getValue().getBinaryValue())); if (binaryListValuesListValue != null) { request.addParameter("SendMessageBatchRequestEntry." + entriesListIndex + ".MessageAttribute." + messageAttributesListIndex + ".Value.BinaryListValue." + binaryListValuesListIndex, StringUtils.fromByteBuffer(binaryListValuesListValue));
public void marshall(MessageAttributeValue _messageAttributeValue, Request<?> request, String _prefix) { String prefix; if (_messageAttributeValue.getDataType() != null) { prefix = _prefix + "DataType"; String dataType = _messageAttributeValue.getDataType(); request.addParameter(prefix, StringUtils.fromString(dataType)); } if (_messageAttributeValue.getStringValue() != null) { prefix = _prefix + "StringValue"; String stringValue = _messageAttributeValue.getStringValue(); request.addParameter(prefix, StringUtils.fromString(stringValue)); } if (_messageAttributeValue.getBinaryValue() != null) { prefix = _prefix + "BinaryValue"; java.nio.ByteBuffer binaryValue = _messageAttributeValue.getBinaryValue(); request.addParameter(prefix, StringUtils.fromByteBuffer(binaryValue)); } }
prefix = _prefix + "BinaryValue"; java.nio.ByteBuffer binaryValue = _messageAttributeValue.getBinaryValue(); request.addParameter(prefix, StringUtils.fromByteBuffer(binaryValue)); prefix = binaryListValuesPrefix + "." + binaryListValuesIndex; if (binaryListValuesItem != null) { request.addParameter(prefix, StringUtils.fromByteBuffer(binaryListValuesItem));
request.addParameter("RawMessage.Data", StringUtils.fromByteBuffer(rawMessage.getData()));