public static HttpURLConnection setMetadata ( final URI uri , final RequestOptions options , UriQueryBuilder builder , final OperationContext opContext ) throws IOException , URISyntaxException , StorageException { if ( builder == null ) { builder = new UriQueryBuilder ( ) ; } builder . add ( Constants . QueryConstants . COMPONENT , METADATA ) ; final HttpURLConnection retConnection = createURLConnection ( uri , options , builder , opContext ) ; retConnection . setFixedLengthStreamingMode ( 0 ) ; retConnection . setDoOutput ( true ) ; retConnection . setRequestMethod ( Constants . HTTP_PUT ) ; return retConnection ; }
Sets the metadata . Sign with 0 length .