/** * Constructs a web request to set user-defined metadata for the container, Sign with 0 Length. * * @param uri * A <code>java.net.URI</code> object that specifies the absolute URI. * @param blobOptions * A {@link BlobRequestOptions} 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 CloudBlobClient}. * @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 accessCondition * An {@link AccessCondition} object that represents the access conditions for the container. * @return a HttpURLConnection configured for the operation. * @throws StorageException * */ public static HttpURLConnection setContainerMetadata(final URI uri, final BlobRequestOptions blobOptions, final OperationContext opContext, final AccessCondition accessCondition) throws IOException, URISyntaxException, StorageException { final UriQueryBuilder containerBuilder = getContainerUriQueryBuilder(); return setMetadata(uri, blobOptions, opContext, accessCondition, containerBuilder); }
/** * Constructs a web request to return the user-defined metadata for this container. Sign with no length specified. * * @param uri * A <code>java.net.URI</code> object that specifies the absolute URI. * @param blobOptions * A {@link BlobRequestOptions} 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 CloudBlobClient}. * @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 accessCondition * An {@link AccessCondition} object that represents the access conditions for the container. * @return a HttpURLConnection configured for the operation. * @throws StorageException * */ public static HttpURLConnection getContainerProperties(final URI uri, final BlobRequestOptions blobOptions, final OperationContext opContext, AccessCondition accessCondition) throws IOException, URISyntaxException, StorageException { final UriQueryBuilder containerBuilder = getContainerUriQueryBuilder(); return getProperties(uri, blobOptions, opContext, accessCondition, containerBuilder); }
/** * Constructs a web request to return the user-defined metadata for this container. Sign with no length specified. * * @param uri * A <code>java.net.URI</code> object that specifies the absolute URI. * @param blobOptions * A {@link BlobRequestOptions} 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 CloudBlobClient}. * @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 accessCondition * An {@link AccessCondition} object that represents the access conditions for the container. * @return a HttpURLConnection configured for the operation. * @throws StorageException * */ public static HttpURLConnection getContainerProperties(final URI uri, final BlobRequestOptions blobOptions, final OperationContext opContext, AccessCondition accessCondition) throws IOException, URISyntaxException, StorageException { final UriQueryBuilder containerBuilder = getContainerUriQueryBuilder(); return getProperties(uri, blobOptions, opContext, accessCondition, containerBuilder); }
/** * Constructs a web request to set user-defined metadata for the container, Sign with 0 Length. * * @param uri * A <code>java.net.URI</code> object that specifies the absolute URI. * @param blobOptions * A {@link BlobRequestOptions} 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 CloudBlobClient}. * @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 accessCondition * An {@link AccessCondition} object that represents the access conditions for the container. * @return a HttpURLConnection configured for the operation. * @throws StorageException * */ public static HttpURLConnection setContainerMetadata(final URI uri, final BlobRequestOptions blobOptions, final OperationContext opContext, final AccessCondition accessCondition) throws IOException, URISyntaxException, StorageException { final UriQueryBuilder containerBuilder = getContainerUriQueryBuilder(); return setMetadata(uri, blobOptions, opContext, accessCondition, containerBuilder); }
final UriQueryBuilder containerBuilder = getContainerUriQueryBuilder(); final HttpURLConnection request = BaseRequest.create(uri, blobOptions, containerBuilder, opContext);
final UriQueryBuilder containerBuilder = getContainerUriQueryBuilder(); final HttpURLConnection request = BaseRequest.create(uri, blobOptions, containerBuilder, opContext);
final UriQueryBuilder builder = getContainerUriQueryBuilder(); builder.add(Constants.QueryConstants.COMPONENT, Constants.QueryConstants.ACL);
final UriQueryBuilder builder = getContainerUriQueryBuilder(); builder.add(Constants.QueryConstants.COMPONENT, Constants.QueryConstants.ACL);
/** * Constructs a web request to delete the container and all of blobs within it. Sign with no length specified. * * @param uri * A <code>java.net.URI</code> object that specifies the absolute URI. * @param blobOptions * A {@link BlobRequestOptions} 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 CloudBlobClient}. * @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 accessCondition * An {@link AccessCondition} object that represents the access conditions for the container. * @return a HttpURLConnection configured for the operation. * @throws StorageException * @throws IllegalArgumentException */ public static HttpURLConnection deleteContainer(final URI uri, final BlobRequestOptions blobOptions, final OperationContext opContext, final AccessCondition accessCondition) throws IOException, URISyntaxException, StorageException { final UriQueryBuilder containerBuilder = getContainerUriQueryBuilder(); HttpURLConnection request = BaseRequest.delete(uri, blobOptions, containerBuilder, opContext); if (accessCondition != null) { accessCondition.applyConditionToRequest(request); } return request; }
/** * Constructs a web request to delete the container and all of blobs within it. Sign with no length specified. * * @param uri * A <code>java.net.URI</code> object that specifies the absolute URI. * @param blobOptions * A {@link BlobRequestOptions} 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 CloudBlobClient}. * @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 accessCondition * An {@link AccessCondition} object that represents the access conditions for the container. * @return a HttpURLConnection configured for the operation. * @throws StorageException * @throws IllegalArgumentException */ public static HttpURLConnection deleteContainer(final URI uri, final BlobRequestOptions blobOptions, final OperationContext opContext, final AccessCondition accessCondition) throws IOException, URISyntaxException, StorageException { final UriQueryBuilder containerBuilder = getContainerUriQueryBuilder(); HttpURLConnection request = BaseRequest.delete(uri, blobOptions, containerBuilder, opContext); if (accessCondition != null) { accessCondition.applyConditionToRequest(request); } return request; }
/** * Constructs a web request to return the ACL for this container. Sign with no length specified. * * @param uri * The absolute URI to the container. * @param accessCondition * An {@link AccessCondition} object that represents the access conditions for the container. * @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 */ public static HttpURLConnection getAcl(final URI uri, final BlobRequestOptions blobOptions, final AccessCondition accessCondition, final OperationContext opContext) throws IOException, URISyntaxException, StorageException { final UriQueryBuilder builder = getContainerUriQueryBuilder(); builder.add(Constants.QueryConstants.COMPONENT, Constants.QueryConstants.ACL); final HttpURLConnection request = createURLConnection(uri, builder, blobOptions, opContext); request.setRequestMethod(Constants.HTTP_GET); if (accessCondition != null) { accessCondition.applyLeaseConditionToRequest(request); } return request; }
/** * Constructs a web request to return the ACL for this container. Sign with no length specified. * * @param uri * The absolute URI to the container. * @param timeout * The server timeout interval. * @param accessCondition * An {@link AccessCondition} object that represents the access conditions for the container. * @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 */ public static HttpURLConnection getAcl(final URI uri, final BlobRequestOptions blobOptions, final AccessCondition accessCondition, final OperationContext opContext) throws IOException, URISyntaxException, StorageException { final UriQueryBuilder builder = getContainerUriQueryBuilder(); builder.add(Constants.QueryConstants.COMPONENT, Constants.QueryConstants.ACL); final HttpURLConnection request = createURLConnection(uri, builder, blobOptions, opContext); request.setRequestMethod(Constants.HTTP_GET); if (accessCondition != null) { accessCondition.applyLeaseConditionToRequest(request); } return request; }
throws IOException, URISyntaxException, StorageException { final UriQueryBuilder builder = getContainerUriQueryBuilder(); builder.add(Constants.QueryConstants.COMPONENT, BlobConstants.LEASE);
throws IOException, URISyntaxException, StorageException { final UriQueryBuilder builder = getContainerUriQueryBuilder(); builder.add(Constants.QueryConstants.COMPONENT, BlobConstants.LEASE);
IOException, StorageException { final UriQueryBuilder builder = getContainerUriQueryBuilder(); builder.add(Constants.QueryConstants.COMPONENT, Constants.QueryConstants.LIST);
IOException, StorageException { final UriQueryBuilder builder = getContainerUriQueryBuilder(); builder.add(Constants.QueryConstants.COMPONENT, Constants.QueryConstants.LIST);