/** * Get the container name from address from the URI. * * @param resourceAddress * The container Uri. * @param usePathStyleUris * a value indicating if the address is a path style uri. * @return container name from address from the URI. * @throws IllegalArgumentException */ public static String getContainerNameFromUri(final URI resourceAddress, final boolean usePathStyleUris) { return getResourceNameFromUri(resourceAddress, usePathStyleUris, String.format("Invalid blob address '%s', missing container information", resourceAddress)); }
/** * Get the share name from address from the URI. * * @param resourceAddress * The share Uri. * @param usePathStyleUris * a value indicating if the address is a path style uri. * @return share name from address from the URI. * @throws IllegalArgumentException */ public static String getShareNameFromUri(final URI resourceAddress, final boolean usePathStyleUris) { return getResourceNameFromUri(resourceAddress, usePathStyleUris, String.format("Invalid file address '%s', missing share information", resourceAddress)); }
/** * Get the table name from address from the URI. * * @param resourceAddress * The table Uri. * @param usePathStyleUris * a value indicating if the address is a path style uri. * @return table name from address from the URI. * @throws IllegalArgumentException */ public static String getTableNameFromUri(final URI resourceAddress, final boolean usePathStyleUris) { return getResourceNameFromUri(resourceAddress, usePathStyleUris, String.format("Invalid table address '%s', missing table information", resourceAddress)); }
/** * Get the container name from address from the URI. * * @param resourceAddress * The container Uri. * @param usePathStyleUris * a value indicating if the address is a path style uri. * @return container name from address from the URI. * @throws IllegalArgumentException */ public static String getContainerNameFromUri(final URI resourceAddress, final boolean usePathStyleUris) { return getResourceNameFromUri(resourceAddress, usePathStyleUris, String.format("Invalid blob address '%s', missing container information", resourceAddress)); }
/** * Get the share name from address from the URI. * * @param resourceAddress * The share Uri. * @param usePathStyleUris * a value indicating if the address is a path style uri. * @return share name from address from the URI. * @throws IllegalArgumentException */ public static String getShareNameFromUri(final URI resourceAddress, final boolean usePathStyleUris) { return getResourceNameFromUri(resourceAddress, usePathStyleUris, String.format("Invalid file address '%s', missing share information", resourceAddress)); }
/** * Get the table name from address from the URI. * * @param resourceAddress * The table Uri. * @param usePathStyleUris * a value indicating if the address is a path style uri. * @return table name from address from the URI. * @throws IllegalArgumentException */ public static String getTableNameFromUri(final URI resourceAddress, final boolean usePathStyleUris) { return getResourceNameFromUri(resourceAddress, usePathStyleUris, String.format("Invalid table address '%s', missing table information", resourceAddress)); }