/** * 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); }
/** * Constructs a web request to return the properties for this directory. Sign with no length specified. * * @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 accessCondition * An {@link AccessCondition} object that represents the access conditions for the directory. * @param snapshotVersion * the snapshot version to the query builder. * @return a HttpURLConnection configured for the operation. * @throws StorageException * */ public static HttpURLConnection getDirectoryProperties(final URI uri, final FileRequestOptions fileOptions, final OperationContext opContext, AccessCondition accessCondition, String snapshotVersion) throws IOException, URISyntaxException, StorageException { final UriQueryBuilder directoryBuilder = getDirectoryUriQueryBuilder(); return getProperties(uri, fileOptions, opContext, accessCondition, directoryBuilder, snapshotVersion); }
/** * Constructs a web request to set user-defined metadata for the 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. * @param accessCondition * An {@link AccessCondition} object that represents the access conditions for the directory. * @return a HttpURLConnection configured for the operation. * @throws IOException * if there is an error opening the connection * @throws URISyntaxException * if the resource URI is invalid * @throws StorageException * an exception representing any error which occurred during the operation. * */ public static HttpURLConnection setDirectoryMetadata(final URI uri, final FileRequestOptions fileOptions, final OperationContext opContext, final AccessCondition accessCondition) throws IOException, URISyntaxException, StorageException { final UriQueryBuilder directoryBuilder = getDirectoryUriQueryBuilder(); return setMetadata(uri, fileOptions, opContext, accessCondition, directoryBuilder); }
/** * Constructs a web request to return the properties for this directory. Sign with no length specified. * * @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 accessCondition * An {@link AccessCondition} object that represents the access conditions for the directory. * @param snapshotVersion * the snapshot version to the query builder. * @return a HttpURLConnection configured for the operation. * @throws StorageException * */ public static HttpURLConnection getDirectoryProperties(final URI uri, final FileRequestOptions fileOptions, final OperationContext opContext, AccessCondition accessCondition, String snapshotVersion) throws IOException, URISyntaxException, StorageException { final UriQueryBuilder directoryBuilder = getDirectoryUriQueryBuilder(); return getProperties(uri, fileOptions, opContext, accessCondition, directoryBuilder, snapshotVersion); }
/** * Constructs a web request to set user-defined metadata for the 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. * @param accessCondition * An {@link AccessCondition} object that represents the access conditions for the directory. * @return a HttpURLConnection configured for the operation. * @throws IOException * if there is an error opening the connection * @throws URISyntaxException * if the resource URI is invalid * @throws StorageException * an exception representing any error which occurred during the operation. * */ public static HttpURLConnection setDirectoryMetadata(final URI uri, final FileRequestOptions fileOptions, final OperationContext opContext, final AccessCondition accessCondition) throws IOException, URISyntaxException, StorageException { final UriQueryBuilder directoryBuilder = getDirectoryUriQueryBuilder(); return setMetadata(uri, fileOptions, opContext, accessCondition, directoryBuilder); }
final OperationContext opContext, final AccessCondition accessCondition) throws IOException, URISyntaxException, StorageException { final UriQueryBuilder directoryBuilder = getDirectoryUriQueryBuilder(); HttpURLConnection request = BaseRequest.delete(uri, fileOptions, directoryBuilder, opContext); if (accessCondition != null) {
final OperationContext opContext, final AccessCondition accessCondition) throws IOException, URISyntaxException, StorageException { final UriQueryBuilder directoryBuilder = getDirectoryUriQueryBuilder(); HttpURLConnection request = BaseRequest.delete(uri, fileOptions, directoryBuilder, opContext); if (accessCondition != null) {
IOException, StorageException { final UriQueryBuilder builder = getDirectoryUriQueryBuilder(); addShareSnapshot(builder, snapshotVersion); builder.add(Constants.QueryConstants.COMPONENT, Constants.QueryConstants.LIST);
IOException, StorageException { final UriQueryBuilder builder = getDirectoryUriQueryBuilder(); addShareSnapshot(builder, snapshotVersion); builder.add(Constants.QueryConstants.COMPONENT, Constants.QueryConstants.LIST);