microsoft-azure-storage/src/com/microsoft/azure/storage/core/BaseRequest.java
private static void addMetadata(final HttpURLConnection request, final String name, final String value,
            final OperationContext opContext) {
        if (Utility.isNullOrEmptyOrWhitespace(name)) {
            throw new IllegalArgumentException(SR.METADATA_KEY_INVALID);
        }
        else if (Utility.isNullOrEmptyOrWhitespace(value)) {
            throw new IllegalArgumentException(SR.METADATA_VALUE_INVALID);
        }

        request.setRequestProperty(Constants.HeaderConstants.PREFIX_FOR_STORAGE_METADATA + name, value);
    }
private static void addMetadata(final HttpURLConnection request, final String name, final String value,
            final OperationContext opContext) {
        if (Utility.isNullOrEmptyOrWhitespace(name)) {
            throw new IllegalArgumentException(SR.METADATA_KEY_INVALID);
        }
        else if (Utility.isNullOrEmptyOrWhitespace(value)) {
            throw new IllegalArgumentException(SR.METADATA_VALUE_INVALID);
        }

        request.setRequestProperty(Constants.HeaderConstants.PREFIX_FOR_STORAGE_METADATA + name, value);
    }
private static void addMetadata ( final HttpURLConnection request , final String name , final String value , final OperationContext opContext ) { if ( Utility . isNullOrEmptyOrWhitespace ( name ) ) { throw new IllegalArgumentException ( SR . METADATA_KEY_INVALID ) ; } else if ( Utility . isNullOrEmptyOrWhitespace ( value ) ) { throw new IllegalArgumentException ( SR . METADATA_VALUE_INVALID ) ; } request . setRequestProperty ( Constants . HeaderConstants . PREFIX_FOR_STORAGE_METADATA + name , value ) ; }
Adds the metadata.

@param opContext
an object used to track the execution of the operation
@param request
The request.
@param name
The metadata name.
@param value
The metadata value.
Adds the metadata .