public static HttpURLConnection snapshotShare ( final URI uri , final FileRequestOptions fileOptions , final OperationContext opContext , final AccessCondition accessCondition ) throws IOException , URISyntaxException , StorageException { final UriQueryBuilder builder = new UriQueryBuilder ( ) ; builder . add ( Constants . QueryConstants . RESOURCETYPE , "share" ) ; builder . add ( Constants . QueryConstants . COMPONENT , Constants . QueryConstants . SNAPSHOT ) ; final HttpURLConnection request = BaseRequest . createURLConnection ( uri , fileOptions , builder , opContext ) ; request . setFixedLengthStreamingMode ( 0 ) ; request . setDoOutput ( true ) ; request . setRequestMethod ( Constants . HTTP_PUT ) ; if ( accessCondition != null ) { accessCondition . applyConditionToRequest ( request ) ; } return request ; }
Constructs a HttpURLConnection to create a snapshot of the share .