/** * Constructs a web request to create a new queue. Sign the web request with * a length of 0. * * @param uri * A <code>URI</code> object that specifies the absolute URI to * the queue. * @param queueOptions * A {@link QueueRequestOptions} object that specifies execution options such as retry policy and timeout * settings for the operation. Specify <code>null</code> to use the request options specified on the * {@link CloudQueueClient}. * @param opContext * An {@link OperationContext} object that represents the context * for the current operation. This object is used to track * requests to the storage service, and to provide additional * runtime information about the operation. * * @return An <code>HttpURLConnection</code> configured for the specified * operation. * * @throws IOException * @throws URISyntaxException * If the URI is not valid. * @throws StorageException * If a storage service error occurred during the operation. */ public static HttpURLConnection create(final URI uri, final QueueRequestOptions queueOptions, final OperationContext opContext) throws IOException, URISyntaxException, StorageException { return BaseRequest.create(uri, queueOptions, null, opContext); }
/** * Constructs a web request to create a new queue. Sign the web request with * a length of 0. * * @param uri * A <code>URI</code> object that specifies the absolute URI to * the queue. * @param queueOptions * A {@link QueueRequestOptions} object that specifies execution options such as retry policy and timeout * settings for the operation. Specify <code>null</code> to use the request options specified on the * {@link CloudQueueClient}. * @param opContext * An {@link OperationContext} object that represents the context * for the current operation. This object is used to track * requests to the storage service, and to provide additional * runtime information about the operation. * * @return An <code>HttpURLConnection</code> configured for the specified * operation. * * @throws IOException * @throws URISyntaxException * If the URI is not valid. * @throws StorageException * If a storage service error occurred during the operation. */ public static HttpURLConnection create(final URI uri, final QueueRequestOptions queueOptions, final OperationContext opContext) throws IOException, URISyntaxException, StorageException { return BaseRequest.create(uri, queueOptions, null, opContext); }
/** * Constructs a web request to create a new directory. Sign with 0 length. * * @param uri * A <code>java.net.URI</code> object that specifies the absolute URI. * @param fileOptions * A {@link FileRequestOptions} object that specifies execution options such as retry policy and timeout * settings for the operation. Specify <code>null</code> to use the request options specified on the * {@link CloudFileClient}. * @param opContext * An {@link OperationContext} object that represents the context for the current operation. This object * is used to track requests to the storage service, and to provide additional runtime information about * the operation. * @return a HttpURLConnection configured for the operation. * @throws StorageException * @throws IllegalArgumentException */ public static HttpURLConnection createDirectory(final URI uri, final FileRequestOptions fileOptions, final OperationContext opContext) throws IOException, URISyntaxException, StorageException { final UriQueryBuilder directoryBuilder = getDirectoryUriQueryBuilder(); return BaseRequest.create(uri, fileOptions, directoryBuilder, opContext); }
/** * Constructs a web request to create a new directory. Sign with 0 length. * * @param uri * A <code>java.net.URI</code> object that specifies the absolute URI. * @param fileOptions * A {@link FileRequestOptions} object that specifies execution options such as retry policy and timeout * settings for the operation. Specify <code>null</code> to use the request options specified on the * {@link CloudFileClient}. * @param opContext * An {@link OperationContext} object that represents the context for the current operation. This object * is used to track requests to the storage service, and to provide additional runtime information about * the operation. * @return a HttpURLConnection configured for the operation. * @throws StorageException * @throws IllegalArgumentException */ public static HttpURLConnection createDirectory(final URI uri, final FileRequestOptions fileOptions, final OperationContext opContext) throws IOException, URISyntaxException, StorageException { final UriQueryBuilder directoryBuilder = getDirectoryUriQueryBuilder(); return BaseRequest.create(uri, fileOptions, directoryBuilder, opContext); }
final HttpURLConnection request = BaseRequest.create(uri, blobOptions, containerBuilder, opContext);
final HttpURLConnection request = BaseRequest.create(uri, blobOptions, containerBuilder, opContext);
/** * Constructs a web request to create a new share. Sign with 0 length. * * @param uri * A <code>java.net.URI</code> object that specifies the absolute URI. * @param fileOptions * A {@link FileRequestOptions} object that specifies execution options such as retry policy and timeout * settings for the operation. Specify <code>null</code> to use the request options specified on the * {@link CloudFileClient}. * @param opContext * An {@link OperationContext} object that represents the context for the current operation. This object * is used to track requests to the storage service, and to provide additional runtime information about * the operation. * @param properties * The properties to set for the share. * @return a HttpURLConnection configured for the operation. * @throws StorageException * @throws IllegalArgumentException */ public static HttpURLConnection createShare(final URI uri, final FileRequestOptions fileOptions, final OperationContext opContext, final FileShareProperties properties) throws IOException, URISyntaxException, StorageException { final UriQueryBuilder shareBuilder = getShareUriQueryBuilder(); final HttpURLConnection request = BaseRequest.create(uri, fileOptions, shareBuilder, opContext); addProperties(request, properties); return request; }
/** * Constructs a web request to create a new share. Sign with 0 length. * * @param uri * A <code>java.net.URI</code> object that specifies the absolute URI. * @param fileOptions * A {@link FileRequestOptions} object that specifies execution options such as retry policy and timeout * settings for the operation. Specify <code>null</code> to use the request options specified on the * {@link CloudFileClient}. * @param opContext * An {@link OperationContext} object that represents the context for the current operation. This object * is used to track requests to the storage service, and to provide additional runtime information about * the operation. * @param properties * The properties to set for the share. * @return a HttpURLConnection configured for the operation. * @throws StorageException * @throws IllegalArgumentException */ public static HttpURLConnection createShare(final URI uri, final FileRequestOptions fileOptions, final OperationContext opContext, final FileShareProperties properties) throws IOException, URISyntaxException, StorageException { final UriQueryBuilder shareBuilder = getShareUriQueryBuilder(); final HttpURLConnection request = BaseRequest.create(uri, fileOptions, shareBuilder, opContext); addProperties(request, properties); return request; }