diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index dff012b3a..968948a0d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -15,7 +15,7 @@ jobs: distribution: 'temurin' java-version: '8' check-latest: true - - run: ./gradlew clean classes testClasses integrationTestClasses --refresh-dependencies + - run: ./gradlew clean classes testClasses integrationTestClasses shadowJar --refresh-dependencies test: name: Test with multiple Temurin JDK versions strategy: @@ -34,4 +34,4 @@ jobs: - name: Compile and assemble main project with Temurin JDK ${{ matrix.test-jdk-version }} run: ./gradlew clean assemble - name: Test with Temurin JDK ${{ matrix.test-jdk-version }} - run: ./gradlew -S test + run: ./gradlew -S test${{ matrix.test-jdk-version }} diff --git a/README.md b/README.md index 61af8f108..673a0fea7 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,10 @@ ds3_java_sdk ============ -[![Build Status](https://travis-ci.com/SpectraLogic/ds3_java_sdk.svg)](https://travis-ci.com/SpectraLogic/ds3_java_sdk) - - Coverity Scan Build Status - -[ ![Download](https://api.bintray.com/packages/spectralogic/ds3/ds3-sdk/images/download.svg) ](https://bintray.com/spectralogic/ds3/ds3-sdk/_latestVersion) -[![Apache V2 License](http://img.shields.io/badge/license-Apache%20V2-blue.svg)](https://github.com/SpectraLogic/ds3_java_sdk/blob/master/LICENSE.md) [![Open Hub project report for ds3_java_sdk](https://www.openhub.net/p/ds3_java_sdk/widgets/project_thin_badge.gif)](https://www.openhub.net/p/ds3_java_sdk?ref=sample) +[![Latest release](https://img.shields.io/github/release/SpectraLogic/ds3_java_sdk.svg)](https://github.com/SpectraLogic/ds3_java_sdk/releases/latest) +[![Maven Central](https://img.shields.io/maven-central/v/com.spectralogic.ds3/ds3-bom.svg)](https://search.maven.org/artifact/com.spectralogic.ds3/ds3-bom) +[![Apache V2 License](http://img.shields.io/badge/license-Apache%20V2-blue.svg)](https://github.com/SpectraLogic/ds3_java_sdk/blob/master/LICENSE.md) +[![Open Hub project report for ds3_java_sdk](https://www.openhub.net/p/ds3_java_sdk/widgets/project_thin_badge.gif)](https://www.openhub.net/p/ds3_java_sdk?ref=sample) ## Contact Us @@ -21,57 +18,53 @@ If using Intellij, simply import the project as a Gradle project. ## Install -To install the latest `ds3_java_sdk` either download the latest release jar file from the [Releases](../../releases) page or clone the repository with `git clone https://github.com/SpectraLogic/ds3_java_sdk.git`, cd to `ds3_java_sdk` and run `./gradlew clean ds3-sdk:install` to install the sdk into your local maven repository. It is compatible with Java 8. +To install the latest `ds3_java_sdk` either download the latest release jar file from the [Releases](../../releases) page or clone the repository with `git clone https://github.com/SpectraLogic/ds3_java_sdk.git`, cd to `ds3_java_sdk` and run `./gradlew clean ds3-sdk:install` to install the sdk into your local maven repository. It is compatible with Java 8 and is additionally tested against Java 11 and 17. -The SDK can also be included directly into a Maven or Gradle build. There is also a fatjar version that you can optionally use with the `all` classifier, take a look at the commented out code in the examples below. To include the SDK into maven add the following to the `pom.xml` file: +Starting with the 5.6.0 release, the SDK is available on [Maven Central](https://central.sonatype.com/namespace/com.spectralogic.ds3) and can be included directly into a Maven or Gradle build. There is also a fatjar version that you can optionally use with the `all` classifier, take a look at the commented out code in the examples below. To include the SDK into maven add the following to the `pom.xml` file: ```xml - - ... - - - jitpack.io - https://jitpack.io - - ... ... - com.github.spectralogic - ds3_java_sdk + com.spectralogic.ds3 + ds3-sdk Tag ... +``` +To include the sdk into Gradle include the following in the `build.gradle.kts` file: + +```kotlin +dependencies { + implementation(platform("com.spectralogic.ds3:ds3-bom:Tag")) + implementation("com.spectralogic.ds3:ds3-sdk") + //implementation("com.spectralogic.ds3:ds3-sdk::all") +} ``` -To include the sdk into Gradle include the following in the `build.gradle` file: +or in the `build.gradle` file: ```groovy -allprojects { - repositories { - ... - maven { url 'https://jitpack.io' } - } -} - dependencies { - implementation 'com.github.spectralogic:ds3_java_sdk:Tag' - implementation 'com.github.spectralogic:ds3_java_sdk:Tag:all' + implementation platform('com.spectralogic.ds3:ds3-bom:Tag') + implementation 'com.spectralogic.ds3:ds3-sdk' + //implementation 'com.spectralogic.ds3:ds3-sdk::all' } - ``` -## Javadoc -The latest javadoc is located at [http://spectralogic.github.io/ds3_java_sdk/javadoc/](http://spectralogic.github.io/ds3_java_sdk/javadoc/) +### Previous versions + +Versions prior to 5.6.0 are available on [jitpack.io](https://jitpack.io/#SpectraLogic/ds3_java_sdk) under different maven coordinates. Unfortunately, the 5.6.0 version on jitpack.io is a pre-release version and is missing important fixes, and it is recommended that the artifacts on Maven Central are used going forward. To access versions earlier than 5.6.0, please see the instructions at https://jitpack.io/#SpectraLogic/ds3_java_sdk. ## Contributing + If you would like to contribute to the source code, sign the [Contributors Agreement](https://developer.spectralogic.com/contributors-agreement/) and make sure that your source conforms to our [Java Style Guide](https://github.com/SpectraLogic/spectralogic.github.com/wiki/Java-Style-Guide). For an overview of how we use Github, please review our [Github Workflow](https://github.com/SpectraLogic/spectralogic.github.com/wiki/Github-Workflow). ## Examples @@ -98,11 +91,14 @@ Update the version of the SDK before creating a new release. The format is `.` numbers must match the version of BP. The `` is an incrementing number that increments with each SDK release for a given major/minor release. -The version is specified in the `buildSrc/src/main/kotlin/ds3-java-sdk-version.gradle.kts` file: +The version is specified in `libs.versions.toml`: ``` -group = "com.spectralogic.ds3" -version = "5.4.1" +[versions] +# +# project version +# +ds3SdkVersion = "5.6.1" ``` -When a release is created in github, it is automatically published on [jitpack.io](https://jitpack.io/#SpectraLogic/ds3_java_sdk). +Once released, increment the minor version and add the suffix "-SNAPSHOT" to prepare for the next development cycle. diff --git a/build.gradle.kts b/build.gradle.kts new file mode 100644 index 000000000..49c2d2e8c --- /dev/null +++ b/build.gradle.kts @@ -0,0 +1,19 @@ +/* + * ****************************************************************************** + * Copyright 2002 Spectra Logic Corporation. All Rights Reserved. + * Licensed under the Apache License, Version 2.0 (the "License"). You may not use + * this file except in compliance with the License. A copy of the License is located at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * or in the "license" file accompanying this file. + * This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR + * CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + * **************************************************************************** + */ + +tasks.wrapper { + // to upgrade the gradle wrapper, bump the version below and run ./gradlew wrapper twice + gradleVersion = "8.3" +} \ No newline at end of file diff --git a/buildSrc/build.gradle.kts b/buildSrc/build.gradle.kts index 9524dc4cd..1579689cd 100644 --- a/buildSrc/build.gradle.kts +++ b/buildSrc/build.gradle.kts @@ -17,10 +17,8 @@ plugins { `kotlin-dsl` } -repositories { - mavenCentral() -} - dependencies { - implementation("org.owasp:dependency-check-gradle:7.3.2") + implementation(libs.kotlinJvmPlugin) + implementation(libs.owaspDepCheckPlugin) + implementation(libs.versionsPlugin) } diff --git a/buildSrc/settings.gradle.kts b/buildSrc/settings.gradle.kts new file mode 100644 index 000000000..7640721ad --- /dev/null +++ b/buildSrc/settings.gradle.kts @@ -0,0 +1,19 @@ +/* + * **************************************************************************** + * Copyright 2023 Spectra Logic Corporation. All Rights Reserved. + * *************************************************************************** + */ + +rootProject.name = "buildSrc" + +dependencyResolutionManagement { + repositories { + mavenCentral() + gradlePluginPortal() + versionCatalogs { + create("libs") { + from(files("../libs.versions.toml")) + } + } + } +} \ No newline at end of file diff --git a/buildSrc/src/main/kotlin/ds3-java-sdk-internal-convention.gradle.kts b/buildSrc/src/main/kotlin/ds3-java-sdk-internal-convention.gradle.kts index ae149f1ae..33df6655c 100644 --- a/buildSrc/src/main/kotlin/ds3-java-sdk-internal-convention.gradle.kts +++ b/buildSrc/src/main/kotlin/ds3-java-sdk-internal-convention.gradle.kts @@ -16,18 +16,12 @@ plugins { `java` `jacoco` + id("com.github.ben-manes.versions") } -tasks.compileJava { - options.encoding = "UTF-8" - // since java 8 is the minimum version supported, make sure we always - // produce java 8 bytecode - if (JavaVersion.current() != JavaVersion.VERSION_1_8) { - options.release.set(8) - } else { - // java 8 does not have a release option, so use source and target compatibility - setSourceCompatibility(JavaVersion.VERSION_1_8.toString()) - setTargetCompatibility(JavaVersion.VERSION_1_8.toString()) +java { + toolchain { + languageVersion.set(JavaLanguageVersion.of(8)) } } @@ -45,3 +39,20 @@ tasks.jacocoTestReport { tasks.test { finalizedBy(tasks.jacocoTestReport) // report is always generated after tests run } + +// convenience task name for github tests +tasks.register("test8") { + dependsOn(tasks.test) +} + +tasks.register("test11") { + javaLauncher.set(javaToolchains.launcherFor { + languageVersion.set(JavaLanguageVersion.of(11)) + }) +} + +tasks.register("test17") { + javaLauncher.set(javaToolchains.launcherFor { + languageVersion.set(JavaLanguageVersion.of(17)) + }) +} \ No newline at end of file diff --git a/buildSrc/src/main/kotlin/ds3-java-sdk-library-convention.gradle.kts b/buildSrc/src/main/kotlin/ds3-java-sdk-library-convention.gradle.kts index f9d7fe4ab..45da08ef1 100644 --- a/buildSrc/src/main/kotlin/ds3-java-sdk-library-convention.gradle.kts +++ b/buildSrc/src/main/kotlin/ds3-java-sdk-library-convention.gradle.kts @@ -14,24 +14,46 @@ */ plugins { - id("ds3-java-sdk-internal-convention") id("ds3-java-sdk-version") + id("ds3-java-sdk-internal-convention") + id("org.jetbrains.kotlin.jvm") `java-library` `maven-publish` + id("ds3-java-sdk-publishing-common-convention") + signing id("org.owasp.dependencycheck") } -group = "com.spectralogic.ds3" -version = "5.4.1" +kotlin { + jvmToolchain { + (this as JavaToolchainSpec).apply { + languageVersion.set(JavaLanguageVersion.of("8")) + vendor.set(JvmVendorSpec.ADOPTIUM) + } + } +} + +java { + withJavadocJar() + withSourcesJar() +} publishing { publications { - create("ProjectPublication") { + create("Project") { from(components["java"]) } } } +signing { + setRequired({ + (extra["isReleaseVersion"] as Boolean) && gradle.taskGraph.hasTask("publishProjectPublicationToOSSRHRepository") + }) + useGpgCmd() + sign(publishing.publications["Project"]) +} + dependencyCheck { // fail the build if any vulnerable dependencies are identified (CVSS score > 0) failBuildOnCVSS = 0f; diff --git a/buildSrc/src/main/kotlin/ds3-java-sdk-publishing-common-convention.gradle.kts b/buildSrc/src/main/kotlin/ds3-java-sdk-publishing-common-convention.gradle.kts new file mode 100644 index 000000000..2edd206d3 --- /dev/null +++ b/buildSrc/src/main/kotlin/ds3-java-sdk-publishing-common-convention.gradle.kts @@ -0,0 +1,107 @@ +import org.gradle.api.publish.maven.MavenPublication + +/* + * ****************************************************************************** + * Copyright 2002 Spectra Logic Corporation. All Rights Reserved. + * Licensed under the Apache License, Version 2.0 (the "License"). You may not use + * this file except in compliance with the License. A copy of the License is located at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * or in the "license" file accompanying this file. + * This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR + * CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + * **************************************************************************** + */ + +plugins { + `maven-publish` + signing +} + +publishing { + repositories { + maven { + name = "internal" + val releasesRepoUrl = "https://artifacts.eng.sldomain.com/repository/spectra-releases/" + val snapshotsRepoUrl = "https://artifacts.eng.sldomain.com/repository/spectra-snapshots/" + url = uri(if (extra["isReleaseVersion"] as Boolean) releasesRepoUrl else snapshotsRepoUrl) + credentials { + username = extra.has("artifactsUsername").let { + if (it) extra.get("artifactsUsername") as String else null + } + password = extra.has("artifactsPassword").let { + if (it) extra.get("artifactsPassword") as String else null + } + } + } + maven { + name = "OSSRH" + val releasesOssrhRepoUrl = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/" + val snapshotsOssrhRepoUrl = "https://s01.oss.sonatype.org/content/repositories/snapshots/" + url = uri(if (extra["isReleaseVersion"] as Boolean) releasesOssrhRepoUrl else snapshotsOssrhRepoUrl) + credentials { + username = extra.has("ossrhUsername").let { + if (it) extra.get("ossrhUsername") as String else null + } + password = extra.has("ossrhPassword").let { + if (it) extra.get("ossrhPassword") as String else null + } + } + } + } +} + +tasks.register("publishToInternalRepository") { + group = "publishing" + description = "Publishes all Maven publications to the internal Maven repository." + dependsOn(tasks.withType().matching { + it.repository == publishing.repositories["internal"] + }) +} + +tasks.register("publishToSonatypeOSSRH") { + group = "publishing" + description = "Publishes all Maven publications to Sonatype's OSSRH repository." + dependsOn(tasks.withType().matching { + it.repository == publishing.repositories["OSSRH"] + }) +} + +val augmentPom = tasks.register("augmentPom") { + publishing.publications.filterIsInstance().forEach { pub -> + pub.pom { + name.set("${project.group}:${project.name}") + url.set("https://github.com/SpectraLogic/ds3_java_sdk") + description.set("${project.description}") + licenses { + license { + name.set("The Apache License, Version 2.0") + url.set("https://www.apache.org/licenses/LICENSE-2.0.txt") + } + } + developers { + developer { + name.set("Spectra Logic Developers") + email.set("developer@spectralogic.com") + organization.set("Spectra Logic") + organizationUrl.set("https://spectralogic.com/") + } + } + scm { + connection.set("scm:git:https://github.com/SpectraLogic/ds3_java_sdk.git") + developerConnection.set("scm:git:https://github.com/SpectraLogic/ds3_java_sdk.git") + url.set("https://github.com/SpectraLogic/ds3_java_sdk") + } + } + } +} + +tasks.withType().configureEach { + dependsOn(augmentPom) +} + +tasks.withType().configureEach { + onlyIf("isReleaseVersion is set") { project.extra["isReleaseVersion"] as Boolean } +} diff --git a/buildSrc/src/main/kotlin/ds3-java-sdk-version.gradle.kts b/buildSrc/src/main/kotlin/ds3-java-sdk-version.gradle.kts index ed7f37c6f..fc6f9a0c9 100644 --- a/buildSrc/src/main/kotlin/ds3-java-sdk-version.gradle.kts +++ b/buildSrc/src/main/kotlin/ds3-java-sdk-version.gradle.kts @@ -13,5 +13,10 @@ * **************************************************************************** */ +val catalogs = extensions + .getByType() + group = "com.spectralogic.ds3" -version = "5.6.0" +version = catalogs.named("libs").findVersion("ds3SdkVersion").get().requiredVersion + +extra["isReleaseVersion"] = !version.toString().endsWith("SNAPSHOT") \ No newline at end of file diff --git a/ds3-bom/build.gradle.kts b/ds3-bom/build.gradle.kts index 94c80a9ef..cf6611420 100644 --- a/ds3-bom/build.gradle.kts +++ b/ds3-bom/build.gradle.kts @@ -16,10 +16,12 @@ plugins { `ds3-java-sdk-version` `maven-publish` + `ds3-java-sdk-publishing-common-convention` + signing `java-platform` } -description = "The ds3-bom generates a Bill of Materials (BOM) for the published DS3 SDK artifacts." +description = "The DS3 Java SDK Bill of Materials." dependencies { constraints { @@ -37,3 +39,11 @@ publishing { } } } + +signing { + setRequired({ + (extra["isReleaseVersion"] as Boolean) && gradle.taskGraph.hasTask("publishProjectPublicationToOSSRHRepository") + }) + useGpgCmd() + sign(publishing.publications["Ds3Bom"]) +} diff --git a/ds3-interfaces/build.gradle.kts b/ds3-interfaces/build.gradle.kts index 94ddde559..d322d8143 100644 --- a/ds3-interfaces/build.gradle.kts +++ b/ds3-interfaces/build.gradle.kts @@ -13,6 +13,9 @@ * **************************************************************************** */ +description = "The interfaces module holds the interfaces for headers and " + + "metadata." + plugins { `ds3-java-sdk-library-convention` } diff --git a/ds3-metadata/build.gradle.kts b/ds3-metadata/build.gradle.kts index fd87b0300..46cbcbdb6 100644 --- a/ds3-metadata/build.gradle.kts +++ b/ds3-metadata/build.gradle.kts @@ -13,14 +13,15 @@ * **************************************************************************** */ -// bug in IntelliJ in which `libs` shows up as not being accessible -// see https://youtrack.jetbrains.com/issue/KTIJ-19369 -@Suppress("DSL_SCOPE_VIOLATION") plugins { `ds3-java-sdk-library-convention` alias(libs.plugins.shadowPlugin) } +description = "This module holds the classes for converting file system " + + "metadata to BlackPearl object store metadata so you can preserve and " + + "restore file times and OS specific metadata." + dependencies { api(project(":ds3-interfaces")) api(project(":ds3-utils")) @@ -31,7 +32,7 @@ dependencies { implementation(libs.slf4jApi) testImplementation(libs.commonsIo) - testImplementation(libs.commonsLang) + testImplementation(libs.commonsLang3) testImplementation(libs.junit) testImplementation(libs.junitJupiterApi) testImplementation(libs.httpclient) @@ -56,7 +57,7 @@ tasks.named("shadowJ exclude(dependency(libs.mockitoCore.get().toString())) exclude(dependency(libs.junit.get().toString())) exclude(dependency(libs.junitJupiterApi.get().toString())) - exclude(dependency(libs.commonsLang.get().toString())) + exclude(dependency(libs.commonsLang3.get().toString())) } dependsOn(tasks.jar) } diff --git a/ds3-metadata/src/main/java/com/spectralogic/ds3client/metadata/AbstractMetadataRestore.java b/ds3-metadata/src/main/java/com/spectralogic/ds3client/metadata/AbstractMetadataRestore.java index eb5f1b2bc..b9e4cb09a 100644 --- a/ds3-metadata/src/main/java/com/spectralogic/ds3client/metadata/AbstractMetadataRestore.java +++ b/ds3-metadata/src/main/java/com/spectralogic/ds3client/metadata/AbstractMetadataRestore.java @@ -86,10 +86,10 @@ public void restoreOSName() { * @param lastModifiedTime modified time got from server * @param lastAccessedTime last aceess time got from server */ - private void setFileTimes(final String filePath, - final String creationTime, - final String lastModifiedTime, - final String lastAccessedTime) + private static void setFileTimes(final String filePath, + final String creationTime, + final String lastModifiedTime, + final String lastAccessedTime) throws IOException { final BasicFileAttributeView attributes = Files.getFileAttributeView(Paths.get(filePath), BasicFileAttributeView.class); diff --git a/ds3-metadata/src/main/java/com/spectralogic/ds3client/metadata/MACMetadataRestore.java b/ds3-metadata/src/main/java/com/spectralogic/ds3client/metadata/MACMetadataRestore.java index 04ca5a84b..95dadfe1d 100644 --- a/ds3-metadata/src/main/java/com/spectralogic/ds3client/metadata/MACMetadataRestore.java +++ b/ds3-metadata/src/main/java/com/spectralogic/ds3client/metadata/MACMetadataRestore.java @@ -77,7 +77,7 @@ public void restoreFileTimes() throws IOException, InterruptedException { * @param objectName path of the object where we need to restore * @param creationTime creation time got from server */ - private void restoreCreationTimeMAC(final String objectName, final String creationTime) throws IOException, InterruptedException { + private static void restoreCreationTimeMAC(final String objectName, final String creationTime) throws IOException, InterruptedException { final ProcessBuilder processBuilder = new ProcessBuilder("touch", "-t", getDate(Long.parseLong(creationTime), "YYYYMMddHHmm"), objectName); final Process process = processBuilder.start(); //Wait to get exit value @@ -94,7 +94,7 @@ private void restoreCreationTimeMAC(final String objectName, final String creati * @param objectName path of the object where we need to restore * @param modifiedTime modified time need to restore */ - private void restoreModifiedTimeMAC(final String objectName, final String modifiedTime) throws IOException, InterruptedException { + private static void restoreModifiedTimeMAC(final String objectName, final String modifiedTime) throws IOException, InterruptedException { final ProcessBuilder processBuilder = new ProcessBuilder("touch", "-mt", getDate(Long.parseLong(modifiedTime), "YYYYMMddHHmm"), objectName); final Process process = processBuilder.start(); diff --git a/ds3-metadata/src/main/java/com/spectralogic/ds3client/metadata/MetadataAccessImpl.java b/ds3-metadata/src/main/java/com/spectralogic/ds3client/metadata/MetadataAccessImpl.java index 72e8b159d..e37f6eec6 100644 --- a/ds3-metadata/src/main/java/com/spectralogic/ds3client/metadata/MetadataAccessImpl.java +++ b/ds3-metadata/src/main/java/com/spectralogic/ds3client/metadata/MetadataAccessImpl.java @@ -77,11 +77,11 @@ public Map getMetadataValue(final String filename) { * @param file local path of file * @return map builder containing the data to be stored on server */ - private ImmutableMap storeMetaData(final Path file) throws IOException { + private static ImmutableMap storeMetaData(final Path file) throws IOException { final ImmutableMap.Builder builder = ImmutableMap.builder(); //get metadata store based on os type - final MetadataStore metadataStore = new MetadataStoreFactory().getOsSpecificMetadataStore(builder); + final MetadataStore metadataStore = MetadataStoreFactory.getOsSpecificMetadataStore(builder); metadataStore.saveOSMetaData(MetaDataUtil.getOS()); final BasicFileAttributes attr = Files.readAttributes(file, BasicFileAttributes.class); diff --git a/ds3-metadata/src/main/java/com/spectralogic/ds3client/metadata/MetadataReceivedListenerImpl.java b/ds3-metadata/src/main/java/com/spectralogic/ds3client/metadata/MetadataReceivedListenerImpl.java index 43d28e423..5d35b3a52 100644 --- a/ds3-metadata/src/main/java/com/spectralogic/ds3client/metadata/MetadataReceivedListenerImpl.java +++ b/ds3-metadata/src/main/java/com/spectralogic/ds3client/metadata/MetadataReceivedListenerImpl.java @@ -73,12 +73,12 @@ public void metadataReceived(final String filename, final Metadata metadata) { * @param objectName name of the file to be restored * @param metadata metadata which needs to be set on local file */ - private void restoreMetaData(final String objectName, final Metadata metadata) throws IOException, InterruptedException { + private static void restoreMetaData(final String objectName, final Metadata metadata) throws IOException, InterruptedException { final ImmutableList.Builder exceptionBuilder = ImmutableList.builder(); //get metadatarestore on the basis of os - final MetadataRestore metadataRestore = new MetadataRestoreFactory().getOSSpecificMetadataRestore(metadata, objectName); + final MetadataRestore metadataRestore = MetadataRestoreFactory.getOSSpecificMetadataRestore(metadata, objectName); //restore os name metadataRestore.restoreOSName(); diff --git a/ds3-metadata/src/main/java/com/spectralogic/ds3client/metadata/MetadataRestoreFactory.java b/ds3-metadata/src/main/java/com/spectralogic/ds3client/metadata/MetadataRestoreFactory.java index ae7bada74..d6b5bba4b 100644 --- a/ds3-metadata/src/main/java/com/spectralogic/ds3client/metadata/MetadataRestoreFactory.java +++ b/ds3-metadata/src/main/java/com/spectralogic/ds3client/metadata/MetadataRestoreFactory.java @@ -21,7 +21,7 @@ public class MetadataRestoreFactory { - public MetadataRestore getOSSpecificMetadataRestore(final Metadata metadata, final String filePath) { + public static MetadataRestore getOSSpecificMetadataRestore(final Metadata metadata, final String filePath) { final String localOS = MetaDataUtil.getOS(); if (Platform.isWindows()) { diff --git a/ds3-metadata/src/main/java/com/spectralogic/ds3client/metadata/MetadataStoreFactory.java b/ds3-metadata/src/main/java/com/spectralogic/ds3client/metadata/MetadataStoreFactory.java index fc99189bc..32b0d87b3 100644 --- a/ds3-metadata/src/main/java/com/spectralogic/ds3client/metadata/MetadataStoreFactory.java +++ b/ds3-metadata/src/main/java/com/spectralogic/ds3client/metadata/MetadataStoreFactory.java @@ -21,7 +21,7 @@ public class MetadataStoreFactory { - public MetadataStore getOsSpecificMetadataStore(final ImmutableMap.Builder metadataMap) { + public static MetadataStore getOsSpecificMetadataStore(final ImmutableMap.Builder metadataMap) { if(MetaDataUtil.getOS().contains("Windows")) { return new WindowsMetadataStore(metadataMap); } diff --git a/ds3-metadata/src/main/java/com/spectralogic/ds3client/metadata/PosixMetadataRestore.java b/ds3-metadata/src/main/java/com/spectralogic/ds3client/metadata/PosixMetadataRestore.java index dfea71c0c..a26012c99 100644 --- a/ds3-metadata/src/main/java/com/spectralogic/ds3client/metadata/PosixMetadataRestore.java +++ b/ds3-metadata/src/main/java/com/spectralogic/ds3client/metadata/PosixMetadataRestore.java @@ -91,7 +91,7 @@ private void setOwnerNGroupLnx(final String ownerName, final String groupName) t * @param filePath path of the file * @param permissions permissions got from the blackperl server */ - private void setPermissionsLnx(final String filePath, final String permissions) throws IOException { + private static void setPermissionsLnx(final String filePath, final String permissions) throws IOException { final Path file = Paths.get(filePath); final Set perms = PosixFilePermissions.fromString(permissions); diff --git a/ds3-metadata/src/main/java/com/spectralogic/ds3client/metadata/WindowsMetadataRestore.java b/ds3-metadata/src/main/java/com/spectralogic/ds3client/metadata/WindowsMetadataRestore.java index baba1821f..86775a6b6 100644 --- a/ds3-metadata/src/main/java/com/spectralogic/ds3client/metadata/WindowsMetadataRestore.java +++ b/ds3-metadata/src/main/java/com/spectralogic/ds3client/metadata/WindowsMetadataRestore.java @@ -128,7 +128,7 @@ private void setPermissionsForWindows() throws IOException { * @return map */ - private Map defaultOrdinalPermission(){ + private static Map defaultOrdinalPermission(){ final Map defaultOrdinalMap = new HashMap<>(); defaultOrdinalMap.put("0",AclEntryPermission.READ_DATA); defaultOrdinalMap.put("1",AclEntryPermission.WRITE_DATA); @@ -147,9 +147,9 @@ private Map defaultOrdinalPermission(){ return defaultOrdinalMap; } - private void restorePermissionByUser(final String permission, - final String user, - final ImmutableList.Builder aclEntryBuilder) + private static void restorePermissionByUser(final String permission, + final String user, + final ImmutableList.Builder aclEntryBuilder) throws IOException { final AclEntry.Builder builderWindow = AclEntry.newBuilder(); diff --git a/ds3-metadata/src/main/java/com/spectralogic/ds3client/metadata/WindowsMetadataStore.java b/ds3-metadata/src/main/java/com/spectralogic/ds3client/metadata/WindowsMetadataStore.java index 485722c29..0e4ae1fe3 100644 --- a/ds3-metadata/src/main/java/com/spectralogic/ds3client/metadata/WindowsMetadataStore.java +++ b/ds3-metadata/src/main/java/com/spectralogic/ds3client/metadata/WindowsMetadataStore.java @@ -28,6 +28,7 @@ import java.io.IOException; import java.io.InputStreamReader; import java.nio.charset.Charset; +import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.attribute.AclEntry; @@ -95,7 +96,7 @@ private void saveWindowsDescriptors(final Path path) throws IOException { * @param acl acl got from jna * @return dacl string */ - private String getDaclString(final WinNT.ACL acl) { + private static String getDaclString(final WinNT.ACL acl) { final WinNT.ACE_HEADER[] aceHeaders = acl.getACEs(); final StringBuilder daclStringBuffer = new StringBuilder(); for (final WinNT.ACE_HEADER aceHeader : aceHeaders) { @@ -129,7 +130,7 @@ private String saveFlagMetaData(final Path file) throws IOException { final ProcessBuilder processBuilder = new ProcessBuilder("attrib", file.toString()); final Process process = processBuilder.start(); try (final BufferedReader reader = - new BufferedReader(new InputStreamReader(process.getInputStream(), Charset.forName("UTF-8")))) { + new BufferedReader(new InputStreamReader(process.getInputStream(), StandardCharsets.UTF_8))) { final String flagWindows = reader.readLine(); if (Guard.isStringNullOrEmpty(flagWindows)) { LOG.error("The flagWindows string was null"); diff --git a/ds3-metadata/src/test/java/com/spectralogic/ds3client/metadata/MACMetadataRestore_Test.java b/ds3-metadata/src/test/java/com/spectralogic/ds3client/metadata/MACMetadataRestore_Test.java index 22122a219..ee5828859 100644 --- a/ds3-metadata/src/test/java/com/spectralogic/ds3client/metadata/MACMetadataRestore_Test.java +++ b/ds3-metadata/src/test/java/com/spectralogic/ds3client/metadata/MACMetadataRestore_Test.java @@ -62,7 +62,7 @@ public void restoreFileTimesTest() throws Exception { } - private Metadata genMetadata(final Header... headers) { + private static Metadata genMetadata(final Header... headers) { final ImmutableMultimap.Builder mapBuilder = ImmutableMultimap.builder(); for (final Header header : headers) { diff --git a/ds3-metadata/src/test/java/com/spectralogic/ds3client/metadata/MetadataReceivedListenerImpl_Test.java b/ds3-metadata/src/test/java/com/spectralogic/ds3client/metadata/MetadataReceivedListenerImpl_Test.java index 500e27baa..c42d78f9c 100644 --- a/ds3-metadata/src/test/java/com/spectralogic/ds3client/metadata/MetadataReceivedListenerImpl_Test.java +++ b/ds3-metadata/src/test/java/com/spectralogic/ds3client/metadata/MetadataReceivedListenerImpl_Test.java @@ -68,7 +68,7 @@ public void testGettingMetadata() throws IOException, InterruptedException { // change permissions if (Platform.isWindows()) { - Runtime.getRuntime().exec("attrib -A " + filePath.toString()).waitFor(); + Runtime.getRuntime().exec("attrib -A " + filePath).waitFor(); } else { final PosixFileAttributes attributes = Files.readAttributes(filePath, PosixFileAttributes.class); final Set permissions = attributes.permissions(); diff --git a/ds3-metadata/src/test/java/com/spectralogic/ds3client/metadata/MetadataRestoreFactory_Test.java b/ds3-metadata/src/test/java/com/spectralogic/ds3client/metadata/MetadataRestoreFactory_Test.java index 4fb8d3b0d..431711f44 100644 --- a/ds3-metadata/src/test/java/com/spectralogic/ds3client/metadata/MetadataRestoreFactory_Test.java +++ b/ds3-metadata/src/test/java/com/spectralogic/ds3client/metadata/MetadataRestoreFactory_Test.java @@ -31,7 +31,7 @@ public void testThatRunningOnMacReturnsMacMetaDataRestore() { final Metadata metadata = null; final String filePath = "."; - final MetadataRestore metadataRestorer = new MetadataRestoreFactory().getOSSpecificMetadataRestore(metadata, filePath); + final MetadataRestore metadataRestorer = MetadataRestoreFactory.getOSSpecificMetadataRestore(metadata, filePath); assertEquals(MACMetadataRestore.class, metadataRestorer.getClass()); } @@ -43,7 +43,7 @@ public void testThatRunningOnWindowsReturnsWindowsMetaDataRestore() { final Metadata metadata = null; final String filePath = "."; - final MetadataRestore metadataRestorer = new MetadataRestoreFactory().getOSSpecificMetadataRestore(metadata, filePath); + final MetadataRestore metadataRestorer = MetadataRestoreFactory.getOSSpecificMetadataRestore(metadata, filePath); assertEquals(WindowsMetadataRestore.class, metadataRestorer.getClass()); } @@ -55,7 +55,7 @@ public void testThatRunningOnLinuxReturnsLinuxMetaDataRestore() { final Metadata metadata = null; final String filePath = "."; - final MetadataRestore metadataRestorer = new MetadataRestoreFactory().getOSSpecificMetadataRestore(metadata, filePath); + final MetadataRestore metadataRestorer = MetadataRestoreFactory.getOSSpecificMetadataRestore(metadata, filePath); assertEquals(PosixMetadataRestore.class, metadataRestorer.getClass()); } diff --git a/ds3-metadata/src/test/java/com/spectralogic/ds3client/metadata/PosixMetadataRestore_Test.java b/ds3-metadata/src/test/java/com/spectralogic/ds3client/metadata/PosixMetadataRestore_Test.java index 7ef73fc41..fb4bf9aaf 100644 --- a/ds3-metadata/src/test/java/com/spectralogic/ds3client/metadata/PosixMetadataRestore_Test.java +++ b/ds3-metadata/src/test/java/com/spectralogic/ds3client/metadata/PosixMetadataRestore_Test.java @@ -96,7 +96,7 @@ public void restorePermissions() throws Exception{ Assert.assertEquals(getPermissionInOctal(PosixFilePermissions.toString(fileAttributesAfterRestore.permissions())), basicHeader[0].getValue()); } - private Metadata genMetadata(final Header... headers) { + private static Metadata genMetadata(final Header... headers) { final ImmutableMultimap.Builder mapBuilder = ImmutableMultimap.builder(); for (final Header header : headers) { diff --git a/ds3-metadata/src/test/java/com/spectralogic/ds3client/metadata/WindowsMetadataRestore_Test.java b/ds3-metadata/src/test/java/com/spectralogic/ds3client/metadata/WindowsMetadataRestore_Test.java index 3355eabfc..151d56954 100644 --- a/ds3-metadata/src/test/java/com/spectralogic/ds3client/metadata/WindowsMetadataRestore_Test.java +++ b/ds3-metadata/src/test/java/com/spectralogic/ds3client/metadata/WindowsMetadataRestore_Test.java @@ -148,7 +148,7 @@ public void restorePermissionsTest() throws NoSuchMethodException, IOException, windowsMetadataRestore.restorePermissions(); } - private Metadata genMetadata(final Header... headers) { + private static Metadata genMetadata(final Header... headers) { final ImmutableMultimap.Builder mapBuilder = ImmutableMultimap.builder(); for (final Header header : headers) { mapBuilder.put(header.getName(), header.getValue()); diff --git a/ds3-sdk-integration/build.gradle.kts b/ds3-sdk-integration/build.gradle.kts index c38bb80bb..0bfe3f53c 100644 --- a/ds3-sdk-integration/build.gradle.kts +++ b/ds3-sdk-integration/build.gradle.kts @@ -31,7 +31,7 @@ dependencies { testImplementation(project(":ds3-metadata")) testImplementation(libs.httpclient) - testImplementation(libs.commonsLang) + testImplementation(libs.commonsLang3) testRuntimeOnly(libs.junitVintageEngine) } diff --git a/ds3-sdk-integration/src/integrationTest/java/com/spectralogic/ds3client/helpers/FileSystemHelper_Test.java b/ds3-sdk-integration/src/integrationTest/java/com/spectralogic/ds3client/helpers/FileSystemHelper_Test.java index 9e9e91b4d..c2bbb872f 100644 --- a/ds3-sdk-integration/src/integrationTest/java/com/spectralogic/ds3client/helpers/FileSystemHelper_Test.java +++ b/ds3-sdk-integration/src/integrationTest/java/com/spectralogic/ds3client/helpers/FileSystemHelper_Test.java @@ -40,6 +40,7 @@ import java.nio.file.Paths; import java.util.ArrayList; import java.util.Arrays; +import java.util.Collections; import java.util.List; import java.util.UUID; import java.util.concurrent.atomic.AtomicInteger; @@ -98,7 +99,7 @@ public void testObjectsFitBucketWithNonExistentBucket() { maxNumObjectTransferAttempts); final ObjectStorageSpaceVerificationResult result = ds3ClientHelpers.objectsFromBucketWillFitInDirectory( - "bad bucket name", Arrays.asList(new String[] {}), Paths.get(".")); + "bad bucket name", Collections.emptyList(), Paths.get(".")); assertEquals(ObjectStorageSpaceVerificationResult.VerificationStatus.BucketDoesNotExist, result.getVerificationStatus()); assertEquals(0, result.getRequiredSpace()); @@ -119,7 +120,7 @@ public void testObjectsFitBucketWithPathNotDirectory() throws IOException { try { final ObjectStorageSpaceVerificationResult result = ds3ClientHelpers.objectsFromBucketWillFitInDirectory( - "bad bucket name", Arrays.asList(new String[]{}), textFile); + "bad bucket name", Collections.emptyList(), textFile); assertEquals(ObjectStorageSpaceVerificationResult.VerificationStatus.PathIsNotADirectory, result.getVerificationStatus()); assertEquals(0, result.getRequiredSpace()); @@ -143,7 +144,7 @@ public void testObjectsFitBucketPathDoesNotExist() throws IOException { FileUtils.deleteDirectory(directory.toFile()); final ObjectStorageSpaceVerificationResult result = ds3ClientHelpers.objectsFromBucketWillFitInDirectory( - "bad bucket name", Arrays.asList(new String[]{}), directory); + "bad bucket name", Collections.emptyList(), directory); assertEquals(ObjectStorageSpaceVerificationResult.VerificationStatus.PathDoesNotExist, result.getVerificationStatus()); assertEquals(0, result.getRequiredSpace()); @@ -165,7 +166,7 @@ public void testObjectsFitBucketPathLacksAccess() throws IOException, Interrupte // Deny write data access to everyone, making the directory unwritable Runtime.getRuntime().exec("icacls dir /deny Everyone:(WD)").waitFor(); } else { - Runtime.getRuntime().exec("chmod -w " + directory.toString()).waitFor(); + Runtime.getRuntime().exec("chmod -w " + directory).waitFor(); final Process lsProcess = Runtime.getRuntime().exec("ls -l"); lsProcess.waitFor(); try (final BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(lsProcess.getInputStream()))) { @@ -180,7 +181,7 @@ public void testObjectsFitBucketPathLacksAccess() throws IOException, Interrupte try { final ObjectStorageSpaceVerificationResult result = ds3ClientHelpers.objectsFromBucketWillFitInDirectory( - "bad bucket name", Arrays.asList(new String[]{}), directory); + "bad bucket name", Collections.emptyList(), directory); LOG.info(result.toString()); @@ -194,7 +195,7 @@ public void testObjectsFitBucketPathLacksAccess() throws IOException, Interrupte // Grant write data access to everyone, making the directory writable, so we can delete it. Runtime.getRuntime().exec("icacls dir /grant Everyone:(WD)").waitFor(); } else { - Runtime.getRuntime().exec("chmod +w " + directory.toString()).waitFor(); + Runtime.getRuntime().exec("chmod +w " + directory).waitFor(); } FileUtils.deleteDirectory(directory.toFile()); @@ -221,8 +222,8 @@ private interface ResultVerifier { void verifyResult(final ObjectStorageSpaceVerificationResult result, final long totalRequiredSize); } - private void putObjectThenRunVerification(final FileSystemHelper fileSystemHelper, - final ResultVerifier resultVerifier) + private static void putObjectThenRunVerification(final FileSystemHelper fileSystemHelper, + final ResultVerifier resultVerifier) throws IOException, URISyntaxException { try { diff --git a/ds3-sdk-integration/src/integrationTest/java/com/spectralogic/ds3client/helpers/channelbuilders/RepeatStringObjectChannelBuilder.java b/ds3-sdk-integration/src/integrationTest/java/com/spectralogic/ds3client/helpers/channelbuilders/RepeatStringObjectChannelBuilder.java index f0d7e8ad6..70075b55f 100644 --- a/ds3-sdk-integration/src/integrationTest/java/com/spectralogic/ds3client/helpers/channelbuilders/RepeatStringObjectChannelBuilder.java +++ b/ds3-sdk-integration/src/integrationTest/java/com/spectralogic/ds3client/helpers/channelbuilders/RepeatStringObjectChannelBuilder.java @@ -23,7 +23,7 @@ public class RepeatStringObjectChannelBuilder implements Ds3ClientHelpers.ObjectChannelBuilder { private final int bufferSize; private final long sizeOfFiles; - private String inputDataHeader; + private final String inputDataHeader; public RepeatStringObjectChannelBuilder(final String inputDataHeader, final int bufferSize, final long sizeOfFile) { this.bufferSize = bufferSize; diff --git a/ds3-sdk-integration/src/integrationTest/java/com/spectralogic/ds3client/integration/CustomParser_Test.java b/ds3-sdk-integration/src/integrationTest/java/com/spectralogic/ds3client/integration/CustomParser_Test.java index 870b28302..fb3c5592e 100644 --- a/ds3-sdk-integration/src/integrationTest/java/com/spectralogic/ds3client/integration/CustomParser_Test.java +++ b/ds3-sdk-integration/src/integrationTest/java/com/spectralogic/ds3client/integration/CustomParser_Test.java @@ -25,7 +25,6 @@ import com.spectralogic.ds3client.commands.spectrads3.GetBulkJobSpectraS3Response; import com.spectralogic.ds3client.exceptions.ContentLengthNotMatchException; import com.spectralogic.ds3client.helpers.Ds3ClientHelpers; -import com.spectralogic.ds3client.helpers.channelbuilders.ObjectInputStreamBuilder; import com.spectralogic.ds3client.integration.test.helpers.TempStorageIds; import com.spectralogic.ds3client.integration.test.helpers.TempStorageUtil; import com.spectralogic.ds3client.models.ChecksumType; @@ -80,13 +79,7 @@ public void beforeRunningTestMethod() throws IOException { final Ds3Object obj = new Ds3Object(OBJ_NAME, OBJ_BYTES.length); final Ds3ClientHelpers.Job job = HELPERS.startWriteJob(BUCKET_NAME, Lists.newArrayList(obj)); - job.transfer(new ObjectInputStreamBuilder() { - - @Override - public InputStream buildInputStream(final String key) { - return new ByteArrayInputStream(OBJ_BYTES); - } - }); + job.transfer(new ObjectInputStreamBuilder()); } @After @@ -108,30 +101,7 @@ public void getObjectCustomParserTest() throws IOException, URISyntaxException { 0, stream); - client.getObject(request, new Function() { - @Override - public GetObjectResponse apply(final GetObjectCustomParserParameters getObjectParserParams) { - final WebResponse webResponse = getObjectParserParams.getWebResponse(); - final long objectSize = getSizeFromHeaders(webResponse.getHeaders()); - try (final InputStream responseStream = webResponse.getResponseStream()) { - final long totalBytes = IOUtils.copy( - responseStream, - getObjectParserParams.getDestinationChannel(), - getObjectParserParams.getBufferSize(), - getObjectParserParams.getObjectName(), - false); - getObjectParserParams.getDestinationChannel().close(); - - if (objectSize != -1 && totalBytes != objectSize) { - throw new ContentLengthNotMatchException(getObjectParserParams.getObjectName(), objectSize, totalBytes); - } - - } catch (final IOException e) { - fail(); - } - return null; - } - }); + client.getObject(request, new GetObjectCustomParserParametersGetObjectResponseFunction()); assertThat(stream.toByteArray(), is(OBJ_BYTES)); } @@ -146,11 +116,46 @@ public void getObjectCustomParserNoObjectTest() throws IOException{ new NullChannel()); //Get object that does not exist - client.getObject(request, new Function() { - @Override - public GetObjectResponse apply(final GetObjectCustomParserParameters getObjectParserParams) { - return null; + client.getObject(request, new NullGetObjectCustomParserParametersGetObjectResponseFunction()); + } + + private static class ObjectInputStreamBuilder extends com.spectralogic.ds3client.helpers.channelbuilders.ObjectInputStreamBuilder { + + @Override + public InputStream buildInputStream(final String key) { + return new ByteArrayInputStream(OBJ_BYTES); + } + } + + private static class GetObjectCustomParserParametersGetObjectResponseFunction implements Function { + @Override + public GetObjectResponse apply(final GetObjectCustomParserParameters getObjectParserParams) { + final WebResponse webResponse = getObjectParserParams.getWebResponse(); + final long objectSize = getSizeFromHeaders(webResponse.getHeaders()); + try (final InputStream responseStream = webResponse.getResponseStream()) { + final long totalBytes = IOUtils.copy( + responseStream, + getObjectParserParams.getDestinationChannel(), + getObjectParserParams.getBufferSize(), + getObjectParserParams.getObjectName(), + false); + getObjectParserParams.getDestinationChannel().close(); + + if (objectSize != -1 && totalBytes != objectSize) { + throw new ContentLengthNotMatchException(getObjectParserParams.getObjectName(), objectSize, totalBytes); + } + + } catch (final IOException e) { + fail(); } - }); + return null; + } + } + + private static class NullGetObjectCustomParserParametersGetObjectResponseFunction implements Function { + @Override + public GetObjectResponse apply(final GetObjectCustomParserParameters getObjectParserParams) { + return null; + } } } diff --git a/ds3-sdk-integration/src/integrationTest/java/com/spectralogic/ds3client/integration/DataIntegrity_Test.java b/ds3-sdk-integration/src/integrationTest/java/com/spectralogic/ds3client/integration/DataIntegrity_Test.java index 4ab65034e..6240d4983 100644 --- a/ds3-sdk-integration/src/integrationTest/java/com/spectralogic/ds3client/integration/DataIntegrity_Test.java +++ b/ds3-sdk-integration/src/integrationTest/java/com/spectralogic/ds3client/integration/DataIntegrity_Test.java @@ -371,7 +371,7 @@ public SeekableByteChannel buildChannel(final String key) throws IOException { } } - private class MultiFileChecksumListener implements ChecksumListener { + private static class MultiFileChecksumListener implements ChecksumListener { private final Map checksumMap; @@ -389,7 +389,7 @@ public String getChecksum(final String filename) { } } - private class SingleChecksumListener implements ChecksumListener { + private static class SingleChecksumListener implements ChecksumListener { public String getChecksum() { return checksum; @@ -403,7 +403,7 @@ public void value(final BulkObject obj, final ChecksumType.Type type, final Stri } } - public void sendAndVerifySingleFile(final String bucketName, final String fileName, final long seed, final int length) throws IOException { + public static void sendAndVerifySingleFile(final String bucketName, final String fileName, final long seed, final int length) throws IOException { try { HELPERS.ensureBucketExists(bucketName, envDataPolicyId); diff --git a/ds3-sdk-integration/src/integrationTest/java/com/spectralogic/ds3client/integration/GetJobManagement_Test.java b/ds3-sdk-integration/src/integrationTest/java/com/spectralogic/ds3client/integration/GetJobManagement_Test.java index 40f60c41d..629009870 100644 --- a/ds3-sdk-integration/src/integrationTest/java/com/spectralogic/ds3client/integration/GetJobManagement_Test.java +++ b/ds3-sdk-integration/src/integrationTest/java/com/spectralogic/ds3client/integration/GetJobManagement_Test.java @@ -74,12 +74,7 @@ import com.spectralogic.ds3client.utils.Platform; import com.spectralogic.ds3client.utils.ResourceUtils; import org.apache.commons.io.FileUtils; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assume; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; +import org.junit.*; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -236,7 +231,7 @@ public void createReadJobWithBigFile() throws IOException, URISyntaxException, N maxNumBlockAllocationRetries, maxNumObjectTransferAttempts); - final Ds3ClientHelpers.Job readJob = ds3ClientHelpers.startReadJob(BUCKET_NAME, Arrays.asList(obj)); + final Ds3ClientHelpers.Job readJob = ds3ClientHelpers.startReadJob(BUCKET_NAME, Collections.singletonList(obj)); final AtomicBoolean dataTransferredEventReceived = new AtomicBoolean(false); final AtomicBoolean objectCompletedEventReceived = new AtomicBoolean(false); @@ -367,7 +362,7 @@ public void testReadRetryBugFixWithUnwritableDirectory() throws IOException, URI maxNumBlockAllocationRetries, maxNumObjectTransferAttempts); - final Ds3ClientHelpers.Job readJob = ds3ClientHelpers.startReadJob(BUCKET_NAME, Arrays.asList(obj)); + final Ds3ClientHelpers.Job readJob = ds3ClientHelpers.startReadJob(BUCKET_NAME, Collections.singletonList(obj)); final GetJobSpectraS3Response jobSpectraS3Response = ds3ClientShim .getJobSpectraS3(new GetJobSpectraS3Request(readJob.getJobId())); @@ -392,7 +387,7 @@ public void testReadRetryBugFixWithUnwritableDirectory() throws IOException, URI } } - private void disableWritePermissionForRoot(final String fileOrDirName) { + private static void disableWritePermissionForRoot(final String fileOrDirName) { try { if (iAmRoot()) { Runtime.getRuntime().exec("chattr +i " + fileOrDirName).waitFor(); @@ -402,7 +397,7 @@ private void disableWritePermissionForRoot(final String fileOrDirName) { } } - private boolean iAmRoot() { + private static boolean iAmRoot() { if ( ! Platform.isLinux()) { return false; } @@ -435,7 +430,7 @@ private boolean iAmRoot() { return false; } - private void enableWritePermissionForRoot(final String fileOrDirName) { + private static void enableWritePermissionForRoot(final String fileOrDirName) { try { if (iAmRoot()) { Runtime.getRuntime().exec("chattr -i " + fileOrDirName).waitFor(); @@ -468,7 +463,7 @@ public void testReadRetrybugWhenChannelThrowsAccessException() throws IOExceptio maxNumBlockAllocationRetries, maxNumObjectTransferAttempts); - final Ds3ClientHelpers.Job readJob = ds3ClientHelpers.startReadJob(BUCKET_NAME, Arrays.asList(obj)); + final Ds3ClientHelpers.Job readJob = ds3ClientHelpers.startReadJob(BUCKET_NAME, Collections.singletonList(obj)); final GetJobSpectraS3Response jobSpectraS3Response = ds3ClientShim .getJobSpectraS3(new GetJobSpectraS3Request(readJob.getJobId())); @@ -512,7 +507,7 @@ public void testReadRetryBugWhenDiskIsFull() throws IOException, URISyntaxExcept maxNumBlockAllocationRetries, maxNumObjectTransferAttempts); - final Ds3ClientHelpers.Job readJob = ds3ClientHelpers.startReadJob(BUCKET_NAME, Arrays.asList(obj)); + final Ds3ClientHelpers.Job readJob = ds3ClientHelpers.startReadJob(BUCKET_NAME, Collections.singletonList(obj)); final GetJobSpectraS3Response jobSpectraS3Response = ds3ClientShim .getJobSpectraS3(new GetJobSpectraS3Request(readJob.getJobId())); @@ -532,8 +527,7 @@ public void testReadRetryBugWhenDiskIsFull() throws IOException, URISyntaxExcept private static class FailingChannelBuilder implements Ds3ClientHelpers.ObjectChannelBuilder { @Override public SeekableByteChannel buildChannel(final String key) throws IOException { - final String filePath = key; - final SeekableByteChannel seekableByteChannel = Files.newByteChannel(Paths.get(filePath), + final SeekableByteChannel seekableByteChannel = Files.newByteChannel(Paths.get(key), StandardOpenOption.WRITE, StandardOpenOption.TRUNCATE_EXISTING, StandardOpenOption.CREATE, StandardOpenOption.DELETE_ON_CLOSE); return new SeekableByteChannelWrapper(seekableByteChannel); @@ -769,7 +763,7 @@ public void onFailure(final FailureEvent failureEvent) { } } - private Ds3ClientHelpers.Job createReadJobWithObjectsReadyToTransfer(final Ds3ClientShimFactory.ClientFailureType clientFailureType) + private static Ds3ClientHelpers.Job createReadJobWithObjectsReadyToTransfer(final Ds3ClientShimFactory.ClientFailureType clientFailureType) throws IOException, URISyntaxException, NoSuchMethodException, IllegalAccessException, InvocationTargetException { final String DIR_NAME = "largeFiles/"; @@ -787,9 +781,7 @@ private Ds3ClientHelpers.Job createReadJobWithObjectsReadyToTransfer(final Ds3Cl maxNumBlockAllocationRetries, maxNumObjectTransferAttempts); - final Ds3ClientHelpers.Job readJob = ds3ClientHelpers.startReadJob(BUCKET_NAME, Arrays.asList(obj)); - - return readJob; + return ds3ClientHelpers.startReadJob(BUCKET_NAME, Collections.singletonList(obj)); } @Test @@ -840,7 +832,7 @@ private interface ReadJobStarter { Ds3ClientHelpers.Job startReadJob(final Ds3ClientHelpers ds3ClientHelpers, final String bucketName, Iterable objectsToread) throws IOException; } - private void doReadJobWithJobStarter(final ReadJobStarter readJobStarter) throws IOException, URISyntaxException, NoSuchMethodException, IllegalAccessException, InvocationTargetException { + private static void doReadJobWithJobStarter(final ReadJobStarter readJobStarter) throws IOException, URISyntaxException, NoSuchMethodException, IllegalAccessException, InvocationTargetException { final String tempPathPrefix = null; final Path tempDirectory = Files.createTempDirectory(Paths.get("."), tempPathPrefix); @@ -860,7 +852,7 @@ private void doReadJobWithJobStarter(final ReadJobStarter readJobStarter) throws maxNumBlockAllocationRetries, maxNumObjectTransferAttempts); - final Ds3ClientHelpers.Job readJob = readJobStarter.startReadJob(ds3ClientHelpers, BUCKET_NAME, Arrays.asList(obj)); + final Ds3ClientHelpers.Job readJob = readJobStarter.startReadJob(ds3ClientHelpers, BUCKET_NAME, Collections.singletonList(obj)); final AtomicBoolean dataTransferredEventReceived = new AtomicBoolean(false); final AtomicBoolean objectCompletedEventReceived = new AtomicBoolean(false); @@ -1134,7 +1126,7 @@ private interface Monitorable { void monitor(); } - private class UserSuppliedPutBlobStrategy implements BlobStrategy { + private static class UserSuppliedPutBlobStrategy implements BlobStrategy { private final BlobStrategy wrappedBlobStrategy; private final Monitorable monitorable; @@ -1169,7 +1161,7 @@ public TransferStrategyBuilder modify(final TransferStrategyBuilder transferStra }); } - private void testGetJobWithUserSuppliedChannelStrategy(final TransferStrategyBuilderModifiable transferStrategyBuilderModifiable) throws IOException, InterruptedException { + private static void testGetJobWithUserSuppliedChannelStrategy(final TransferStrategyBuilderModifiable transferStrategyBuilderModifiable) throws IOException, InterruptedException { final String tempPathPrefix = null; final Path tempDirectory = Files.createTempDirectory(Paths.get("."), tempPathPrefix); final String fileName = "beowulf.txt"; @@ -1233,7 +1225,7 @@ private interface ChannelMonitorable { void released(); } - private class UserSuppliedPutChannelStrategy implements ChannelStrategy { + private static class UserSuppliedPutChannelStrategy implements ChannelStrategy { private final ChannelMonitorable channelMonitorable; private final ChannelStrategy wrappedPutStrategy; @@ -1325,7 +1317,7 @@ public void monitor() { } } - private class UserSuppliedTransferRetryDecorator implements TransferRetryDecorator { + private static class UserSuppliedTransferRetryDecorator implements TransferRetryDecorator { private final TransferRetryDecorator transferRetryDecorator; private final Monitorable monitorable; @@ -1402,7 +1394,7 @@ public void reset() { } } - private class UserSuppliedChunkAttemptRetryBehavior implements ChunkAttemptRetryBehavior { + private static class UserSuppliedChunkAttemptRetryBehavior implements ChunkAttemptRetryBehavior { private final ChunkAttemptRetryBehaviorMonitorable chunkAttemptRetryBehaviorMonitorable; private final ChunkAttemptRetryBehavior wrappedChunkAttemptRetryBehavior; @@ -1443,7 +1435,7 @@ public void testThatFifoIsNotProcessed() throws IOException, InterruptedExceptio try { Runtime.getRuntime().exec("mkfifo " + Paths.get(tempDirectory.toString(), BEOWULF_FILE_NAME)).waitFor(); - final List ds3Objects = Arrays.asList(new Ds3Object(BEOWULF_FILE_NAME)); + final List ds3Objects = Collections.singletonList(new Ds3Object(BEOWULF_FILE_NAME)); final Ds3ClientHelpers.Job readJob = HELPERS.startReadJob(BUCKET_NAME, ds3Objects); readJob.transfer(new FileObjectPutter(tempDirectory)); diff --git a/ds3-sdk-integration/src/integrationTest/java/com/spectralogic/ds3client/integration/Iterators_Test.java b/ds3-sdk-integration/src/integrationTest/java/com/spectralogic/ds3client/integration/Iterators_Test.java index 6ddfdb56d..95e61406e 100644 --- a/ds3-sdk-integration/src/integrationTest/java/com/spectralogic/ds3client/integration/Iterators_Test.java +++ b/ds3-sdk-integration/src/integrationTest/java/com/spectralogic/ds3client/integration/Iterators_Test.java @@ -141,7 +141,7 @@ public void multiPageGetObjectsWithFullDetails() throws IOException, URISyntaxEx paginate(new GetObjectsFullDetailsLoaderFactory(CLIENT, TEST_ENV_NAME, 2, RETRIES, true)); } - private void emptyTest(final LazyIterable.LazyLoaderFactory lazyLoaderFactory) throws IOException { + private static void emptyTest(final LazyIterable.LazyLoaderFactory lazyLoaderFactory) throws IOException { HELPERS.ensureBucketExists(TEST_ENV_NAME, envDataPolicyId); try { final LazyIterable iterable = new LazyIterable<>(lazyLoaderFactory); @@ -154,7 +154,7 @@ private void emptyTest(final LazyIterable.LazyLoaderFactory lazyLoaderFactory } } - private void paginate(final LazyIterable.LazyLoaderFactory loaderFactory) throws IOException, URISyntaxException { + private static void paginate(final LazyIterable.LazyLoaderFactory loaderFactory) throws IOException, URISyntaxException { HELPERS.ensureBucketExists(TEST_ENV_NAME, envDataPolicyId); loadBookTestData(CLIENT, TEST_ENV_NAME); try { @@ -176,7 +176,7 @@ private void paginate(final LazyIterable.LazyLoaderFactory loaderFactory) thr } } - private void testFailedRequest(final LazyIterable.LazyLoaderFactory loaderFactory) { + private static void testFailedRequest(final LazyIterable.LazyLoaderFactory loaderFactory) { final LazyIterable iterable = new LazyIterable<>(loaderFactory); final Iterator iterator = iterable.iterator(); diff --git a/ds3-sdk-integration/src/integrationTest/java/com/spectralogic/ds3client/integration/PutJobManagement_Test.java b/ds3-sdk-integration/src/integrationTest/java/com/spectralogic/ds3client/integration/PutJobManagement_Test.java index 5a1aef89e..866632954 100644 --- a/ds3-sdk-integration/src/integrationTest/java/com/spectralogic/ds3client/integration/PutJobManagement_Test.java +++ b/ds3-sdk-integration/src/integrationTest/java/com/spectralogic/ds3client/integration/PutJobManagement_Test.java @@ -118,7 +118,7 @@ public static void teardown() throws IOException { client.close(); } - private long getCacheBytesAvailable() throws IOException { + private static long getCacheBytesAvailable() throws IOException { long cacheAvailableBytes = 0; final List cacheFilesystemInformationList = client.getCacheStateSpectraS3( new GetCacheStateSpectraS3Request()).getCacheInformationResult().getFilesystems(); @@ -959,9 +959,9 @@ public boolean handleException(final Throwable t) { }, computeChecksumWithUserSuppliedFunction); } - private void transferAndCheckFileContent(final int maxNumObjectTransferAttempts, - final ObjectTransferExceptionHandler objectTransferExceptionHandler, - final boolean computeChecksumWithUserSuppliedFunction) + private static void transferAndCheckFileContent(final int maxNumObjectTransferAttempts, + final ObjectTransferExceptionHandler objectTransferExceptionHandler, + final boolean computeChecksumWithUserSuppliedFunction) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, IOException, URISyntaxException { final String userAgent = "Agent Provocateur"; @@ -1245,8 +1245,8 @@ public void onFailure(final FailureEvent failureEvent) { } } - Ds3ClientHelpers.Job createWriteJobWithObjectsReadyToTransfer(final int maxNumObjectTransferAttempts, - final ClientFailureType clientFailureType) + static Ds3ClientHelpers.Job createWriteJobWithObjectsReadyToTransfer(final int maxNumObjectTransferAttempts, + final ClientFailureType clientFailureType) throws IOException, URISyntaxException, NoSuchMethodException, IllegalAccessException, InvocationTargetException { final String DIR_NAME = "largeFiles/"; final String[] FILE_NAMES = new String[]{"lesmis-copies.txt"}; @@ -1269,9 +1269,7 @@ Ds3ClientHelpers.Job createWriteJobWithObjectsReadyToTransfer(final int maxNumOb maxNumBlockAllocationRetries, maxNumObjectTransferAttempts); - final Ds3ClientHelpers.Job writeJob = ds3ClientHelpers.startWriteJob(BUCKET_NAME, objects); - - return writeJob; + return ds3ClientHelpers.startWriteJob(BUCKET_NAME, objects); } @Test @@ -1510,7 +1508,7 @@ private interface Monitorable { void monitor(); } - private class UserSuppliedPutBlobStrategy implements BlobStrategy { + private static class UserSuppliedPutBlobStrategy implements BlobStrategy { private final BlobStrategy wrappedBlobStrategy; private final Monitorable monitorable; @@ -1544,7 +1542,7 @@ public TransferStrategyBuilder modify(final TransferStrategyBuilder transferStra }); } - private void testPutJobWithUserSuppliedChannelStrategy(final TransferStrategyBuilderModifiable strategyBuilderModifiable) throws IOException, InterruptedException, URISyntaxException { + private static void testPutJobWithUserSuppliedChannelStrategy(final TransferStrategyBuilderModifiable strategyBuilderModifiable) throws IOException, InterruptedException, URISyntaxException { final String DIR_NAME = "books/"; final String[] FILE_NAMES = new String[]{"beowulf.txt"}; @@ -1618,7 +1616,7 @@ private interface ChannelMonitorable { void released(); } - private class UserSuppliedPutChannelStrategy implements ChannelStrategy { + private static class UserSuppliedPutChannelStrategy implements ChannelStrategy { private final ChannelMonitorable channelMonitorable; private final ChannelStrategy wrappedPutStrategy; @@ -1717,7 +1715,7 @@ public void monitor() { } } - private class UserSuppliedTransferRetryDecorator implements TransferRetryDecorator { + private static class UserSuppliedTransferRetryDecorator implements TransferRetryDecorator { private final TransferRetryDecorator transferRetryDecorator; private final Monitorable monitorable; @@ -1800,7 +1798,7 @@ public void reset() { } } - private class UserSuppliedChunkAttemptRetryBehavior implements ChunkAttemptRetryBehavior { + private static class UserSuppliedChunkAttemptRetryBehavior implements ChunkAttemptRetryBehavior { private final ChunkAttemptRetryBehaviorMonitorable chunkAttemptRetryBehaviorMonitorable; private final ChunkAttemptRetryBehavior wrappedChunkAttemptRetryBehavior; @@ -1861,7 +1859,7 @@ public void testPutJobUsingStreamedTransferStrategy() throws IOException, URISyn } } - public class StreamObjectPutter extends ObjectInputStreamBuilder { + public static class StreamObjectPutter extends ObjectInputStreamBuilder { final InputStream _is; public StreamObjectPutter(final InputStream is) { @@ -1956,7 +1954,7 @@ public void testThatMetadataAccessDoesNotTerminateTransfer() throws IOException, if ( ! Platform.isWindows()) { tempDirectory.toFile().setExecutable(false); } else { - Runtime.getRuntime().exec("icacls " + tempDirectory.toString() + "/deny Everyone(RD)").waitFor(); + Runtime.getRuntime().exec("icacls " + tempDirectory + "/deny Everyone(RD)").waitFor(); } final int maxNumBlockAllocationRetries = 3; @@ -1986,7 +1984,7 @@ public void onFailure(final FailureEvent failureEvent) { if ( ! Platform.isWindows()) { tempDirectory.toFile().setExecutable(true); } else { - Runtime.getRuntime().exec("icacls " + tempDirectory.toString() + "/grant Everyone(RD)").waitFor(); + Runtime.getRuntime().exec("icacls " + tempDirectory + "/grant Everyone(RD)").waitFor(); } deleteAllContents(client, BUCKET_NAME); @@ -2033,11 +2031,11 @@ public void testPutting15000Files() throws IOException, URISyntaxException { } } - private Path sourceFilePath() throws IOException, URISyntaxException { + private static Path sourceFilePath() throws IOException, URISyntaxException { return ResourceUtils.loadFileResource(SOURCE_DIRECTORY + SOURCE_FILE_NAME); } - private ImmutableList copyFilesAndGenerateDsObjects(final Path destinationDirectory) throws IOException, URISyntaxException { + private static ImmutableList copyFilesAndGenerateDsObjects(final Path destinationDirectory) throws IOException, URISyntaxException { final Path sourceFilePath = ResourceUtils.loadFileResource(SOURCE_DIRECTORY + SOURCE_FILE_NAME); final ImmutableList fileNames = generateFileNames(SOURCE_FILE_BASE_NAME, SOURCE_FILE_EXTENSION, 15000); @@ -2046,7 +2044,7 @@ private ImmutableList copyFilesAndGenerateDsObjects(final Path destin return generateDs3Objects(destinationDirectory, fileNames); } - private ImmutableList generateFileNames(final String baseFileName, final String baseFileExtension, final int numFileNames) { + private static ImmutableList generateFileNames(final String baseFileName, final String baseFileExtension, final int numFileNames) { final ImmutableList.Builder listBuilder = ImmutableList.builder(); listBuilder.add(baseFileName + "." + baseFileExtension); @@ -2058,13 +2056,13 @@ private ImmutableList generateFileNames(final String baseFileName, final return listBuilder.build(); } - private void copyFiles(final Path sourceFilePath, final Path destinationDirectory, final ImmutableList fileNames) throws IOException { + private static void copyFiles(final Path sourceFilePath, final Path destinationDirectory, final ImmutableList fileNames) throws IOException { for (final String fileName : fileNames) { Files.copy(sourceFilePath, Paths.get(destinationDirectory.toString(), fileName)); } } - private ImmutableList generateDs3Objects(final Path destinationDirectory, final ImmutableList fileNames) throws IOException { + private static ImmutableList generateDs3Objects(final Path destinationDirectory, final ImmutableList fileNames) throws IOException { final ImmutableList.Builder listBuilder = ImmutableList.builder(); for (final String fileName : fileNames) { diff --git a/ds3-sdk-integration/src/integrationTest/java/com/spectralogic/ds3client/integration/Smoke_Test.java b/ds3-sdk-integration/src/integrationTest/java/com/spectralogic/ds3client/integration/Smoke_Test.java index a81d0a56d..67702653c 100644 --- a/ds3-sdk-integration/src/integrationTest/java/com/spectralogic/ds3client/integration/Smoke_Test.java +++ b/ds3-sdk-integration/src/integrationTest/java/com/spectralogic/ds3client/integration/Smoke_Test.java @@ -50,6 +50,7 @@ import java.nio.channels.FileChannel; import java.nio.channels.SeekableByteChannel; import java.nio.charset.Charset; +import java.nio.charset.StandardCharsets; import java.nio.file.*; import java.util.*; import java.util.concurrent.CountDownLatch; @@ -514,7 +515,7 @@ public Ds3ClientHelpers.Job makeRecoveryJob(final Ds3ClientHelpers ds3ClientHelp }); } - private void runWriteRecoveryTest(final RecoveryJobFactory recoveryJobFactory) throws IOException, JobRecoveryException, URISyntaxException { + private static void runWriteRecoveryTest(final RecoveryJobFactory recoveryJobFactory) throws IOException, JobRecoveryException, URISyntaxException { final String bucketName = "test_recover_write_job_bucket"; final String book1 = "beowulf.txt"; final String book2 = "ulysses.txt"; @@ -803,7 +804,7 @@ public Ds3ClientHelpers.Job makeRecoveryJob(final Ds3ClientHelpers ds3ClientHelp }); } - private void runReadRecoveryJob(final RecoveryJobFactory recoveryJobFactory) throws IOException, JobRecoveryException, URISyntaxException { + private static void runReadRecoveryJob(final RecoveryJobFactory recoveryJobFactory) throws IOException, JobRecoveryException, URISyntaxException { final String bucketName = "test_recover_read_job_bucket"; final String book1 = "beowulf.txt"; final String book2 = "ulysses.txt"; @@ -973,7 +974,7 @@ public void putDirectoryWithOtherObjects() throws IOException { try { - final byte[] content = "I'm text with some more data so that it gets flushed to the output cache.".getBytes(Charset.forName("UTF-8")); + final byte[] content = "I'm text with some more data so that it gets flushed to the output cache.".getBytes(StandardCharsets.UTF_8); final List objs = Lists.newArrayList(new Ds3Object("dir/"), new Ds3Object("obj.txt", content.length)); @@ -1204,7 +1205,7 @@ public void partialGetWithBookOverChunkBoundry() throws IOException, URISyntaxEx final String bucketName = "partialGetOnBook"; final Path filePath = Files.createTempFile("ds3", FILE_NAME); - LOG.info("TempFile for partial get of book: " + filePath.toAbsolutePath().toString()); + LOG.info("TempFile for partial get of book: " + filePath.toAbsolutePath()); try { @@ -1233,9 +1234,9 @@ public SeekableByteChannel buildChannel(final String key) throws IOException { final Path expectedResultPath = Paths.get(Smoke_Test.class.getResource("/largeFiles/output").toURI()); assertThat(Files.size(filePath), is(200L)); - final String partialFile = new String(Files.readAllBytes(filePath), Charset.forName("UTF-8")); - final String expectedResult = new String(Files.readAllBytes(expectedResultPath), Charset.forName("UTF-8")); - assertThat(partialFile, is(expectedResult.substring(0, expectedResult.length()))); + final String partialFile = new String(Files.readAllBytes(filePath), StandardCharsets.UTF_8); + final String expectedResult = new String(Files.readAllBytes(expectedResultPath), StandardCharsets.UTF_8); + assertThat(partialFile, is(expectedResult)); } finally { deleteAllContents(client, bucketName); Files.delete(filePath); diff --git a/ds3-sdk-integration/src/integrationTest/java/com/spectralogic/ds3client/integration/SpectraS3PaginationLoader_Test.java b/ds3-sdk-integration/src/integrationTest/java/com/spectralogic/ds3client/integration/SpectraS3PaginationLoader_Test.java index 883dd43ef..e7ea737bb 100644 --- a/ds3-sdk-integration/src/integrationTest/java/com/spectralogic/ds3client/integration/SpectraS3PaginationLoader_Test.java +++ b/ds3-sdk-integration/src/integrationTest/java/com/spectralogic/ds3client/integration/SpectraS3PaginationLoader_Test.java @@ -99,7 +99,7 @@ public void basicPagination() throws IOException { } } - private List createTestList(final int numObjects) { + private static List createTestList(final int numObjects) { final ImmutableList.Builder builder = ImmutableList.builder(); for (int i = 0; i < numObjects; i++) { builder.add(new Ds3Object("obj." + i, i+1)); diff --git a/ds3-sdk-integration/src/integrationTest/java/com/spectralogic/ds3client/integration/test/helpers/ABMTestHelper.java b/ds3-sdk-integration/src/integrationTest/java/com/spectralogic/ds3client/integration/test/helpers/ABMTestHelper.java index 3eabf1d05..5647fa98c 100644 --- a/ds3-sdk-integration/src/integrationTest/java/com/spectralogic/ds3client/integration/test/helpers/ABMTestHelper.java +++ b/ds3-sdk-integration/src/integrationTest/java/com/spectralogic/ds3client/integration/test/helpers/ABMTestHelper.java @@ -298,14 +298,14 @@ public static void deleteStorageDomainMember( client.deleteStorageDomainMemberSpectraS3( new DeleteStorageDomainMemberSpectraS3Request(memberId.toString())); } catch (final IOException|AssertionError e) { - LOG.error("Storage domain member was not deleted as expected: " + memberId.toString()); + LOG.error("Storage domain member was not deleted as expected: " + memberId); } //Verify that the storage domain member was deleted try { client.getStorageDomainMemberSpectraS3( new GetStorageDomainMemberSpectraS3Request(memberId.toString())); - LOG.error("Storage domain member still exists despite deletion attempt: " + memberId.toString()); + LOG.error("Storage domain member still exists despite deletion attempt: " + memberId); } catch (final IOException e) { //Pass: expected storage domain member to not exist } @@ -352,14 +352,14 @@ public static void deleteDataPersistenceRule( client.deleteDataPersistenceRuleSpectraS3( new DeleteDataPersistenceRuleSpectraS3Request(dataPersistenceRuleId.toString())); } catch (final IOException|AssertionError e) { - LOG.error("Data persistence rule was not deleted as expected: " + dataPersistenceRuleId.toString()); + LOG.error("Data persistence rule was not deleted as expected: " + dataPersistenceRuleId); } //Verify that the data persistence rule was deleted try { client.getDataPersistenceRuleSpectraS3( new GetDataPersistenceRuleSpectraS3Request(dataPersistenceRuleId.toString())); - LOG.error("Data persistence rule still exists despite deletion attempt: " + dataPersistenceRuleId.toString()); + LOG.error("Data persistence rule still exists despite deletion attempt: " + dataPersistenceRuleId); } catch (final IOException e) { //Pass: expected data persistence rule to not exist } @@ -452,13 +452,13 @@ public static void deleteDataPolicyAclForGroup( try { client.deleteDataPolicyAclSpectraS3(new DeleteDataPolicyAclSpectraS3Request(aclId.toString())); } catch (final IOException|AssertionError e) { - LOG.error("Data policy Acl was not deleted as expected: " + aclId.toString()); + LOG.error("Data policy Acl was not deleted as expected: " + aclId); } //Verify that the Acl was deleted try { client.getDataPolicyAclSpectraS3(new GetDataPolicyAclSpectraS3Request(aclId.toString())); - LOG.error("Data policy Acl still exists despite deletion attempt: " + aclId.toString()); + LOG.error("Data policy Acl still exists despite deletion attempt: " + aclId); } catch (final IOException e) { //Pass: expected data policy acl to not exist } diff --git a/ds3-sdk-integration/src/integrationTest/java/com/spectralogic/ds3client/integration/test/helpers/Ds3ClientShimWithFailedChunkAllocation.java b/ds3-sdk-integration/src/integrationTest/java/com/spectralogic/ds3client/integration/test/helpers/Ds3ClientShimWithFailedChunkAllocation.java index d8bd064ef..3d68f0347 100644 --- a/ds3-sdk-integration/src/integrationTest/java/com/spectralogic/ds3client/integration/test/helpers/Ds3ClientShimWithFailedChunkAllocation.java +++ b/ds3-sdk-integration/src/integrationTest/java/com/spectralogic/ds3client/integration/test/helpers/Ds3ClientShimWithFailedChunkAllocation.java @@ -47,7 +47,7 @@ public AllocateJobChunkSpectraS3Response allocateJobChunkSpectraS3(final Allocat return allocateJobChunkSpectraS3Response; } - private Map makeFailingResponseHeaders() { + private static Map makeFailingResponseHeaders() { final Map headers = new HashMap<>(); headers.put("content-NONE", "text/xml"); headers.put("Retry-After", "1"); diff --git a/ds3-sdk-integration/src/integrationTest/java/com/spectralogic/ds3client/integration/test/helpers/NotificationCleanupTestHelper.java b/ds3-sdk-integration/src/integrationTest/java/com/spectralogic/ds3client/integration/test/helpers/NotificationCleanupTestHelper.java index 9f74aaece..6b6818495 100644 --- a/ds3-sdk-integration/src/integrationTest/java/com/spectralogic/ds3client/integration/test/helpers/NotificationCleanupTestHelper.java +++ b/ds3-sdk-integration/src/integrationTest/java/com/spectralogic/ds3client/integration/test/helpers/NotificationCleanupTestHelper.java @@ -44,7 +44,7 @@ public static void deleteObjectCachedNotification(final UUID id, final Ds3Client client.deleteObjectCachedNotificationRegistrationSpectraS3( new DeleteObjectCachedNotificationRegistrationSpectraS3Request(id)); } catch (final IOException e) { - LOG.error("Object Cached Notification Registration was not deleted as expected: " + id.toString()); + LOG.error("Object Cached Notification Registration was not deleted as expected: " + id); } } @@ -62,7 +62,7 @@ public static void deleteJobCompletedNotification(final UUID id, final Ds3Client client.deleteJobCompletedNotificationRegistrationSpectraS3( new DeleteJobCompletedNotificationRegistrationSpectraS3Request(id)); } catch (final IOException e) { - LOG.error("Job Completed Notification Registration was not deleted as expected: " + id.toString()); + LOG.error("Job Completed Notification Registration was not deleted as expected: " + id); } } @@ -80,7 +80,7 @@ public static void deleteJobCreatedNotification(final UUID id, final Ds3Client c client.deleteJobCreatedNotificationRegistrationSpectraS3( new DeleteJobCreatedNotificationRegistrationSpectraS3Request(id)); } catch (final IOException e) { - LOG.error("Job Created Notification Registration was not deleted as expected: " + id.toString()); + LOG.error("Job Created Notification Registration was not deleted as expected: " + id); } } @@ -98,7 +98,7 @@ public static void deleteObjectLostNotification(final UUID id, final Ds3Client c client.deleteObjectLostNotificationRegistrationSpectraS3( new DeleteObjectLostNotificationRegistrationSpectraS3Request(id)); } catch (final IOException e) { - LOG.error("Object Lost Notification Registration was not deleted as expected: " + id.toString()); + LOG.error("Object Lost Notification Registration was not deleted as expected: " + id); } } @@ -116,7 +116,7 @@ public static void deleteObjectPersistedNotification(final UUID id, final Ds3Cli client.deleteObjectPersistedNotificationRegistrationSpectraS3( new DeleteObjectPersistedNotificationRegistrationSpectraS3Request(id)); } catch (final IOException e) { - LOG.error("Object Persisted Notification Registration was not deleted as expected: " + id.toString()); + LOG.error("Object Persisted Notification Registration was not deleted as expected: " + id); } } @@ -134,7 +134,7 @@ public static void deleteTapePartitionFailureNotification(final UUID id, final D client.deleteTapePartitionFailureNotificationRegistrationSpectraS3( new DeleteTapePartitionFailureNotificationRegistrationSpectraS3Request(id)); } catch (final IOException e) { - LOG.error("Tape Partition Failure Notification Registration was not deleted as expected: " + id.toString()); + LOG.error("Tape Partition Failure Notification Registration was not deleted as expected: " + id); } } @@ -152,7 +152,7 @@ public static void deleteTapeFailureNotification(final UUID id, final Ds3Client client.deleteTapeFailureNotificationRegistrationSpectraS3( new DeleteTapeFailureNotificationRegistrationSpectraS3Request(id)); } catch (final IOException e) { - LOG.error("Tape Failure Notification Registration was not deleted as expected: " + id.toString()); + LOG.error("Tape Failure Notification Registration was not deleted as expected: " + id); } } } diff --git a/ds3-sdk-samples/src/main/java/com/spectralogic/ds3client/samples/BulkGetWithMetadata.java b/ds3-sdk-samples/src/main/java/com/spectralogic/ds3client/samples/BulkGetWithMetadata.java index 05b6c0a41..fea3d13ab 100644 --- a/ds3-sdk-samples/src/main/java/com/spectralogic/ds3client/samples/BulkGetWithMetadata.java +++ b/ds3-sdk-samples/src/main/java/com/spectralogic/ds3client/samples/BulkGetWithMetadata.java @@ -71,6 +71,6 @@ private static void printMetadata(final String objectName, final Metadata metada .append("> "); } - System.out.println(builder.toString()); + System.out.println(builder); } } diff --git a/ds3-sdk-samples/src/main/java/com/spectralogic/ds3client/samples/Ds3ServiceListExample.java b/ds3-sdk-samples/src/main/java/com/spectralogic/ds3client/samples/Ds3ServiceListExample.java index b45666fe1..0f1f5b487 100644 --- a/ds3-sdk-samples/src/main/java/com/spectralogic/ds3client/samples/Ds3ServiceListExample.java +++ b/ds3-sdk-samples/src/main/java/com/spectralogic/ds3client/samples/Ds3ServiceListExample.java @@ -26,7 +26,6 @@ import com.spectralogic.ds3client.networking.FailedRequestUsingMgmtPortException; import java.io.IOException; -import java.net.UnknownHostException; import java.security.SignatureException; import java.net.UnknownHostException; diff --git a/ds3-sdk-samples/src/main/java/com/spectralogic/ds3client/samples/PutEmptyFolderExample.java b/ds3-sdk-samples/src/main/java/com/spectralogic/ds3client/samples/PutEmptyFolderExample.java index 255d1fe0d..d2177a58d 100644 --- a/ds3-sdk-samples/src/main/java/com/spectralogic/ds3client/samples/PutEmptyFolderExample.java +++ b/ds3-sdk-samples/src/main/java/com/spectralogic/ds3client/samples/PutEmptyFolderExample.java @@ -19,8 +19,6 @@ import com.spectralogic.ds3client.Ds3ClientBuilder; import com.spectralogic.ds3client.commands.PutObjectRequest; import com.spectralogic.ds3client.commands.PutObjectResponse; -import com.spectralogic.ds3client.commands.spectrads3.GetBucketSpectraS3Request; -import com.spectralogic.ds3client.commands.spectrads3.GetBucketSpectraS3Response; import com.spectralogic.ds3client.helpers.Ds3ClientHelpers; import com.spectralogic.ds3client.models.Contents; import com.spectralogic.ds3client.networking.FailedRequestException; diff --git a/ds3-sdk/build.gradle.kts b/ds3-sdk/build.gradle.kts index e0ea6ccd9..e1afa6e9e 100644 --- a/ds3-sdk/build.gradle.kts +++ b/ds3-sdk/build.gradle.kts @@ -14,16 +14,16 @@ */ import java.time.Instant -// bug in IntelliJ in which `libs` shows up as not being accessible -// see https://youtrack.jetbrains.com/issue/KTIJ-19369 -@Suppress("DSL_SCOPE_VIOLATION") + plugins { `ds3-java-sdk-library-convention` - alias(libs.plugins.kotlinJvmPlugin) alias(libs.plugins.shadowPlugin) alias(libs.plugins.gitVersionPlugin) } +description = "The BlackPearl SDK module holds the classes used to " + + "communicate with the BlackPearl dataport." + dependencies { implementation(platform(libs.jacksonBom)) diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/ConnectionDetailsImpl.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/ConnectionDetailsImpl.java index bea5f4f56..1376cc703 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/ConnectionDetailsImpl.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/ConnectionDetailsImpl.java @@ -117,8 +117,7 @@ public static ConnectionDetails newForNode(final JobNode node, final ConnectionD } private static String buildAuthority(final JobNode node, final ConnectionDetails connectionDetails) { - return node.getEndPoint() + ":" + Integer.toString( - connectionDetails.isHttps() ? node.getHttpsPort() : node.getHttpPort()); + return node.getEndPoint() + ":" + (connectionDetails.isHttps() ? node.getHttpsPort() : node.getHttpPort()); } private final String endpoint; @@ -199,7 +198,7 @@ public String getUserAgent() { return Guard.isStringNullOrEmpty(userAgent) ? getDefaultSdkVersion() : userAgent; } - private String getDefaultSdkVersion() { + private static String getDefaultSdkVersion() { final String sdkVersion = PropertyUtils.getSdkVersion(); if (Guard.isStringNullOrEmpty(sdkVersion)) { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/Ds3Client.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/Ds3Client.java index b216d2398..be3b8c4f4 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/Ds3Client.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/Ds3Client.java @@ -795,6 +795,12 @@ PutBulkJobSpectraS3Response putBulkJobSpectraS3(final PutBulkJobSpectraS3Request VerifyBulkJobSpectraS3Response verifyBulkJobSpectraS3(final VerifyBulkJobSpectraS3Request request) throws IOException; + @Action("DELETE") + @Resource("JOB_CREATION_FAILED") + + DeleteJobCreationFailureSpectraS3Response deleteJobCreationFailureSpectraS3(final DeleteJobCreationFailureSpectraS3Request request) + throws IOException; + @ResponsePayloadModel("ActiveJob") @Action("SHOW") @Resource("ACTIVE_JOB") @@ -858,6 +864,13 @@ GetJobChunkSpectraS3Response getJobChunkSpectraS3(final GetJobChunkSpectraS3Requ GetJobChunksReadyForClientProcessingSpectraS3Response getJobChunksReadyForClientProcessingSpectraS3(final GetJobChunksReadyForClientProcessingSpectraS3Request request) throws IOException; + @ResponsePayloadModel("JobCreationFailedList") + @Action("LIST") + @Resource("JOB_CREATION_FAILED") + + GetJobCreationFailuresSpectraS3Response getJobCreationFailuresSpectraS3(final GetJobCreationFailuresSpectraS3Request request) + throws IOException; + @ResponsePayloadModel("MasterObjectList") @Action("SHOW") @Resource("JOB") diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/Ds3ClientImpl.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/Ds3ClientImpl.java index 3a5bb85d3..d0e73eafe 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/Ds3ClientImpl.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/Ds3ClientImpl.java @@ -514,6 +514,10 @@ public VerifyBulkJobSpectraS3Response verifyBulkJobSpectraS3(final VerifyBulkJob return new VerifyBulkJobSpectraS3ResponseParser().response(this.netClient.getResponse(request)); } @Override + public DeleteJobCreationFailureSpectraS3Response deleteJobCreationFailureSpectraS3(final DeleteJobCreationFailureSpectraS3Request request) throws IOException { + return new DeleteJobCreationFailureSpectraS3ResponseParser().response(this.netClient.getResponse(request)); + } + @Override public GetActiveJobSpectraS3Response getActiveJobSpectraS3(final GetActiveJobSpectraS3Request request) throws IOException { return new GetActiveJobSpectraS3ResponseParser().response(this.netClient.getResponse(request)); } @@ -550,6 +554,10 @@ public GetJobChunksReadyForClientProcessingSpectraS3Response getJobChunksReadyFo return new GetJobChunksReadyForClientProcessingSpectraS3ResponseParser().response(this.netClient.getResponse(request)); } @Override + public GetJobCreationFailuresSpectraS3Response getJobCreationFailuresSpectraS3(final GetJobCreationFailuresSpectraS3Request request) throws IOException { + return new GetJobCreationFailuresSpectraS3ResponseParser().response(this.netClient.getResponse(request)); + } + @Override public GetJobSpectraS3Response getJobSpectraS3(final GetJobSpectraS3Request request) throws IOException { return new GetJobSpectraS3ResponseParser().response(this.netClient.getResponse(request)); } diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/AbortMultiPartUploadRequest.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/AbortMultiPartUploadRequest.java index 9ced08f1e..7c8dccb4a 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/AbortMultiPartUploadRequest.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/AbortMultiPartUploadRequest.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class AbortMultiPartUploadRequest extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/CompleteBlobRequest.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/CompleteBlobRequest.java index 78c2266a0..2592a263e 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/CompleteBlobRequest.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/CompleteBlobRequest.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class CompleteBlobRequest extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/CompleteMultiPartUploadRequest.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/CompleteMultiPartUploadRequest.java index 1751bcfca..8a86f5b26 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/CompleteMultiPartUploadRequest.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/CompleteMultiPartUploadRequest.java @@ -22,9 +22,9 @@ import java.io.InputStream; import com.spectralogic.ds3client.serializer.XmlOutput; import java.nio.charset.Charset; +import java.nio.charset.StandardCharsets; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class CompleteMultiPartUploadRequest extends AbstractRequest { @@ -86,7 +86,7 @@ public InputStream getStream() { final String xmlOutput = XmlOutput.toXml(requestPayload); - final byte[] stringBytes = xmlOutput.getBytes(Charset.forName("UTF-8")); + final byte[] stringBytes = xmlOutput.getBytes(StandardCharsets.UTF_8); this.size = stringBytes.length; return new ByteArrayInputStream(stringBytes); } diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/DeleteObjectRequest.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/DeleteObjectRequest.java index 9c8309b31..ed2d94cd6 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/DeleteObjectRequest.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/DeleteObjectRequest.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class DeleteObjectRequest extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/GetBucketRequest.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/GetBucketRequest.java index e74b0196a..1f9d983ab 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/GetBucketRequest.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/GetBucketRequest.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class GetBucketRequest extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/GetObjectRequest.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/GetObjectRequest.java index 94a54877e..c16450fb9 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/GetObjectRequest.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/GetObjectRequest.java @@ -28,7 +28,6 @@ import java.util.Collection; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; import javax.annotation.Nonnull; import com.google.common.base.Preconditions; import com.spectralogic.ds3client.models.ChecksumType; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/HeadObjectRequest.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/HeadObjectRequest.java index fa59511e3..6be9f6430 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/HeadObjectRequest.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/HeadObjectRequest.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class HeadObjectRequest extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/ListMultiPartUploadPartsRequest.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/ListMultiPartUploadPartsRequest.java index f1524657a..eb2bb1795 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/ListMultiPartUploadPartsRequest.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/ListMultiPartUploadPartsRequest.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; import java.lang.Integer; public class ListMultiPartUploadPartsRequest extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/ListMultiPartUploadsRequest.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/ListMultiPartUploadsRequest.java index d58022e5f..9812311e0 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/ListMultiPartUploadsRequest.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/ListMultiPartUploadsRequest.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class ListMultiPartUploadsRequest extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/PutMultiPartUploadPartRequest.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/PutMultiPartUploadPartRequest.java index 0eb7c0c7f..9dfae1fd7 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/PutMultiPartUploadPartRequest.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/PutMultiPartUploadPartRequest.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; import javax.annotation.Nonnull; import com.google.common.base.Preconditions; import com.spectralogic.ds3client.utils.SeekableByteChannelInputStream; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/PutObjectRequest.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/PutObjectRequest.java index 12f3b9392..0d5c77107 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/PutObjectRequest.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/PutObjectRequest.java @@ -25,7 +25,6 @@ import org.slf4j.LoggerFactory; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; import javax.annotation.Nonnull; import com.google.common.base.Preconditions; import com.spectralogic.ds3client.models.ChecksumType; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/interfaces/AbstractIdsPayloadRequest.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/interfaces/AbstractIdsPayloadRequest.java index 83ad60f7d..d3e53cb36 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/interfaces/AbstractIdsPayloadRequest.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/interfaces/AbstractIdsPayloadRequest.java @@ -21,11 +21,12 @@ import java.io.ByteArrayInputStream; import java.io.InputStream; import java.nio.charset.Charset; +import java.nio.charset.StandardCharsets; import java.util.List; /** * Abstract class that handles request payload of ids, in format: - * id1id2... + * {@code id1id2...} */ public abstract class AbstractIdsPayloadRequest extends AbstractRequest { @@ -41,7 +42,7 @@ public AbstractIdsPayloadRequest(final List ids) { public InputStream getStream() { final Ids requestPayload = new Ids(ids); final String xmlOutput = XmlOutput.toXml(requestPayload); - final byte[] stringBytes = xmlOutput.getBytes(Charset.forName("UTF-8")); + final byte[] stringBytes = xmlOutput.getBytes(StandardCharsets.UTF_8); this.size = stringBytes.length; return new ByteArrayInputStream(stringBytes); diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/interfaces/BulkRequest.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/interfaces/BulkRequest.java index e1d6ba8e1..6dd3a50db 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/interfaces/BulkRequest.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/interfaces/BulkRequest.java @@ -18,14 +18,13 @@ import com.spectralogic.ds3client.BulkCommand; import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.models.Priority; -import com.spectralogic.ds3client.models.JobChunkClientProcessingOrderGuarantee; -import com.spectralogic.ds3client.models.WriteOptimization; import com.spectralogic.ds3client.models.bulk.*; import com.spectralogic.ds3client.serializer.XmlOutput; import java.io.ByteArrayInputStream; import java.io.InputStream; import java.nio.charset.Charset; +import java.nio.charset.StandardCharsets; public abstract class BulkRequest extends AbstractRequest { @@ -58,7 +57,7 @@ private InputStream generateStream() { xmlOutputBuilder.append(XmlOutput.toXml(objects, false)); } - final byte[] stringBytes = xmlOutputBuilder.toString().getBytes(Charset.forName("UTF-8")); + final byte[] stringBytes = xmlOutputBuilder.toString().getBytes(StandardCharsets.UTF_8); this.size = stringBytes.length; return new ByteArrayInputStream(stringBytes); } diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/parsers/DeleteJobCreationFailureSpectraS3ResponseParser.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/parsers/DeleteJobCreationFailureSpectraS3ResponseParser.java new file mode 100644 index 000000000..f4a2eb417 --- /dev/null +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/parsers/DeleteJobCreationFailureSpectraS3ResponseParser.java @@ -0,0 +1,44 @@ +/* + * ****************************************************************************** + * Copyright 2014-2019 Spectra Logic Corporation. All Rights Reserved. + * Licensed under the Apache License, Version 2.0 (the "License"). You may not use + * this file except in compliance with the License. A copy of the License is located at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * or in the "license" file accompanying this file. + * This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR + * CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + * **************************************************************************** + */ + +// This code is auto-generated, do not modify +package com.spectralogic.ds3client.commands.parsers; + +import com.spectralogic.ds3client.commands.parsers.interfaces.AbstractResponseParser; +import com.spectralogic.ds3client.commands.parsers.utils.ResponseParserUtils; +import com.spectralogic.ds3client.commands.spectrads3.DeleteJobCreationFailureSpectraS3Response; +import com.spectralogic.ds3client.networking.WebResponse; +import java.io.IOException; + +public class DeleteJobCreationFailureSpectraS3ResponseParser extends AbstractResponseParser { + private final int[] expectedStatusCodes = new int[]{204}; + + @Override + public DeleteJobCreationFailureSpectraS3Response parseXmlResponse(final WebResponse response) throws IOException { + final int statusCode = response.getStatusCode(); + if (ResponseParserUtils.validateStatusCode(statusCode, expectedStatusCodes)) { + switch (statusCode) { + case 204: + //There is no payload, return an empty response handler + return new DeleteJobCreationFailureSpectraS3Response(this.getChecksum(), this.getChecksumType()); + + default: + assert false: "validateStatusCode should have made it impossible to reach this line"; + } + } + + throw ResponseParserUtils.createFailedRequest(response, expectedStatusCodes); + } +} \ No newline at end of file diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/parsers/GetJobCreationFailuresSpectraS3ResponseParser.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/parsers/GetJobCreationFailuresSpectraS3ResponseParser.java new file mode 100644 index 000000000..20121583d --- /dev/null +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/parsers/GetJobCreationFailuresSpectraS3ResponseParser.java @@ -0,0 +1,51 @@ +/* + * ****************************************************************************** + * Copyright 2014-2019 Spectra Logic Corporation. All Rights Reserved. + * Licensed under the Apache License, Version 2.0 (the "License"). You may not use + * this file except in compliance with the License. A copy of the License is located at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * or in the "license" file accompanying this file. + * This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR + * CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + * **************************************************************************** + */ + +// This code is auto-generated, do not modify +package com.spectralogic.ds3client.commands.parsers; + +import com.spectralogic.ds3client.commands.parsers.interfaces.AbstractResponseParser; +import com.spectralogic.ds3client.commands.parsers.utils.ResponseParserUtils; +import com.spectralogic.ds3client.commands.spectrads3.GetJobCreationFailuresSpectraS3Response; +import com.spectralogic.ds3client.models.JobCreationFailedList; +import com.spectralogic.ds3client.networking.WebResponse; +import com.spectralogic.ds3client.serializer.XmlOutput; +import java.io.IOException; +import java.io.InputStream; + +public class GetJobCreationFailuresSpectraS3ResponseParser extends AbstractResponseParser { + private final int[] expectedStatusCodes = new int[]{200}; + + @Override + public GetJobCreationFailuresSpectraS3Response parseXmlResponse(final WebResponse response) throws IOException { + final int statusCode = response.getStatusCode(); + final Integer pagingTruncated = parseIntHeader("page-truncated"); + final Integer pagingTotalResultCount = parseIntHeader("total-result-count"); + if (ResponseParserUtils.validateStatusCode(statusCode, expectedStatusCodes)) { + switch (statusCode) { + case 200: + try (final InputStream inputStream = response.getResponseStream()) { + final JobCreationFailedList result = XmlOutput.fromXml(inputStream, JobCreationFailedList.class); + return new GetJobCreationFailuresSpectraS3Response(result, pagingTotalResultCount, pagingTruncated, this.getChecksum(), this.getChecksumType()); + } + + default: + assert false: "validateStatusCode should have made it impossible to reach this line"; + } + } + + throw ResponseParserUtils.createFailedRequest(response, expectedStatusCodes); + } +} \ No newline at end of file diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/AllocateJobChunkSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/AllocateJobChunkSpectraS3Request.java index 2126a7fff..2000d1ace 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/AllocateJobChunkSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/AllocateJobChunkSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class AllocateJobChunkSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CancelActiveJobSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CancelActiveJobSpectraS3Request.java index 2b1cf5734..24210579c 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CancelActiveJobSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CancelActiveJobSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class CancelActiveJobSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CancelAllActiveJobsSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CancelAllActiveJobsSpectraS3Request.java index 40088fe84..db4ade8f1 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CancelAllActiveJobsSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CancelAllActiveJobsSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.JobRequestType; public class CancelAllActiveJobsSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CancelAllJobsSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CancelAllJobsSpectraS3Request.java index 4cc68c57d..2961b91b1 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CancelAllJobsSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CancelAllJobsSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.JobRequestType; public class CancelAllJobsSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CancelEjectTapeSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CancelEjectTapeSpectraS3Request.java index c195bccf9..129d2acda 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CancelEjectTapeSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CancelEjectTapeSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class CancelEjectTapeSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CancelFormatTapeSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CancelFormatTapeSpectraS3Request.java index 0101f21ed..5fb92376e 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CancelFormatTapeSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CancelFormatTapeSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class CancelFormatTapeSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CancelImportPoolSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CancelImportPoolSpectraS3Request.java index 3f23e7c94..410eb85d5 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CancelImportPoolSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CancelImportPoolSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class CancelImportPoolSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CancelImportTapeSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CancelImportTapeSpectraS3Request.java index b66b73a04..a1ff599b7 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CancelImportTapeSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CancelImportTapeSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class CancelImportTapeSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CancelJobSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CancelJobSpectraS3Request.java index 536e22cb2..116e42e61 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CancelJobSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CancelJobSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class CancelJobSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CancelOnlineTapeSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CancelOnlineTapeSpectraS3Request.java index b8e1257c5..dba5d96e3 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CancelOnlineTapeSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CancelOnlineTapeSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class CancelOnlineTapeSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CancelTestTapeDriveSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CancelTestTapeDriveSpectraS3Request.java index 8b1667d8f..09c2f67fb 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CancelTestTapeDriveSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CancelTestTapeDriveSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class CancelTestTapeDriveSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CancelVerifyPoolSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CancelVerifyPoolSpectraS3Request.java index c607ec6a6..fe5d2c0a9 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CancelVerifyPoolSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CancelVerifyPoolSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class CancelVerifyPoolSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CancelVerifyTapeSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CancelVerifyTapeSpectraS3Request.java index aee7c4ad2..fbd374fb3 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CancelVerifyTapeSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CancelVerifyTapeSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class CancelVerifyTapeSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CleanTapeDriveSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CleanTapeDriveSpectraS3Request.java index 66ba86278..db4c48837 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CleanTapeDriveSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CleanTapeDriveSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class CleanTapeDriveSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CloseAggregatingJobSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CloseAggregatingJobSpectraS3Request.java index d54aabb8a..0910a8f98 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CloseAggregatingJobSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CloseAggregatingJobSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class CloseAggregatingJobSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CompactPoolSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CompactPoolSpectraS3Request.java index c5b4e5676..d4bfb312f 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CompactPoolSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/CompactPoolSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import com.spectralogic.ds3client.models.Priority; -import com.google.common.net.UrlEscapers; public class CompactPoolSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ConvertStorageDomainToDs3TargetSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ConvertStorageDomainToDs3TargetSpectraS3Request.java index ce3b351f9..5e88ba05a 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ConvertStorageDomainToDs3TargetSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ConvertStorageDomainToDs3TargetSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class ConvertStorageDomainToDs3TargetSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeallocatePoolSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeallocatePoolSpectraS3Request.java index 4c97ae1fc..cf7884a4f 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeallocatePoolSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeallocatePoolSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class DeallocatePoolSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DelegateCreateUserSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DelegateCreateUserSpectraS3Request.java index c80141d1f..310af04df 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DelegateCreateUserSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DelegateCreateUserSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; import java.util.UUID; public class DelegateCreateUserSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DelegateDeleteUserSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DelegateDeleteUserSpectraS3Request.java index 65d9013e7..da05d207c 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DelegateDeleteUserSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DelegateDeleteUserSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class DelegateDeleteUserSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteAzureDataReplicationRuleSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteAzureDataReplicationRuleSpectraS3Request.java index 328440a55..ce2684adb 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteAzureDataReplicationRuleSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteAzureDataReplicationRuleSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class DeleteAzureDataReplicationRuleSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteAzureTargetBucketNameSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteAzureTargetBucketNameSpectraS3Request.java index c17f1fd0e..375160083 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteAzureTargetBucketNameSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteAzureTargetBucketNameSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class DeleteAzureTargetBucketNameSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteAzureTargetFailureNotificationRegistrationSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteAzureTargetFailureNotificationRegistrationSpectraS3Request.java index 655390ba4..36530da75 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteAzureTargetFailureNotificationRegistrationSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteAzureTargetFailureNotificationRegistrationSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class DeleteAzureTargetFailureNotificationRegistrationSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteAzureTargetFailureSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteAzureTargetFailureSpectraS3Request.java index 3fc4e814d..ba08d6ad7 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteAzureTargetFailureSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteAzureTargetFailureSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class DeleteAzureTargetFailureSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteAzureTargetReadPreferenceSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteAzureTargetReadPreferenceSpectraS3Request.java index f97990111..d14419ef0 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteAzureTargetReadPreferenceSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteAzureTargetReadPreferenceSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class DeleteAzureTargetReadPreferenceSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteAzureTargetSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteAzureTargetSpectraS3Request.java index 288fcec93..1863d5934 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteAzureTargetSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteAzureTargetSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class DeleteAzureTargetSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteBucketAclSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteBucketAclSpectraS3Request.java index b2bdebbd0..ed90a498a 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteBucketAclSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteBucketAclSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class DeleteBucketAclSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteBucketChangesNotificationRegistrationSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteBucketChangesNotificationRegistrationSpectraS3Request.java index a47b11661..6d3a044b1 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteBucketChangesNotificationRegistrationSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteBucketChangesNotificationRegistrationSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class DeleteBucketChangesNotificationRegistrationSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteBucketSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteBucketSpectraS3Request.java index 08a6c7b12..d06785d15 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteBucketSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteBucketSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class DeleteBucketSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteDataPersistenceRuleSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteDataPersistenceRuleSpectraS3Request.java index f7617ab76..dc2ec6baa 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteDataPersistenceRuleSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteDataPersistenceRuleSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class DeleteDataPersistenceRuleSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteDataPolicyAclSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteDataPolicyAclSpectraS3Request.java index f85e82e31..b636b2456 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteDataPolicyAclSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteDataPolicyAclSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class DeleteDataPolicyAclSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteDataPolicySpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteDataPolicySpectraS3Request.java index 05da6a00f..dee1d32fd 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteDataPolicySpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteDataPolicySpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class DeleteDataPolicySpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteDs3DataReplicationRuleSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteDs3DataReplicationRuleSpectraS3Request.java index 4a8df6890..90a39e61b 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteDs3DataReplicationRuleSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteDs3DataReplicationRuleSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class DeleteDs3DataReplicationRuleSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteDs3TargetFailureSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteDs3TargetFailureSpectraS3Request.java index 8f838a089..d73750f37 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteDs3TargetFailureSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteDs3TargetFailureSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class DeleteDs3TargetFailureSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteDs3TargetReadPreferenceSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteDs3TargetReadPreferenceSpectraS3Request.java index 6fa14d8d1..41276f333 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteDs3TargetReadPreferenceSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteDs3TargetReadPreferenceSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class DeleteDs3TargetReadPreferenceSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteDs3TargetSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteDs3TargetSpectraS3Request.java index 34c254411..20cebb189 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteDs3TargetSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteDs3TargetSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class DeleteDs3TargetSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteFolderRecursivelySpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteFolderRecursivelySpectraS3Request.java index 3c97d2a41..f9231cf81 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteFolderRecursivelySpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteFolderRecursivelySpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class DeleteFolderRecursivelySpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteGroupMemberSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteGroupMemberSpectraS3Request.java index 55463868c..78006e4e8 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteGroupMemberSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteGroupMemberSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class DeleteGroupMemberSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteGroupSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteGroupSpectraS3Request.java index 0f2590e69..82a9183d6 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteGroupSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteGroupSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class DeleteGroupSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteJobCreationFailureSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteJobCreationFailureSpectraS3Request.java new file mode 100644 index 000000000..5be13090d --- /dev/null +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteJobCreationFailureSpectraS3Request.java @@ -0,0 +1,51 @@ +/* + * ****************************************************************************** + * Copyright 2014-2019 Spectra Logic Corporation. All Rights Reserved. + * Licensed under the Apache License, Version 2.0 (the "License"). You may not use + * this file except in compliance with the License. A copy of the License is located at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * or in the "license" file accompanying this file. + * This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR + * CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + * **************************************************************************** + */ + +// This code is auto-generated, do not modify +package com.spectralogic.ds3client.commands.spectrads3; + +import com.spectralogic.ds3client.networking.HttpVerb; +import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; + +public class DeleteJobCreationFailureSpectraS3Request extends AbstractRequest { + + // Variables + + private final String jobCreationFailed; + + // Constructor + + + public DeleteJobCreationFailureSpectraS3Request(final String jobCreationFailed) { + this.jobCreationFailed = jobCreationFailed; + + } + + + @Override + public HttpVerb getVerb() { + return HttpVerb.DELETE; + } + + @Override + public String getPath() { + return "/_rest_/job_creation_failed/" + jobCreationFailed; + } + + public String getJobCreationFailed() { + return this.jobCreationFailed; + } + +} \ No newline at end of file diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteJobCreationFailureSpectraS3Response.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteJobCreationFailureSpectraS3Response.java new file mode 100644 index 000000000..e58c40521 --- /dev/null +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteJobCreationFailureSpectraS3Response.java @@ -0,0 +1,28 @@ +/* + * ****************************************************************************** + * Copyright 2014-2019 Spectra Logic Corporation. All Rights Reserved. + * Licensed under the Apache License, Version 2.0 (the "License"). You may not use + * this file except in compliance with the License. A copy of the License is located at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * or in the "license" file accompanying this file. + * This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR + * CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + * **************************************************************************** + */ + +// This code is auto-generated, do not modify +package com.spectralogic.ds3client.commands.spectrads3; + +import com.spectralogic.ds3client.models.ChecksumType; +import com.spectralogic.ds3client.commands.interfaces.AbstractResponse; + +public class DeleteJobCreationFailureSpectraS3Response extends AbstractResponse { + + public DeleteJobCreationFailureSpectraS3Response(final String checksum, final ChecksumType.Type checksumType) { + super(checksum, checksumType); + } + +} \ No newline at end of file diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeletePermanentlyLostPoolSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeletePermanentlyLostPoolSpectraS3Request.java index 5ecdaf3a3..5c1c19503 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeletePermanentlyLostPoolSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeletePermanentlyLostPoolSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class DeletePermanentlyLostPoolSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeletePermanentlyLostTapeSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeletePermanentlyLostTapeSpectraS3Request.java index b4f0bb4f5..f02c55cb0 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeletePermanentlyLostTapeSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeletePermanentlyLostTapeSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class DeletePermanentlyLostTapeSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeletePoolFailureSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeletePoolFailureSpectraS3Request.java index 7a088a370..871119c7b 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeletePoolFailureSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeletePoolFailureSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class DeletePoolFailureSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeletePoolPartitionSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeletePoolPartitionSpectraS3Request.java index e46b58a98..290221361 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeletePoolPartitionSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeletePoolPartitionSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class DeletePoolPartitionSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteS3DataReplicationRuleSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteS3DataReplicationRuleSpectraS3Request.java index b87375a2c..76bec63d6 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteS3DataReplicationRuleSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteS3DataReplicationRuleSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class DeleteS3DataReplicationRuleSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteS3TargetBucketNameSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteS3TargetBucketNameSpectraS3Request.java index c6744a828..98f06a3ad 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteS3TargetBucketNameSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteS3TargetBucketNameSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class DeleteS3TargetBucketNameSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteS3TargetFailureNotificationRegistrationSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteS3TargetFailureNotificationRegistrationSpectraS3Request.java index 42e1eae10..e7c996a13 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteS3TargetFailureNotificationRegistrationSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteS3TargetFailureNotificationRegistrationSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class DeleteS3TargetFailureNotificationRegistrationSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteS3TargetFailureSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteS3TargetFailureSpectraS3Request.java index 258aad844..7355b95e1 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteS3TargetFailureSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteS3TargetFailureSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class DeleteS3TargetFailureSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteS3TargetReadPreferenceSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteS3TargetReadPreferenceSpectraS3Request.java index d28c07ba2..faf22bcc7 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteS3TargetReadPreferenceSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteS3TargetReadPreferenceSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class DeleteS3TargetReadPreferenceSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteS3TargetSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteS3TargetSpectraS3Request.java index 09913c4d0..9da25e4e7 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteS3TargetSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteS3TargetSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class DeleteS3TargetSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteStorageDomainFailureSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteStorageDomainFailureSpectraS3Request.java index 8491864fb..fe2899edf 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteStorageDomainFailureSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteStorageDomainFailureSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class DeleteStorageDomainFailureSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteStorageDomainMemberSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteStorageDomainMemberSpectraS3Request.java index 20dfe46ff..883ee5bd8 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteStorageDomainMemberSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteStorageDomainMemberSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class DeleteStorageDomainMemberSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteStorageDomainSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteStorageDomainSpectraS3Request.java index 60700b3d6..cd1291cd1 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteStorageDomainSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteStorageDomainSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class DeleteStorageDomainSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteTapeDensityDirectiveSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteTapeDensityDirectiveSpectraS3Request.java index caf0bdd53..c8921a287 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteTapeDensityDirectiveSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteTapeDensityDirectiveSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class DeleteTapeDensityDirectiveSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteTapeDriveSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteTapeDriveSpectraS3Request.java index 22746f1cb..db8a47303 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteTapeDriveSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteTapeDriveSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class DeleteTapeDriveSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteTapeFailureSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteTapeFailureSpectraS3Request.java index ca2c9138e..47369dbe5 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteTapeFailureSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteTapeFailureSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class DeleteTapeFailureSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteTapePartitionFailureSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteTapePartitionFailureSpectraS3Request.java index 3c7ef49f5..68a017d8d 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteTapePartitionFailureSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteTapePartitionFailureSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class DeleteTapePartitionFailureSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteTapePartitionSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteTapePartitionSpectraS3Request.java index 3d9255d02..2140c789f 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteTapePartitionSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/DeleteTapePartitionSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class DeleteTapePartitionSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/EjectAllTapesSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/EjectAllTapesSpectraS3Request.java index 716a0fef1..964b0e7d5 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/EjectAllTapesSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/EjectAllTapesSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class EjectAllTapesSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/EjectStorageDomainBlobsSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/EjectStorageDomainBlobsSpectraS3Request.java index 97509c75a..c920a80b4 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/EjectStorageDomainBlobsSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/EjectStorageDomainBlobsSpectraS3Request.java @@ -26,8 +26,8 @@ import java.io.InputStream; import java.util.List; import java.nio.charset.Charset; +import java.nio.charset.StandardCharsets; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class EjectStorageDomainBlobsSpectraS3Request extends AbstractRequest { @@ -86,7 +86,7 @@ public InputStream getStream() { final String xmlOutput = XmlOutput.toXml(objects, false); - final byte[] stringBytes = xmlOutput.getBytes(Charset.forName("UTF-8")); + final byte[] stringBytes = xmlOutput.getBytes(StandardCharsets.UTF_8); this.size = stringBytes.length; return new ByteArrayInputStream(stringBytes); } diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/EjectStorageDomainSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/EjectStorageDomainSpectraS3Request.java index 12ee65a59..dbd6cb693 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/EjectStorageDomainSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/EjectStorageDomainSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class EjectStorageDomainSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/EjectTapeSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/EjectTapeSpectraS3Request.java index 00fdd05a7..e2f4cd967 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/EjectTapeSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/EjectTapeSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; import java.util.UUID; public class EjectTapeSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/FormatForeignPoolSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/FormatForeignPoolSpectraS3Request.java index 946e86101..1ba7fc623 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/FormatForeignPoolSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/FormatForeignPoolSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class FormatForeignPoolSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/FormatTapeSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/FormatTapeSpectraS3Request.java index 5f8f98624..cb00f2104 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/FormatTapeSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/FormatTapeSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class FormatTapeSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetActiveJobSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetActiveJobSpectraS3Request.java index 25a62f729..4619deff7 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetActiveJobSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetActiveJobSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class GetActiveJobSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetActiveJobsSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetActiveJobsSpectraS3Request.java index 78cd49a2e..1c2447055 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetActiveJobsSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetActiveJobsSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.JobChunkClientProcessingOrderGuarantee; import java.util.UUID; import com.spectralogic.ds3client.models.Priority; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetAzureDataReplicationRuleSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetAzureDataReplicationRuleSpectraS3Request.java index 239660b91..e16cf09a8 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetAzureDataReplicationRuleSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetAzureDataReplicationRuleSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class GetAzureDataReplicationRuleSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetAzureDataReplicationRulesSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetAzureDataReplicationRulesSpectraS3Request.java index ad38b5021..bacb7d122 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetAzureDataReplicationRulesSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetAzureDataReplicationRulesSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.DataPlacementRuleState; import com.spectralogic.ds3client.models.DataReplicationRuleType; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetAzureTargetBucketNamesSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetAzureTargetBucketNamesSpectraS3Request.java index 916481961..887c0298d 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetAzureTargetBucketNamesSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetAzureTargetBucketNamesSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; -import com.google.common.net.UrlEscapers; import java.util.UUID; public class GetAzureTargetBucketNamesSpectraS3Request extends AbstractPaginationRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetAzureTargetFailureNotificationRegistrationSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetAzureTargetFailureNotificationRegistrationSpectraS3Request.java index ba863fa4a..d635fb38b 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetAzureTargetFailureNotificationRegistrationSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetAzureTargetFailureNotificationRegistrationSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class GetAzureTargetFailureNotificationRegistrationSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetAzureTargetFailureNotificationRegistrationsSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetAzureTargetFailureNotificationRegistrationsSpectraS3Request.java index 0a7fa3018..9137a570f 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetAzureTargetFailureNotificationRegistrationsSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetAzureTargetFailureNotificationRegistrationsSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class GetAzureTargetFailureNotificationRegistrationsSpectraS3Request extends AbstractPaginationRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetAzureTargetFailuresSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetAzureTargetFailuresSpectraS3Request.java index fff6fb4cc..5a40c13af 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetAzureTargetFailuresSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetAzureTargetFailuresSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; -import com.google.common.net.UrlEscapers; import java.util.UUID; import com.spectralogic.ds3client.models.TargetFailureType; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetAzureTargetReadPreferenceSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetAzureTargetReadPreferenceSpectraS3Request.java index 704d0242d..1da99e4d4 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetAzureTargetReadPreferenceSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetAzureTargetReadPreferenceSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class GetAzureTargetReadPreferenceSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetAzureTargetReadPreferencesSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetAzureTargetReadPreferencesSpectraS3Request.java index 1b6fa66bc..9066c22f7 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetAzureTargetReadPreferencesSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetAzureTargetReadPreferencesSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; -import com.google.common.net.UrlEscapers; import java.util.UUID; import com.spectralogic.ds3client.models.TargetReadPreferenceType; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetAzureTargetSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetAzureTargetSpectraS3Request.java index 8f214fe8b..a30d67f10 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetAzureTargetSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetAzureTargetSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class GetAzureTargetSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetAzureTargetsSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetAzureTargetsSpectraS3Request.java index 7f87498c2..9a2abeab5 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetAzureTargetsSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetAzureTargetsSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.TargetReadPreferenceType; import java.util.UUID; import com.spectralogic.ds3client.models.Quiesced; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBlobPersistenceSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBlobPersistenceSpectraS3Request.java index 04ebabdf0..dfd9f5b8b 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBlobPersistenceSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBlobPersistenceSpectraS3Request.java @@ -21,6 +21,7 @@ import java.io.InputStream; import java.nio.charset.Charset; import com.spectralogic.ds3client.utils.Guard; +import java.nio.charset.StandardCharsets; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; public class GetBlobPersistenceSpectraS3Request extends AbstractRequest { @@ -53,7 +54,7 @@ public InputStream getStream() { if (Guard.isStringNullOrEmpty(requestPayload)) { return null; } - final byte[] stringBytes = requestPayload.getBytes(Charset.forName("UTF-8")); + final byte[] stringBytes = requestPayload.getBytes(StandardCharsets.UTF_8); this.size = stringBytes.length; return new ByteArrayInputStream(stringBytes); } diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBlobsOnAzureTargetSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBlobsOnAzureTargetSpectraS3Request.java index 79cefc548..fd4132017 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBlobsOnAzureTargetSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBlobsOnAzureTargetSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class GetBlobsOnAzureTargetSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBlobsOnDs3TargetSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBlobsOnDs3TargetSpectraS3Request.java index c27f064ab..df60e09b1 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBlobsOnDs3TargetSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBlobsOnDs3TargetSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class GetBlobsOnDs3TargetSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBlobsOnPoolSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBlobsOnPoolSpectraS3Request.java index 2957b044a..16da1e6eb 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBlobsOnPoolSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBlobsOnPoolSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class GetBlobsOnPoolSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBlobsOnS3TargetSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBlobsOnS3TargetSpectraS3Request.java index 8598daf08..4b3af8acc 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBlobsOnS3TargetSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBlobsOnS3TargetSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class GetBlobsOnS3TargetSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBlobsOnTapeSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBlobsOnTapeSpectraS3Request.java index 6aa6676cb..39a5a017c 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBlobsOnTapeSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBlobsOnTapeSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class GetBlobsOnTapeSpectraS3Request extends AbstractPaginationRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBucketAclSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBucketAclSpectraS3Request.java index 54262688d..32bf65306 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBucketAclSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBucketAclSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class GetBucketAclSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBucketAclsSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBucketAclsSpectraS3Request.java index 7c7ed5abb..29e5bb2b7 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBucketAclsSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBucketAclsSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; -import com.google.common.net.UrlEscapers; import java.util.UUID; import com.spectralogic.ds3client.models.BucketAclPermission; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBucketCapacitySummarySpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBucketCapacitySummarySpectraS3Request.java index a77e981b9..5dc34371c 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBucketCapacitySummarySpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBucketCapacitySummarySpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; import java.util.UUID; import com.spectralogic.ds3client.models.PoolHealth; import com.spectralogic.ds3client.models.PoolState; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBucketChangesNotificationRegistrationSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBucketChangesNotificationRegistrationSpectraS3Request.java index 0d30e2065..8b13f9fca 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBucketChangesNotificationRegistrationSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBucketChangesNotificationRegistrationSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class GetBucketChangesNotificationRegistrationSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBucketChangesNotificationRegistrationsSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBucketChangesNotificationRegistrationsSpectraS3Request.java index 24b34325b..c350babce 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBucketChangesNotificationRegistrationsSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBucketChangesNotificationRegistrationsSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class GetBucketChangesNotificationRegistrationsSpectraS3Request extends AbstractPaginationRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBucketHistorySpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBucketHistorySpectraS3Request.java index f5ac89314..1370776e0 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBucketHistorySpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBucketHistorySpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; -import com.google.common.net.UrlEscapers; import java.util.UUID; public class GetBucketHistorySpectraS3Request extends AbstractPaginationRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBucketSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBucketSpectraS3Request.java index 8f891e304..e0c353a49 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBucketSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBucketSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class GetBucketSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBucketsSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBucketsSpectraS3Request.java index d7f1d33de..f399669cb 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBucketsSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBucketsSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class GetBucketsSpectraS3Request extends AbstractPaginationRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBulkJobSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBulkJobSpectraS3Request.java index f611cbe5c..ce22bd9fe 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBulkJobSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBulkJobSpectraS3Request.java @@ -20,7 +20,6 @@ import com.spectralogic.ds3client.models.bulk.Ds3Object; import com.spectralogic.ds3client.commands.interfaces.BulkRequest; import com.spectralogic.ds3client.models.JobChunkClientProcessingOrderGuarantee; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.Priority; public class GetBulkJobSpectraS3Request extends BulkRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetCacheFilesystemSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetCacheFilesystemSpectraS3Request.java index 6d9c0d2f0..dbe7929ce 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetCacheFilesystemSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetCacheFilesystemSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class GetCacheFilesystemSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetCacheFilesystemsSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetCacheFilesystemsSpectraS3Request.java index 77352cb7a..1ee7d5dac 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetCacheFilesystemsSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetCacheFilesystemsSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class GetCacheFilesystemsSpectraS3Request extends AbstractPaginationRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetCanceledJobSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetCanceledJobSpectraS3Request.java index 90f7de8be..6bc21f616 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetCanceledJobSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetCanceledJobSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class GetCanceledJobSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetCanceledJobsSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetCanceledJobsSpectraS3Request.java index d898fb54f..201cd6a51 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetCanceledJobsSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetCanceledJobsSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.JobChunkClientProcessingOrderGuarantee; import java.util.UUID; import com.spectralogic.ds3client.models.Priority; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetCompletedJobSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetCompletedJobSpectraS3Request.java index c59202855..120d9e5f5 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetCompletedJobSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetCompletedJobSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class GetCompletedJobSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetCompletedJobsSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetCompletedJobsSpectraS3Request.java index 0afbe50e8..76d88746c 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetCompletedJobsSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetCompletedJobsSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.JobChunkClientProcessingOrderGuarantee; import java.util.UUID; import com.spectralogic.ds3client.models.Priority; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDataPersistenceRuleSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDataPersistenceRuleSpectraS3Request.java index c2aca66af..05a28920a 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDataPersistenceRuleSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDataPersistenceRuleSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class GetDataPersistenceRuleSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDataPersistenceRulesSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDataPersistenceRulesSpectraS3Request.java index 3f82095f1..9e426f92a 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDataPersistenceRulesSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDataPersistenceRulesSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.DataIsolationLevel; import com.spectralogic.ds3client.models.DataPlacementRuleState; import com.spectralogic.ds3client.models.DataPersistenceRuleType; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDataPoliciesSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDataPoliciesSpectraS3Request.java index d6255a196..a5baf870a 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDataPoliciesSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDataPoliciesSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; import com.spectralogic.ds3client.models.ChecksumType; -import com.google.common.net.UrlEscapers; import java.util.UUID; public class GetDataPoliciesSpectraS3Request extends AbstractPaginationRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDataPolicyAclSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDataPolicyAclSpectraS3Request.java index 9fc9524cf..58183b834 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDataPolicyAclSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDataPolicyAclSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class GetDataPolicyAclSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDataPolicyAclsSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDataPolicyAclsSpectraS3Request.java index 79ffa539a..7eec654a6 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDataPolicyAclsSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDataPolicyAclsSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class GetDataPolicyAclsSpectraS3Request extends AbstractPaginationRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDataPolicySpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDataPolicySpectraS3Request.java index 082207a6c..899eee22b 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDataPolicySpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDataPolicySpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class GetDataPolicySpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDegradedAzureDataReplicationRulesSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDegradedAzureDataReplicationRulesSpectraS3Request.java index 4fcb2eae9..d92937bf5 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDegradedAzureDataReplicationRulesSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDegradedAzureDataReplicationRulesSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.DataPlacementRuleState; import com.spectralogic.ds3client.models.DataReplicationRuleType; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDegradedBlobsSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDegradedBlobsSpectraS3Request.java index 3715c7984..d91a730a9 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDegradedBlobsSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDegradedBlobsSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class GetDegradedBlobsSpectraS3Request extends AbstractPaginationRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDegradedBucketsSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDegradedBucketsSpectraS3Request.java index fdeae6cd9..02343ebfe 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDegradedBucketsSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDegradedBucketsSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class GetDegradedBucketsSpectraS3Request extends AbstractPaginationRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDegradedDataPersistenceRulesSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDegradedDataPersistenceRulesSpectraS3Request.java index 479483f81..4f91f377f 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDegradedDataPersistenceRulesSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDegradedDataPersistenceRulesSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.DataIsolationLevel; import com.spectralogic.ds3client.models.DataPlacementRuleState; import com.spectralogic.ds3client.models.DataPersistenceRuleType; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDegradedDs3DataReplicationRulesSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDegradedDs3DataReplicationRulesSpectraS3Request.java index 0ba61982f..c375bef48 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDegradedDs3DataReplicationRulesSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDegradedDs3DataReplicationRulesSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.DataPlacementRuleState; import com.spectralogic.ds3client.models.DataReplicationRuleType; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDegradedS3DataReplicationRulesSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDegradedS3DataReplicationRulesSpectraS3Request.java index 96854c94e..fb8267748 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDegradedS3DataReplicationRulesSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDegradedS3DataReplicationRulesSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.DataPlacementRuleState; import com.spectralogic.ds3client.models.DataReplicationRuleType; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDs3DataReplicationRuleSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDs3DataReplicationRuleSpectraS3Request.java index 8a7663e51..555162f9d 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDs3DataReplicationRuleSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDs3DataReplicationRuleSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class GetDs3DataReplicationRuleSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDs3DataReplicationRulesSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDs3DataReplicationRulesSpectraS3Request.java index 20e416868..b22d890aa 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDs3DataReplicationRulesSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDs3DataReplicationRulesSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.DataPlacementRuleState; import com.spectralogic.ds3client.models.DataReplicationRuleType; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDs3TargetDataPoliciesSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDs3TargetDataPoliciesSpectraS3Request.java index 33acb3feb..4d52be36b 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDs3TargetDataPoliciesSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDs3TargetDataPoliciesSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class GetDs3TargetDataPoliciesSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDs3TargetFailuresSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDs3TargetFailuresSpectraS3Request.java index 21c63ead2..e7fed6772 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDs3TargetFailuresSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDs3TargetFailuresSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; -import com.google.common.net.UrlEscapers; import java.util.UUID; import com.spectralogic.ds3client.models.TargetFailureType; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDs3TargetReadPreferenceSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDs3TargetReadPreferenceSpectraS3Request.java index 08686b9a9..dd5139f32 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDs3TargetReadPreferenceSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDs3TargetReadPreferenceSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class GetDs3TargetReadPreferenceSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDs3TargetReadPreferencesSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDs3TargetReadPreferencesSpectraS3Request.java index 3077e1546..4f053b5cf 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDs3TargetReadPreferencesSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDs3TargetReadPreferencesSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; -import com.google.common.net.UrlEscapers; import java.util.UUID; import com.spectralogic.ds3client.models.TargetReadPreferenceType; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDs3TargetSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDs3TargetSpectraS3Request.java index 123853810..71b000ee8 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDs3TargetSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDs3TargetSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class GetDs3TargetSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDs3TargetsSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDs3TargetsSpectraS3Request.java index 5a77a9e02..4c3b28ec5 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDs3TargetsSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetDs3TargetsSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; -import com.google.common.net.UrlEscapers; import java.lang.Integer; import com.spectralogic.ds3client.models.TargetReadPreferenceType; import java.util.UUID; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetFeatureKeysSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetFeatureKeysSpectraS3Request.java index fa08296fd..290cda87d 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetFeatureKeysSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetFeatureKeysSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; -import com.google.common.net.UrlEscapers; import java.util.Date; import com.spectralogic.ds3client.models.FeatureKeyType; import java.util.UUID; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetGroupMemberSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetGroupMemberSpectraS3Request.java index b55157c3a..3ad576053 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetGroupMemberSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetGroupMemberSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class GetGroupMemberSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetGroupMembersSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetGroupMembersSpectraS3Request.java index 6a60d5c38..869fa6fae 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetGroupMembersSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetGroupMembersSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class GetGroupMembersSpectraS3Request extends AbstractPaginationRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetGroupSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetGroupSpectraS3Request.java index 7baa59392..f261a88b6 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetGroupSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetGroupSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class GetGroupSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetGroupsSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetGroupsSpectraS3Request.java index b4e9dc42a..2bc3ef9df 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetGroupsSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetGroupsSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; -import com.google.common.net.UrlEscapers; import java.util.UUID; public class GetGroupsSpectraS3Request extends AbstractPaginationRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetJobChunkDaoSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetJobChunkDaoSpectraS3Request.java index 8f638d3fc..ce94c9b81 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetJobChunkDaoSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetJobChunkDaoSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class GetJobChunkDaoSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetJobChunkSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetJobChunkSpectraS3Request.java index 184ef96f7..a9cf9573b 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetJobChunkSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetJobChunkSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class GetJobChunkSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetJobChunksReadyForClientProcessingSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetJobChunksReadyForClientProcessingSpectraS3Request.java index 78e525906..79cc85695 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetJobChunksReadyForClientProcessingSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetJobChunksReadyForClientProcessingSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class GetJobChunksReadyForClientProcessingSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetJobCreationFailuresSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetJobCreationFailuresSpectraS3Request.java new file mode 100644 index 000000000..91576e01e --- /dev/null +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetJobCreationFailuresSpectraS3Request.java @@ -0,0 +1,154 @@ +/* + * ****************************************************************************** + * Copyright 2014-2019 Spectra Logic Corporation. All Rights Reserved. + * Licensed under the Apache License, Version 2.0 (the "License"). You may not use + * this file except in compliance with the License. A copy of the License is located at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * or in the "license" file accompanying this file. + * This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR + * CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + * **************************************************************************** + */ + +// This code is auto-generated, do not modify +package com.spectralogic.ds3client.commands.spectrads3; + +import com.spectralogic.ds3client.networking.HttpVerb; +import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; +import java.util.Date; +import java.util.UUID; + +public class GetJobCreationFailuresSpectraS3Request extends AbstractPaginationRequest { + + // Variables + + private Date date; + + private String errorMessage; + + private boolean lastPage; + + private int pageLength; + + private int pageOffset; + + private String pageStartMarker; + + private String userName; + + // Constructor + + + public GetJobCreationFailuresSpectraS3Request() { + + } + + public GetJobCreationFailuresSpectraS3Request withDate(final Date date) { + this.date = date; + this.updateQueryParam("date", date); + return this; + } + + + public GetJobCreationFailuresSpectraS3Request withErrorMessage(final String errorMessage) { + this.errorMessage = errorMessage; + this.updateQueryParam("error_message", errorMessage); + return this; + } + + + public GetJobCreationFailuresSpectraS3Request withLastPage(final boolean lastPage) { + this.lastPage = lastPage; + if (this.lastPage) { + this.getQueryParams().put("last_page", null); + } else { + this.getQueryParams().remove("last_page"); + } + return this; + } + + + public GetJobCreationFailuresSpectraS3Request withPageLength(final int pageLength) { + this.pageLength = pageLength; + this.updateQueryParam("page_length", pageLength); + return this; + } + + + public GetJobCreationFailuresSpectraS3Request withPageOffset(final int pageOffset) { + this.pageOffset = pageOffset; + this.updateQueryParam("page_offset", pageOffset); + return this; + } + + + public GetJobCreationFailuresSpectraS3Request withPageStartMarker(final UUID pageStartMarker) { + this.pageStartMarker = pageStartMarker.toString(); + this.updateQueryParam("page_start_marker", pageStartMarker); + return this; + } + + + public GetJobCreationFailuresSpectraS3Request withPageStartMarker(final String pageStartMarker) { + this.pageStartMarker = pageStartMarker; + this.updateQueryParam("page_start_marker", pageStartMarker); + return this; + } + + + public GetJobCreationFailuresSpectraS3Request withUserName(final String userName) { + this.userName = userName; + this.updateQueryParam("user_name", userName); + return this; + } + + + + @Override + public HttpVerb getVerb() { + return HttpVerb.GET; + } + + @Override + public String getPath() { + return "/_rest_/job_creation_failed"; + } + + public Date getDate() { + return this.date; + } + + + public String getErrorMessage() { + return this.errorMessage; + } + + + public boolean getLastPage() { + return this.lastPage; + } + + + public int getPageLength() { + return this.pageLength; + } + + + public int getPageOffset() { + return this.pageOffset; + } + + + public String getPageStartMarker() { + return this.pageStartMarker; + } + + + public String getUserName() { + return this.userName; + } + +} \ No newline at end of file diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetJobCreationFailuresSpectraS3Response.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetJobCreationFailuresSpectraS3Response.java new file mode 100644 index 000000000..bcc208873 --- /dev/null +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetJobCreationFailuresSpectraS3Response.java @@ -0,0 +1,36 @@ +/* + * ****************************************************************************** + * Copyright 2014-2019 Spectra Logic Corporation. All Rights Reserved. + * Licensed under the Apache License, Version 2.0 (the "License"). You may not use + * this file except in compliance with the License. A copy of the License is located at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * or in the "license" file accompanying this file. + * This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR + * CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + * **************************************************************************** + */ + +// This code is auto-generated, do not modify +package com.spectralogic.ds3client.commands.spectrads3; + +import com.spectralogic.ds3client.models.JobCreationFailedList; +import com.spectralogic.ds3client.models.ChecksumType; +import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationResponse; + +public class GetJobCreationFailuresSpectraS3Response extends AbstractPaginationResponse { + + private final JobCreationFailedList jobCreationFailedListResult; + + public GetJobCreationFailuresSpectraS3Response(final JobCreationFailedList jobCreationFailedListResult, final Integer pagingTotalResultCount, final Integer pagingTruncated, final String checksum, final ChecksumType.Type checksumType) { + super(pagingTotalResultCount, pagingTruncated, checksum, checksumType); + this.jobCreationFailedListResult = jobCreationFailedListResult; + } + + public JobCreationFailedList getJobCreationFailedListResult() { + return this.jobCreationFailedListResult; + } + +} \ No newline at end of file diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetJobSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetJobSpectraS3Request.java index 304fc251d..4643764d0 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetJobSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetJobSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class GetJobSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetJobToReplicateSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetJobToReplicateSpectraS3Request.java index f50339c70..514273f0b 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetJobToReplicateSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetJobToReplicateSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class GetJobToReplicateSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetJobsSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetJobsSpectraS3Request.java index e47cd6c3e..8c87dabcd 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetJobsSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetJobsSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class GetJobsSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetNodeSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetNodeSpectraS3Request.java index 9c3ab5c86..bcb889c38 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetNodeSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetNodeSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class GetNodeSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetNodesSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetNodesSpectraS3Request.java index 8590465b7..6a5ccf9a7 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetNodesSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetNodesSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class GetNodesSpectraS3Request extends AbstractPaginationRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetObjectDetailsSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetObjectDetailsSpectraS3Request.java index bc3a9c8b9..360a9a6bf 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetObjectDetailsSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetObjectDetailsSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class GetObjectDetailsSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetObjectsDetailsSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetObjectsDetailsSpectraS3Request.java index b12ab685d..40bc34bf8 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetObjectsDetailsSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetObjectsDetailsSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; -import com.google.common.net.UrlEscapers; import java.util.UUID; import com.spectralogic.ds3client.models.S3ObjectType; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetObjectsWithFullDetailsSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetObjectsWithFullDetailsSpectraS3Request.java index 890cb6d50..819e64d0d 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetObjectsWithFullDetailsSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetObjectsWithFullDetailsSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; -import com.google.common.net.UrlEscapers; import java.util.UUID; import com.spectralogic.ds3client.models.S3ObjectType; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetPhysicalPlacementForObjectsSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetPhysicalPlacementForObjectsSpectraS3Request.java index 97b93b5ab..a73503422 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetPhysicalPlacementForObjectsSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetPhysicalPlacementForObjectsSpectraS3Request.java @@ -26,8 +26,8 @@ import java.io.InputStream; import java.util.List; import java.nio.charset.Charset; +import java.nio.charset.StandardCharsets; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class GetPhysicalPlacementForObjectsSpectraS3Request extends AbstractRequest { @@ -69,7 +69,7 @@ public InputStream getStream() { final String xmlOutput = XmlOutput.toXml(objects, false); - final byte[] stringBytes = xmlOutput.getBytes(Charset.forName("UTF-8")); + final byte[] stringBytes = xmlOutput.getBytes(StandardCharsets.UTF_8); this.size = stringBytes.length; return new ByteArrayInputStream(stringBytes); } diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetPhysicalPlacementForObjectsWithFullDetailsSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetPhysicalPlacementForObjectsWithFullDetailsSpectraS3Request.java index 3bfda7a27..5da4736b8 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetPhysicalPlacementForObjectsWithFullDetailsSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetPhysicalPlacementForObjectsWithFullDetailsSpectraS3Request.java @@ -26,8 +26,8 @@ import java.io.InputStream; import java.util.List; import java.nio.charset.Charset; +import java.nio.charset.StandardCharsets; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class GetPhysicalPlacementForObjectsWithFullDetailsSpectraS3Request extends AbstractRequest { @@ -70,7 +70,7 @@ public InputStream getStream() { final String xmlOutput = XmlOutput.toXml(objects, false); - final byte[] stringBytes = xmlOutput.getBytes(Charset.forName("UTF-8")); + final byte[] stringBytes = xmlOutput.getBytes(StandardCharsets.UTF_8); this.size = stringBytes.length; return new ByteArrayInputStream(stringBytes); } diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetPoolFailuresSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetPoolFailuresSpectraS3Request.java index 20e26fd3c..d56f145f5 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetPoolFailuresSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetPoolFailuresSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; -import com.google.common.net.UrlEscapers; import java.util.UUID; import com.spectralogic.ds3client.models.PoolFailureType; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetPoolPartitionSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetPoolPartitionSpectraS3Request.java index 97bae8a80..519eb38c8 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetPoolPartitionSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetPoolPartitionSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class GetPoolPartitionSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetPoolPartitionsSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetPoolPartitionsSpectraS3Request.java index 123cf0d53..44b31ae27 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetPoolPartitionsSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetPoolPartitionsSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; -import com.google.common.net.UrlEscapers; import java.util.UUID; import com.spectralogic.ds3client.models.PoolType; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetPoolSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetPoolSpectraS3Request.java index c76b1dca1..e01c621c0 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetPoolSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetPoolSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class GetPoolSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetPoolsSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetPoolsSpectraS3Request.java index 91b113f39..786d9ac78 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetPoolsSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetPoolsSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.PoolHealth; import java.util.Date; import java.util.UUID; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetS3DataReplicationRuleSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetS3DataReplicationRuleSpectraS3Request.java index f19af6881..7a6153f2a 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetS3DataReplicationRuleSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetS3DataReplicationRuleSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class GetS3DataReplicationRuleSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetS3DataReplicationRulesSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetS3DataReplicationRulesSpectraS3Request.java index 0a377d72a..6047ac042 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetS3DataReplicationRulesSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetS3DataReplicationRulesSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.S3InitialDataPlacementPolicy; import com.spectralogic.ds3client.models.DataPlacementRuleState; import com.spectralogic.ds3client.models.DataReplicationRuleType; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetS3TargetBucketNamesSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetS3TargetBucketNamesSpectraS3Request.java index 3c91fbb13..789df3f67 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetS3TargetBucketNamesSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetS3TargetBucketNamesSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; -import com.google.common.net.UrlEscapers; import java.util.UUID; public class GetS3TargetBucketNamesSpectraS3Request extends AbstractPaginationRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetS3TargetFailureNotificationRegistrationSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetS3TargetFailureNotificationRegistrationSpectraS3Request.java index 880fc9555..89c3f0577 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetS3TargetFailureNotificationRegistrationSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetS3TargetFailureNotificationRegistrationSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class GetS3TargetFailureNotificationRegistrationSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetS3TargetFailureNotificationRegistrationsSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetS3TargetFailureNotificationRegistrationsSpectraS3Request.java index 831498e62..df0251024 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetS3TargetFailureNotificationRegistrationsSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetS3TargetFailureNotificationRegistrationsSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class GetS3TargetFailureNotificationRegistrationsSpectraS3Request extends AbstractPaginationRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetS3TargetFailuresSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetS3TargetFailuresSpectraS3Request.java index bda239f0f..36a58ec3a 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetS3TargetFailuresSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetS3TargetFailuresSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; -import com.google.common.net.UrlEscapers; import java.util.UUID; import com.spectralogic.ds3client.models.TargetFailureType; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetS3TargetReadPreferenceSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetS3TargetReadPreferenceSpectraS3Request.java index 65d7129b7..1c7d5b2a8 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetS3TargetReadPreferenceSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetS3TargetReadPreferenceSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class GetS3TargetReadPreferenceSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetS3TargetReadPreferencesSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetS3TargetReadPreferencesSpectraS3Request.java index cfb149338..3b7de6e9b 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetS3TargetReadPreferencesSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetS3TargetReadPreferencesSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; -import com.google.common.net.UrlEscapers; import java.util.UUID; import com.spectralogic.ds3client.models.TargetReadPreferenceType; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetS3TargetSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetS3TargetSpectraS3Request.java index 873236b73..8f365a198 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetS3TargetSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetS3TargetSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class GetS3TargetSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetS3TargetsSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetS3TargetsSpectraS3Request.java index 1b7f34d2b..d26d850c5 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetS3TargetsSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetS3TargetsSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.TargetReadPreferenceType; import com.spectralogic.ds3client.models.CloudNamingMode; import java.util.UUID; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetStorageDomainCapacitySummarySpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetStorageDomainCapacitySummarySpectraS3Request.java index 629b80c47..7a4dc9879 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetStorageDomainCapacitySummarySpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetStorageDomainCapacitySummarySpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.PoolHealth; import com.spectralogic.ds3client.models.PoolState; import com.spectralogic.ds3client.models.PoolType; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetStorageDomainFailuresSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetStorageDomainFailuresSpectraS3Request.java index ea2cfca8c..6c0915ce1 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetStorageDomainFailuresSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetStorageDomainFailuresSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; -import com.google.common.net.UrlEscapers; import java.util.UUID; import com.spectralogic.ds3client.models.StorageDomainFailureType; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetStorageDomainMemberSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetStorageDomainMemberSpectraS3Request.java index bb5ae220b..541e6f7bf 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetStorageDomainMemberSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetStorageDomainMemberSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class GetStorageDomainMemberSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetStorageDomainMembersSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetStorageDomainMembersSpectraS3Request.java index 5fc1a9399..ed4852eaf 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetStorageDomainMembersSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetStorageDomainMembersSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.StorageDomainMemberState; import com.spectralogic.ds3client.models.WritePreferenceLevel; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetStorageDomainSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetStorageDomainSpectraS3Request.java index ee4eed9ef..9ee05eecb 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetStorageDomainSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetStorageDomainSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class GetStorageDomainSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetStorageDomainsSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetStorageDomainsSpectraS3Request.java index f6a3faf18..0e1e3bc31 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetStorageDomainsSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetStorageDomainsSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; -import com.google.common.net.UrlEscapers; import java.util.UUID; import com.spectralogic.ds3client.models.WriteOptimization; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetSuspectBlobAzureTargetsSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetSuspectBlobAzureTargetsSpectraS3Request.java index 66de9faca..44a0430d9 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetSuspectBlobAzureTargetsSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetSuspectBlobAzureTargetsSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class GetSuspectBlobAzureTargetsSpectraS3Request extends AbstractPaginationRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetSuspectBlobDs3TargetsSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetSuspectBlobDs3TargetsSpectraS3Request.java index 25039b325..7cb56dc24 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetSuspectBlobDs3TargetsSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetSuspectBlobDs3TargetsSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class GetSuspectBlobDs3TargetsSpectraS3Request extends AbstractPaginationRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetSuspectBlobPoolsSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetSuspectBlobPoolsSpectraS3Request.java index 37c8e9767..a5ccfcabf 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetSuspectBlobPoolsSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetSuspectBlobPoolsSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class GetSuspectBlobPoolsSpectraS3Request extends AbstractPaginationRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetSuspectBlobS3TargetsSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetSuspectBlobS3TargetsSpectraS3Request.java index dda644d85..c6939c070 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetSuspectBlobS3TargetsSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetSuspectBlobS3TargetsSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class GetSuspectBlobS3TargetsSpectraS3Request extends AbstractPaginationRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetSuspectBlobTapesSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetSuspectBlobTapesSpectraS3Request.java index f00418a01..76efbecd6 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetSuspectBlobTapesSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetSuspectBlobTapesSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class GetSuspectBlobTapesSpectraS3Request extends AbstractPaginationRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetSuspectBucketsSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetSuspectBucketsSpectraS3Request.java index 68a53bc0e..13e32b2d4 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetSuspectBucketsSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetSuspectBucketsSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class GetSuspectBucketsSpectraS3Request extends AbstractPaginationRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetSuspectObjectsSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetSuspectObjectsSpectraS3Request.java index 787be990e..8245807d9 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetSuspectObjectsSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetSuspectObjectsSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; -import com.google.common.net.UrlEscapers; import java.util.UUID; public class GetSuspectObjectsSpectraS3Request extends AbstractPaginationRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetSuspectObjectsWithFullDetailsSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetSuspectObjectsWithFullDetailsSpectraS3Request.java index bafdaaca2..b5c96e9cf 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetSuspectObjectsWithFullDetailsSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetSuspectObjectsWithFullDetailsSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class GetSuspectObjectsWithFullDetailsSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetSystemCapacitySummarySpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetSystemCapacitySummarySpectraS3Request.java index 37a9766d6..30573de18 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetSystemCapacitySummarySpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetSystemCapacitySummarySpectraS3Request.java @@ -22,7 +22,6 @@ import com.spectralogic.ds3client.models.PoolState; import com.spectralogic.ds3client.models.PoolType; import com.spectralogic.ds3client.models.TapeState; -import com.google.common.net.UrlEscapers; public class GetSystemCapacitySummarySpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetSystemFailuresSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetSystemFailuresSpectraS3Request.java index ceb44e34b..f271940a9 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetSystemFailuresSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetSystemFailuresSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; -import com.google.common.net.UrlEscapers; import java.util.UUID; import com.spectralogic.ds3client.models.SystemFailureType; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetTapeDensityDirectiveSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetTapeDensityDirectiveSpectraS3Request.java index 7b2614317..117f16e78 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetTapeDensityDirectiveSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetTapeDensityDirectiveSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class GetTapeDensityDirectiveSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetTapeDensityDirectivesSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetTapeDensityDirectivesSpectraS3Request.java index 208b7c200..834f0ec03 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetTapeDensityDirectivesSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetTapeDensityDirectivesSpectraS3Request.java @@ -20,7 +20,6 @@ import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; import com.spectralogic.ds3client.models.TapeDriveType; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class GetTapeDensityDirectivesSpectraS3Request extends AbstractPaginationRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetTapeDriveSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetTapeDriveSpectraS3Request.java index 67d2eaa80..966104e1e 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetTapeDriveSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetTapeDriveSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class GetTapeDriveSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetTapeDrivesSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetTapeDrivesSpectraS3Request.java index ee0598cc8..84ff04f0a 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetTapeDrivesSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetTapeDrivesSpectraS3Request.java @@ -20,7 +20,6 @@ import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; import com.spectralogic.ds3client.models.Priority; import java.util.UUID; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.ReservedTaskType; import com.spectralogic.ds3client.models.TapeDriveState; import com.spectralogic.ds3client.models.TapeDriveType; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetTapeFailuresSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetTapeFailuresSpectraS3Request.java index e8f898f28..e3c8598e6 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetTapeFailuresSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetTapeFailuresSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; -import com.google.common.net.UrlEscapers; import java.util.UUID; import com.spectralogic.ds3client.models.TapeFailureType; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetTapeLibrariesSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetTapeLibrariesSpectraS3Request.java index b05787664..8b0c831c8 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetTapeLibrariesSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetTapeLibrariesSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; -import com.google.common.net.UrlEscapers; import java.util.UUID; public class GetTapeLibrariesSpectraS3Request extends AbstractPaginationRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetTapeLibrarySpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetTapeLibrarySpectraS3Request.java index 38abf87ba..90cff92a0 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetTapeLibrarySpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetTapeLibrarySpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class GetTapeLibrarySpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetTapePartitionFailuresSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetTapePartitionFailuresSpectraS3Request.java index 3304cea13..a2cd106de 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetTapePartitionFailuresSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetTapePartitionFailuresSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; -import com.google.common.net.UrlEscapers; import java.util.UUID; import com.spectralogic.ds3client.models.TapePartitionFailureType; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetTapePartitionSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetTapePartitionSpectraS3Request.java index 38c7cbce7..23f25128a 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetTapePartitionSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetTapePartitionSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class GetTapePartitionSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetTapePartitionWithFullDetailsSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetTapePartitionWithFullDetailsSpectraS3Request.java index 7acf5c337..3c2dd50d7 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetTapePartitionWithFullDetailsSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetTapePartitionWithFullDetailsSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class GetTapePartitionWithFullDetailsSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetTapePartitionsSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetTapePartitionsSpectraS3Request.java index 2b2cd92bd..405e5ac3e 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetTapePartitionsSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetTapePartitionsSpectraS3Request.java @@ -20,7 +20,6 @@ import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; import com.spectralogic.ds3client.models.ImportExportConfiguration; import java.util.UUID; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.Quiesced; import com.spectralogic.ds3client.models.TapePartitionState; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetTapePartitionsWithFullDetailsSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetTapePartitionsWithFullDetailsSpectraS3Request.java index aa86dee97..4fc2eb6f8 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetTapePartitionsWithFullDetailsSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetTapePartitionsWithFullDetailsSpectraS3Request.java @@ -20,7 +20,6 @@ import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; import com.spectralogic.ds3client.models.ImportExportConfiguration; import java.util.UUID; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.Quiesced; import com.spectralogic.ds3client.models.TapePartitionState; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetTapeSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetTapeSpectraS3Request.java index 68048e782..a7e83a2e8 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetTapeSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetTapeSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class GetTapeSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetTapesSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetTapesSpectraS3Request.java index 747ed0dba..9883bc564 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetTapesSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetTapesSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; import java.lang.Long; -import com.google.common.net.UrlEscapers; import java.util.Date; import java.util.UUID; import com.spectralogic.ds3client.models.TapeState; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetUserSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetUserSpectraS3Request.java index d2eba6ee3..e8b7a3268 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetUserSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetUserSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class GetUserSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetUsersSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetUsersSpectraS3Request.java index beeb1a0bc..1a7e71bd0 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetUsersSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetUsersSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; -import com.google.common.net.UrlEscapers; import java.util.UUID; public class GetUsersSpectraS3Request extends AbstractPaginationRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ImportAllPoolsSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ImportAllPoolsSpectraS3Request.java index b1b0ca0a0..5cdfe73b0 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ImportAllPoolsSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ImportAllPoolsSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.Priority; public class ImportAllPoolsSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ImportAllTapesSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ImportAllTapesSpectraS3Request.java index 88727193f..21581c626 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ImportAllTapesSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ImportAllTapesSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.Priority; public class ImportAllTapesSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ImportAzureTargetSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ImportAzureTargetSpectraS3Request.java index 92cf694eb..de3ed0d00 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ImportAzureTargetSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ImportAzureTargetSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; import java.util.UUID; import com.spectralogic.ds3client.models.Priority; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ImportPoolSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ImportPoolSpectraS3Request.java index 0054bbf3a..20e220059 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ImportPoolSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ImportPoolSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.Priority; public class ImportPoolSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ImportS3TargetSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ImportS3TargetSpectraS3Request.java index be7541667..7ae92c002 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ImportS3TargetSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ImportS3TargetSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; import java.util.UUID; import com.spectralogic.ds3client.models.Priority; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ImportTapeSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ImportTapeSpectraS3Request.java index e787dd4b8..5322fb1fa 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ImportTapeSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ImportTapeSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.Priority; public class ImportTapeSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/InspectTapeSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/InspectTapeSpectraS3Request.java index cd2c92b46..d09e9563c 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/InspectTapeSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/InspectTapeSpectraS3Request.java @@ -20,7 +20,6 @@ import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import com.spectralogic.ds3client.models.Priority; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class InspectTapeSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/MarkTapeForCompactionSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/MarkTapeForCompactionSpectraS3Request.java index a443c1818..18950c892 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/MarkTapeForCompactionSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/MarkTapeForCompactionSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class MarkTapeForCompactionSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyActiveJobSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyActiveJobSpectraS3Request.java index b511d673d..46278919c 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyActiveJobSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyActiveJobSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.Date; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.Priority; import java.util.UUID; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyAzureDataReplicationRuleSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyAzureDataReplicationRuleSpectraS3Request.java index 52f5ee3fe..737c8e25c 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyAzureDataReplicationRuleSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyAzureDataReplicationRuleSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import com.spectralogic.ds3client.models.DataReplicationRuleType; -import com.google.common.net.UrlEscapers; public class ModifyAzureDataReplicationRuleSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyAzureTargetSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyAzureTargetSpectraS3Request.java index 26ca9ffa8..6ae86debc 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyAzureTargetSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyAzureTargetSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; import java.lang.Integer; import com.spectralogic.ds3client.models.TargetReadPreferenceType; import com.spectralogic.ds3client.models.Quiesced; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyBucketSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyBucketSpectraS3Request.java index d6870c2a9..e06f40e56 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyBucketSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyBucketSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class ModifyBucketSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyCacheFilesystemSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyCacheFilesystemSpectraS3Request.java index d6425c54d..94cfef774 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyCacheFilesystemSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyCacheFilesystemSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.lang.Long; -import com.google.common.net.UrlEscapers; public class ModifyCacheFilesystemSpectraS3Request extends AbstractRequest { @@ -37,6 +36,8 @@ public class ModifyCacheFilesystemSpectraS3Request extends AbstractRequest { private Long maxCapacityInBytes; + private boolean needsReconcile; + // Constructor @@ -80,6 +81,13 @@ public ModifyCacheFilesystemSpectraS3Request withMaxCapacityInBytes(final Long m } + public ModifyCacheFilesystemSpectraS3Request withNeedsReconcile(final boolean needsReconcile) { + this.needsReconcile = needsReconcile; + this.updateQueryParam("needs_reconcile", needsReconcile); + return this; + } + + @Override public HttpVerb getVerb() { @@ -120,4 +128,9 @@ public Long getMaxCapacityInBytes() { return this.maxCapacityInBytes; } + + public boolean getNeedsReconcile() { + return this.needsReconcile; + } + } \ No newline at end of file diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyDataPersistenceRuleSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyDataPersistenceRuleSpectraS3Request.java index 6024360dd..f22d488fd 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyDataPersistenceRuleSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyDataPersistenceRuleSpectraS3Request.java @@ -22,7 +22,6 @@ import java.lang.Integer; import com.spectralogic.ds3client.models.DataPersistenceRuleType; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class ModifyDataPersistenceRuleSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyDataPolicySpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyDataPolicySpectraS3Request.java index f42d98170..211acc8c3 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyDataPolicySpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyDataPolicySpectraS3Request.java @@ -21,7 +21,6 @@ import com.spectralogic.ds3client.models.ChecksumType; import java.lang.Long; import com.spectralogic.ds3client.models.Priority; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.VersioningLevel; import java.util.UUID; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyDs3DataReplicationRuleSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyDs3DataReplicationRuleSpectraS3Request.java index 2d9755b43..c0373fbaf 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyDs3DataReplicationRuleSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyDs3DataReplicationRuleSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.DataReplicationRuleType; public class ModifyDs3DataReplicationRuleSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyDs3TargetSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyDs3TargetSpectraS3Request.java index a37c058ed..387169330 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyDs3TargetSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyDs3TargetSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import com.spectralogic.ds3client.models.Ds3TargetAccessControlReplication; -import com.google.common.net.UrlEscapers; import java.lang.Integer; import com.spectralogic.ds3client.models.TargetReadPreferenceType; import com.spectralogic.ds3client.models.Quiesced; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyGroupSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyGroupSpectraS3Request.java index 8e5db9a8b..ac76f11b1 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyGroupSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyGroupSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class ModifyGroupSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyJobSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyJobSpectraS3Request.java index 4904fa61c..3fac5131b 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyJobSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyJobSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.Date; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.Priority; import java.util.UUID; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyNodeSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyNodeSpectraS3Request.java index 604f48e9e..8de978291 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyNodeSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyNodeSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class ModifyNodeSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyPoolPartitionSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyPoolPartitionSpectraS3Request.java index 4969a529e..0e96ef058 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyPoolPartitionSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyPoolPartitionSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class ModifyPoolPartitionSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyPoolSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyPoolSpectraS3Request.java index 363c7ca1e..db5158d8a 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyPoolSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyPoolSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.Quiesced; public class ModifyPoolSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyS3DataReplicationRuleSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyS3DataReplicationRuleSpectraS3Request.java index 11b7f9367..a0cdb36ee 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyS3DataReplicationRuleSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyS3DataReplicationRuleSpectraS3Request.java @@ -20,7 +20,6 @@ import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import com.spectralogic.ds3client.models.S3InitialDataPlacementPolicy; import com.spectralogic.ds3client.models.DataReplicationRuleType; -import com.google.common.net.UrlEscapers; public class ModifyS3DataReplicationRuleSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyS3TargetSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyS3TargetSpectraS3Request.java index 4ce24ab5b..673cbe5f3 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyS3TargetSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyS3TargetSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; import java.lang.Integer; import com.spectralogic.ds3client.models.TargetReadPreferenceType; import com.spectralogic.ds3client.models.CloudNamingMode; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyStorageDomainMemberSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyStorageDomainMemberSpectraS3Request.java index 4959fabab..83163a40b 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyStorageDomainMemberSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyStorageDomainMemberSpectraS3Request.java @@ -21,7 +21,6 @@ import java.lang.Integer; import com.spectralogic.ds3client.models.StorageDomainMemberState; import com.spectralogic.ds3client.models.WritePreferenceLevel; -import com.google.common.net.UrlEscapers; public class ModifyStorageDomainMemberSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyStorageDomainSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyStorageDomainSpectraS3Request.java index 529bd2301..7b2d704c3 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyStorageDomainSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyStorageDomainSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.lang.Long; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.LtfsFileNamingMode; import java.lang.Integer; import com.spectralogic.ds3client.models.Priority; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyTapeDriveSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyTapeDriveSpectraS3Request.java index d5263db7f..dac46b7c9 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyTapeDriveSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyTapeDriveSpectraS3Request.java @@ -23,7 +23,6 @@ import com.spectralogic.ds3client.models.Quiesced; import com.spectralogic.ds3client.models.ReservedTaskType; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class ModifyTapeDriveSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyTapePartitionSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyTapePartitionSpectraS3Request.java index 1121d0be7..4e52a4f17 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyTapePartitionSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyTapePartitionSpectraS3Request.java @@ -20,7 +20,6 @@ import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.lang.Integer; import com.spectralogic.ds3client.models.Quiesced; -import com.google.common.net.UrlEscapers; public class ModifyTapePartitionSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyTapeSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyTapeSpectraS3Request.java index a0caf22ca..e2176e17a 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyTapeSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyTapeSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.TapeRole; import com.spectralogic.ds3client.models.TapeState; import java.util.UUID; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyUserSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyUserSpectraS3Request.java index df789ec4e..d69e858bc 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyUserSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyUserSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class ModifyUserSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/OnlineTapeSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/OnlineTapeSpectraS3Request.java index e208d7791..c2be66d82 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/OnlineTapeSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/OnlineTapeSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class OnlineTapeSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PairBackRegisteredDs3TargetSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PairBackRegisteredDs3TargetSpectraS3Request.java index fb9854dda..5afa84743 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PairBackRegisteredDs3TargetSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PairBackRegisteredDs3TargetSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import com.spectralogic.ds3client.models.Ds3TargetAccessControlReplication; -import com.google.common.net.UrlEscapers; import java.lang.Integer; import com.spectralogic.ds3client.models.TargetReadPreferenceType; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutAzureDataReplicationRuleSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutAzureDataReplicationRuleSpectraS3Request.java index 9315f048f..108768a86 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutAzureDataReplicationRuleSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutAzureDataReplicationRuleSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.DataReplicationRuleType; public class PutAzureDataReplicationRuleSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutAzureTargetBucketNameSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutAzureTargetBucketNameSpectraS3Request.java index 0b1d255e8..e172ff13b 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutAzureTargetBucketNameSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutAzureTargetBucketNameSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; import java.util.UUID; public class PutAzureTargetBucketNameSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutAzureTargetFailureNotificationRegistrationSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutAzureTargetFailureNotificationRegistrationSpectraS3Request.java index f349da0f0..42d4daa75 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutAzureTargetFailureNotificationRegistrationSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutAzureTargetFailureNotificationRegistrationSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.HttpResponseFormatType; import com.spectralogic.ds3client.models.NamingConventionType; import com.spectralogic.ds3client.models.RequestType; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutAzureTargetReadPreferenceSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutAzureTargetReadPreferenceSpectraS3Request.java index a1a198318..cc7fdf7fe 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutAzureTargetReadPreferenceSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutAzureTargetReadPreferenceSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.TargetReadPreferenceType; import java.util.UUID; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutBucketAclForGroupSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutBucketAclForGroupSpectraS3Request.java index fd73028ea..0eeb06c24 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutBucketAclForGroupSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutBucketAclForGroupSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; import java.util.UUID; import com.spectralogic.ds3client.models.BucketAclPermission; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutBucketAclForUserSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutBucketAclForUserSpectraS3Request.java index 54c56c34b..79fd8bae7 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutBucketAclForUserSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutBucketAclForUserSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.BucketAclPermission; import java.util.UUID; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutBucketChangesNotificationRegistrationSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutBucketChangesNotificationRegistrationSpectraS3Request.java index 0c0bdcf37..88a9c4d73 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutBucketChangesNotificationRegistrationSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutBucketChangesNotificationRegistrationSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.HttpResponseFormatType; import com.spectralogic.ds3client.models.NamingConventionType; import com.spectralogic.ds3client.models.RequestType; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutBucketSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutBucketSpectraS3Request.java index 3b39c2c8d..547c3a95e 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutBucketSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutBucketSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; import java.util.UUID; public class PutBucketSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutBulkJobSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutBulkJobSpectraS3Request.java index 27c0768f1..3b1ff3b86 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutBulkJobSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutBulkJobSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.BulkCommand; import com.spectralogic.ds3client.models.bulk.Ds3Object; import com.spectralogic.ds3client.commands.interfaces.BulkRequest; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.Priority; public class PutBulkJobSpectraS3Request extends BulkRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutDataPersistenceRuleSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutDataPersistenceRuleSpectraS3Request.java index b7d76358c..ae7c16332 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutDataPersistenceRuleSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutDataPersistenceRuleSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.DataIsolationLevel; import com.spectralogic.ds3client.models.DataPersistenceRuleType; import java.lang.Integer; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutDataPolicyAclForGroupSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutDataPolicyAclForGroupSpectraS3Request.java index a40dc1206..b879c1548 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutDataPolicyAclForGroupSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutDataPolicyAclForGroupSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class PutDataPolicyAclForGroupSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutDataPolicyAclForUserSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutDataPolicyAclForUserSpectraS3Request.java index 881c3c588..b4b391166 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutDataPolicyAclForUserSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutDataPolicyAclForUserSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class PutDataPolicyAclForUserSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutDataPolicySpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutDataPolicySpectraS3Request.java index 32dac048d..46f66e341 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutDataPolicySpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutDataPolicySpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.ChecksumType; import java.lang.Long; import com.spectralogic.ds3client.models.Priority; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutDriveDumpSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutDriveDumpSpectraS3Request.java index 00ca253e8..eda25f4bf 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutDriveDumpSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutDriveDumpSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class PutDriveDumpSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutDs3DataReplicationRuleSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutDs3DataReplicationRuleSpectraS3Request.java index 1ad231dcb..bf942b54d 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutDs3DataReplicationRuleSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutDs3DataReplicationRuleSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.DataReplicationRuleType; public class PutDs3DataReplicationRuleSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutDs3TargetReadPreferenceSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutDs3TargetReadPreferenceSpectraS3Request.java index 4cf796250..b93ba83ca 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutDs3TargetReadPreferenceSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutDs3TargetReadPreferenceSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.TargetReadPreferenceType; import java.util.UUID; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutGlobalBucketAclForGroupSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutGlobalBucketAclForGroupSpectraS3Request.java index 6c7dfc998..7a0645151 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutGlobalBucketAclForGroupSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutGlobalBucketAclForGroupSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.BucketAclPermission; public class PutGlobalBucketAclForGroupSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutGlobalBucketAclForUserSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutGlobalBucketAclForUserSpectraS3Request.java index 328cc8005..f85ee0bf9 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutGlobalBucketAclForUserSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutGlobalBucketAclForUserSpectraS3Request.java @@ -20,7 +20,6 @@ import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import com.spectralogic.ds3client.models.BucketAclPermission; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class PutGlobalBucketAclForUserSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutGlobalDataPolicyAclForGroupSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutGlobalDataPolicyAclForGroupSpectraS3Request.java index 810574f18..dfe8bc54c 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutGlobalDataPolicyAclForGroupSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutGlobalDataPolicyAclForGroupSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class PutGlobalDataPolicyAclForGroupSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutGlobalDataPolicyAclForUserSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutGlobalDataPolicyAclForUserSpectraS3Request.java index 6794d5119..3afe2a6a3 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutGlobalDataPolicyAclForUserSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutGlobalDataPolicyAclForUserSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class PutGlobalDataPolicyAclForUserSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutGroupGroupMemberSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutGroupGroupMemberSpectraS3Request.java index 224a3dd49..3df4e18ae 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutGroupGroupMemberSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutGroupGroupMemberSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class PutGroupGroupMemberSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutGroupSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutGroupSpectraS3Request.java index 7daf04468..a9f9a3f9f 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutGroupSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutGroupSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class PutGroupSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutPoolPartitionSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutPoolPartitionSpectraS3Request.java index 4215a7534..1065a911e 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutPoolPartitionSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutPoolPartitionSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.PoolType; public class PutPoolPartitionSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutPoolStorageDomainMemberSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutPoolStorageDomainMemberSpectraS3Request.java index 283385943..752c27ba6 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutPoolStorageDomainMemberSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutPoolStorageDomainMemberSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.WritePreferenceLevel; public class PutPoolStorageDomainMemberSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutS3DataReplicationRuleSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutS3DataReplicationRuleSpectraS3Request.java index a7aa0012b..3a62fc328 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutS3DataReplicationRuleSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutS3DataReplicationRuleSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.DataReplicationRuleType; import com.spectralogic.ds3client.models.S3InitialDataPlacementPolicy; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutS3TargetBucketNameSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutS3TargetBucketNameSpectraS3Request.java index 29f366399..d7a8de0bf 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutS3TargetBucketNameSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutS3TargetBucketNameSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; import java.util.UUID; public class PutS3TargetBucketNameSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutS3TargetFailureNotificationRegistrationSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutS3TargetFailureNotificationRegistrationSpectraS3Request.java index eeceab201..989c0a70d 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutS3TargetFailureNotificationRegistrationSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutS3TargetFailureNotificationRegistrationSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.HttpResponseFormatType; import com.spectralogic.ds3client.models.NamingConventionType; import com.spectralogic.ds3client.models.RequestType; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutS3TargetReadPreferenceSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutS3TargetReadPreferenceSpectraS3Request.java index 23fce5ca4..a07f707ae 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutS3TargetReadPreferenceSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutS3TargetReadPreferenceSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.TargetReadPreferenceType; import java.util.UUID; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutStorageDomainSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutStorageDomainSpectraS3Request.java index 5ed3b98fb..2a6af8467 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutStorageDomainSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutStorageDomainSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; import java.lang.Long; import com.spectralogic.ds3client.models.LtfsFileNamingMode; import java.lang.Integer; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutTapeDensityDirectiveSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutTapeDensityDirectiveSpectraS3Request.java index d25e7f66d..5b4de1bf1 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutTapeDensityDirectiveSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutTapeDensityDirectiveSpectraS3Request.java @@ -20,7 +20,6 @@ import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import com.spectralogic.ds3client.models.TapeDriveType; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class PutTapeDensityDirectiveSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutTapeStorageDomainMemberSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutTapeStorageDomainMemberSpectraS3Request.java index d7ced9527..0e6563fab 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutTapeStorageDomainMemberSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutTapeStorageDomainMemberSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; import java.lang.Integer; import com.spectralogic.ds3client.models.WritePreferenceLevel; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutUserGroupMemberSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutUserGroupMemberSpectraS3Request.java index 37c66c298..701a2a4ec 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutUserGroupMemberSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/PutUserGroupMemberSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class PutUserGroupMemberSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/RawImportAllTapesSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/RawImportAllTapesSpectraS3Request.java index 257727c61..d5144960d 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/RawImportAllTapesSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/RawImportAllTapesSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; import java.util.UUID; import com.spectralogic.ds3client.models.Priority; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/RawImportTapeSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/RawImportTapeSpectraS3Request.java index 092a9915b..265a76568 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/RawImportTapeSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/RawImportTapeSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; import java.util.UUID; import com.spectralogic.ds3client.models.Priority; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/RegenerateUserSecretKeySpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/RegenerateUserSecretKeySpectraS3Request.java index 70fdb2429..13d484068 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/RegenerateUserSecretKeySpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/RegenerateUserSecretKeySpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class RegenerateUserSecretKeySpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/RegisterAzureTargetSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/RegisterAzureTargetSpectraS3Request.java index 272d6a1fc..f25370944 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/RegisterAzureTargetSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/RegisterAzureTargetSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; import java.lang.Integer; import com.spectralogic.ds3client.models.TargetReadPreferenceType; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/RegisterDs3TargetSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/RegisterDs3TargetSpectraS3Request.java index 62bc65fd4..5fdde82ad 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/RegisterDs3TargetSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/RegisterDs3TargetSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.Ds3TargetAccessControlReplication; import java.lang.Integer; import com.spectralogic.ds3client.models.TargetReadPreferenceType; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/RegisterS3TargetSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/RegisterS3TargetSpectraS3Request.java index 415e38f41..1c30ecac1 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/RegisterS3TargetSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/RegisterS3TargetSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; import java.lang.Integer; import com.spectralogic.ds3client.models.TargetReadPreferenceType; import com.spectralogic.ds3client.models.CloudNamingMode; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ReplicatePutJobSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ReplicatePutJobSpectraS3Request.java index 84317559a..07c012e7c 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ReplicatePutJobSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ReplicatePutJobSpectraS3Request.java @@ -21,9 +21,9 @@ import java.io.InputStream; import java.nio.charset.Charset; import com.spectralogic.ds3client.utils.Guard; +import java.nio.charset.StandardCharsets; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import com.spectralogic.ds3client.models.Priority; -import com.google.common.net.UrlEscapers; public class ReplicatePutJobSpectraS3Request extends AbstractRequest { @@ -70,7 +70,7 @@ public InputStream getStream() { if (Guard.isStringNullOrEmpty(requestPayload)) { return null; } - final byte[] stringBytes = requestPayload.getBytes(Charset.forName("UTF-8")); + final byte[] stringBytes = requestPayload.getBytes(StandardCharsets.UTF_8); this.size = stringBytes.length; return new ByteArrayInputStream(stringBytes); } diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/StageObjectsJobSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/StageObjectsJobSpectraS3Request.java index 0e096faf3..46f4eedf9 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/StageObjectsJobSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/StageObjectsJobSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.BulkCommand; import com.spectralogic.ds3client.models.bulk.Ds3Object; import com.spectralogic.ds3client.commands.interfaces.BulkRequest; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.Priority; public class StageObjectsJobSpectraS3Request extends BulkRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/TestTapeDriveSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/TestTapeDriveSpectraS3Request.java index 4a2a22b52..6fd6a57f1 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/TestTapeDriveSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/TestTapeDriveSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class TestTapeDriveSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/TruncateActiveJobSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/TruncateActiveJobSpectraS3Request.java index 9aeb196d0..e24fe5c16 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/TruncateActiveJobSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/TruncateActiveJobSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class TruncateActiveJobSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/TruncateAllActiveJobsSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/TruncateAllActiveJobsSpectraS3Request.java index 3c882f5e2..04a716d4d 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/TruncateAllActiveJobsSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/TruncateAllActiveJobsSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.JobRequestType; public class TruncateAllActiveJobsSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/TruncateAllJobsSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/TruncateAllJobsSpectraS3Request.java index 51e619dc0..752fcfbb8 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/TruncateAllJobsSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/TruncateAllJobsSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.JobRequestType; public class TruncateAllJobsSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/TruncateJobSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/TruncateJobSpectraS3Request.java index f04c5153e..45e188041 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/TruncateJobSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/TruncateJobSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class TruncateJobSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/UndeleteObjectSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/UndeleteObjectSpectraS3Request.java index ebae9f75d..5fd5c53d1 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/UndeleteObjectSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/UndeleteObjectSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; import java.util.UUID; public class UndeleteObjectSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/VerifyAzureTargetSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/VerifyAzureTargetSpectraS3Request.java index 6214e51e9..41ff60651 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/VerifyAzureTargetSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/VerifyAzureTargetSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class VerifyAzureTargetSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/VerifyBulkJobSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/VerifyBulkJobSpectraS3Request.java index 37f07d5af..8a8e1ebcd 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/VerifyBulkJobSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/VerifyBulkJobSpectraS3Request.java @@ -26,8 +26,8 @@ import java.io.InputStream; import java.util.List; import java.nio.charset.Charset; +import java.nio.charset.StandardCharsets; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.Priority; public class VerifyBulkJobSpectraS3Request extends AbstractRequest { @@ -88,7 +88,7 @@ public InputStream getStream() { final String xmlOutput = XmlOutput.toXml(objects, false); - final byte[] stringBytes = xmlOutput.getBytes(Charset.forName("UTF-8")); + final byte[] stringBytes = xmlOutput.getBytes(StandardCharsets.UTF_8); this.size = stringBytes.length; return new ByteArrayInputStream(stringBytes); } diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/VerifyDs3TargetSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/VerifyDs3TargetSpectraS3Request.java index e0287d487..bf5ce5898 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/VerifyDs3TargetSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/VerifyDs3TargetSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class VerifyDs3TargetSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/VerifyPhysicalPlacementForObjectsSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/VerifyPhysicalPlacementForObjectsSpectraS3Request.java index 6942fe92e..7cf685b7d 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/VerifyPhysicalPlacementForObjectsSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/VerifyPhysicalPlacementForObjectsSpectraS3Request.java @@ -26,8 +26,8 @@ import java.io.InputStream; import java.util.List; import java.nio.charset.Charset; +import java.nio.charset.StandardCharsets; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class VerifyPhysicalPlacementForObjectsSpectraS3Request extends AbstractRequest { @@ -69,7 +69,7 @@ public InputStream getStream() { final String xmlOutput = XmlOutput.toXml(objects, false); - final byte[] stringBytes = xmlOutput.getBytes(Charset.forName("UTF-8")); + final byte[] stringBytes = xmlOutput.getBytes(StandardCharsets.UTF_8); this.size = stringBytes.length; return new ByteArrayInputStream(stringBytes); } diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/VerifyPhysicalPlacementForObjectsWithFullDetailsSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/VerifyPhysicalPlacementForObjectsWithFullDetailsSpectraS3Request.java index b25c3651c..2bb202512 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/VerifyPhysicalPlacementForObjectsWithFullDetailsSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/VerifyPhysicalPlacementForObjectsWithFullDetailsSpectraS3Request.java @@ -26,8 +26,8 @@ import java.io.InputStream; import java.util.List; import java.nio.charset.Charset; +import java.nio.charset.StandardCharsets; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class VerifyPhysicalPlacementForObjectsWithFullDetailsSpectraS3Request extends AbstractRequest { @@ -70,7 +70,7 @@ public InputStream getStream() { final String xmlOutput = XmlOutput.toXml(objects, false); - final byte[] stringBytes = xmlOutput.getBytes(Charset.forName("UTF-8")); + final byte[] stringBytes = xmlOutput.getBytes(StandardCharsets.UTF_8); this.size = stringBytes.length; return new ByteArrayInputStream(stringBytes); } diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/VerifyPoolSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/VerifyPoolSpectraS3Request.java index 83e6685d8..7afa83637 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/VerifyPoolSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/VerifyPoolSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import com.spectralogic.ds3client.models.Priority; -import com.google.common.net.UrlEscapers; public class VerifyPoolSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/VerifyS3TargetSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/VerifyS3TargetSpectraS3Request.java index 1d0111e71..d4f75db83 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/VerifyS3TargetSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/VerifyS3TargetSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class VerifyS3TargetSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/VerifySafeToCreatePutJobSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/VerifySafeToCreatePutJobSpectraS3Request.java index 8a19bc359..70853353e 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/VerifySafeToCreatePutJobSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/VerifySafeToCreatePutJobSpectraS3Request.java @@ -18,7 +18,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; -import com.google.common.net.UrlEscapers; public class VerifySafeToCreatePutJobSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/VerifyTapeSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/VerifyTapeSpectraS3Request.java index f7376f9f6..c05dee8d5 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/VerifyTapeSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/VerifyTapeSpectraS3Request.java @@ -20,7 +20,6 @@ import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import com.spectralogic.ds3client.models.Priority; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class VerifyTapeSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/VerifyUserIsMemberOfGroupSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/VerifyUserIsMemberOfGroupSpectraS3Request.java index 78c2fa745..ac26cd5e5 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/VerifyUserIsMemberOfGroupSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/VerifyUserIsMemberOfGroupSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class VerifyUserIsMemberOfGroupSpectraS3Request extends AbstractRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/DeleteDs3TargetFailureNotificationRegistrationSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/DeleteDs3TargetFailureNotificationRegistrationSpectraS3Request.java index 5cfc559aa..35e84b092 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/DeleteDs3TargetFailureNotificationRegistrationSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/DeleteDs3TargetFailureNotificationRegistrationSpectraS3Request.java @@ -43,7 +43,7 @@ public DeleteDs3TargetFailureNotificationRegistrationSpectraS3Request(final Stri @Override public String getPath() { - return "/_rest_/ds3_target_failure_notification_registration/" + this.getNotificationId().toString(); + return "/_rest_/ds3_target_failure_notification_registration/" + this.getNotificationId(); } diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/DeleteJobCompletedNotificationRegistrationSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/DeleteJobCompletedNotificationRegistrationSpectraS3Request.java index ac4d313b6..14e9a689d 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/DeleteJobCompletedNotificationRegistrationSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/DeleteJobCompletedNotificationRegistrationSpectraS3Request.java @@ -43,7 +43,7 @@ public DeleteJobCompletedNotificationRegistrationSpectraS3Request(final String n @Override public String getPath() { - return "/_rest_/job_completed_notification_registration/" + this.getNotificationId().toString(); + return "/_rest_/job_completed_notification_registration/" + this.getNotificationId(); } diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/DeleteJobCreatedNotificationRegistrationSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/DeleteJobCreatedNotificationRegistrationSpectraS3Request.java index e9f6cf6c8..d1c0a415c 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/DeleteJobCreatedNotificationRegistrationSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/DeleteJobCreatedNotificationRegistrationSpectraS3Request.java @@ -43,7 +43,7 @@ public DeleteJobCreatedNotificationRegistrationSpectraS3Request(final String not @Override public String getPath() { - return "/_rest_/job_created_notification_registration/" + this.getNotificationId().toString(); + return "/_rest_/job_created_notification_registration/" + this.getNotificationId(); } diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/DeleteJobCreationFailedNotificationRegistrationSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/DeleteJobCreationFailedNotificationRegistrationSpectraS3Request.java index 51b2cd139..b68da2972 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/DeleteJobCreationFailedNotificationRegistrationSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/DeleteJobCreationFailedNotificationRegistrationSpectraS3Request.java @@ -43,7 +43,7 @@ public DeleteJobCreationFailedNotificationRegistrationSpectraS3Request(final Str @Override public String getPath() { - return "/_rest_/job_creation_failed_notification_registration/" + this.getNotificationId().toString(); + return "/_rest_/job_creation_failed_notification_registration/" + this.getNotificationId(); } diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/DeleteObjectCachedNotificationRegistrationSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/DeleteObjectCachedNotificationRegistrationSpectraS3Request.java index 1911403e0..a73b6cda5 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/DeleteObjectCachedNotificationRegistrationSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/DeleteObjectCachedNotificationRegistrationSpectraS3Request.java @@ -43,7 +43,7 @@ public DeleteObjectCachedNotificationRegistrationSpectraS3Request(final String n @Override public String getPath() { - return "/_rest_/object_cached_notification_registration/" + this.getNotificationId().toString(); + return "/_rest_/object_cached_notification_registration/" + this.getNotificationId(); } diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/DeleteObjectLostNotificationRegistrationSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/DeleteObjectLostNotificationRegistrationSpectraS3Request.java index 490208a06..419a8d7e2 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/DeleteObjectLostNotificationRegistrationSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/DeleteObjectLostNotificationRegistrationSpectraS3Request.java @@ -43,7 +43,7 @@ public DeleteObjectLostNotificationRegistrationSpectraS3Request(final String not @Override public String getPath() { - return "/_rest_/object_lost_notification_registration/" + this.getNotificationId().toString(); + return "/_rest_/object_lost_notification_registration/" + this.getNotificationId(); } diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/DeleteObjectPersistedNotificationRegistrationSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/DeleteObjectPersistedNotificationRegistrationSpectraS3Request.java index 8080041b1..9ce011ef1 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/DeleteObjectPersistedNotificationRegistrationSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/DeleteObjectPersistedNotificationRegistrationSpectraS3Request.java @@ -43,7 +43,7 @@ public DeleteObjectPersistedNotificationRegistrationSpectraS3Request(final Strin @Override public String getPath() { - return "/_rest_/object_persisted_notification_registration/" + this.getNotificationId().toString(); + return "/_rest_/object_persisted_notification_registration/" + this.getNotificationId(); } diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/DeletePoolFailureNotificationRegistrationSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/DeletePoolFailureNotificationRegistrationSpectraS3Request.java index 717757b2b..cb74477b9 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/DeletePoolFailureNotificationRegistrationSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/DeletePoolFailureNotificationRegistrationSpectraS3Request.java @@ -43,7 +43,7 @@ public DeletePoolFailureNotificationRegistrationSpectraS3Request(final String no @Override public String getPath() { - return "/_rest_/pool_failure_notification_registration/" + this.getNotificationId().toString(); + return "/_rest_/pool_failure_notification_registration/" + this.getNotificationId(); } diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/DeleteStorageDomainFailureNotificationRegistrationSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/DeleteStorageDomainFailureNotificationRegistrationSpectraS3Request.java index f2bf735e0..09aedaa7a 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/DeleteStorageDomainFailureNotificationRegistrationSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/DeleteStorageDomainFailureNotificationRegistrationSpectraS3Request.java @@ -43,7 +43,7 @@ public DeleteStorageDomainFailureNotificationRegistrationSpectraS3Request(final @Override public String getPath() { - return "/_rest_/storage_domain_failure_notification_registration/" + this.getNotificationId().toString(); + return "/_rest_/storage_domain_failure_notification_registration/" + this.getNotificationId(); } diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/DeleteSystemFailureNotificationRegistrationSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/DeleteSystemFailureNotificationRegistrationSpectraS3Request.java index f261b8cfc..817d89e3d 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/DeleteSystemFailureNotificationRegistrationSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/DeleteSystemFailureNotificationRegistrationSpectraS3Request.java @@ -43,7 +43,7 @@ public DeleteSystemFailureNotificationRegistrationSpectraS3Request(final String @Override public String getPath() { - return "/_rest_/system_failure_notification_registration/" + this.getNotificationId().toString(); + return "/_rest_/system_failure_notification_registration/" + this.getNotificationId(); } diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/DeleteTapeFailureNotificationRegistrationSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/DeleteTapeFailureNotificationRegistrationSpectraS3Request.java index 85ea9fa74..bdaee9304 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/DeleteTapeFailureNotificationRegistrationSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/DeleteTapeFailureNotificationRegistrationSpectraS3Request.java @@ -43,7 +43,7 @@ public DeleteTapeFailureNotificationRegistrationSpectraS3Request(final String no @Override public String getPath() { - return "/_rest_/tape_failure_notification_registration/" + this.getNotificationId().toString(); + return "/_rest_/tape_failure_notification_registration/" + this.getNotificationId(); } diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/DeleteTapePartitionFailureNotificationRegistrationSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/DeleteTapePartitionFailureNotificationRegistrationSpectraS3Request.java index 698bb5e62..92a5f7a86 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/DeleteTapePartitionFailureNotificationRegistrationSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/DeleteTapePartitionFailureNotificationRegistrationSpectraS3Request.java @@ -43,7 +43,7 @@ public DeleteTapePartitionFailureNotificationRegistrationSpectraS3Request(final @Override public String getPath() { - return "/_rest_/tape_partition_failure_notification_registration/" + this.getNotificationId().toString(); + return "/_rest_/tape_partition_failure_notification_registration/" + this.getNotificationId(); } diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetDs3TargetFailureNotificationRegistrationSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetDs3TargetFailureNotificationRegistrationSpectraS3Request.java index f6802fb70..00710bb38 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetDs3TargetFailureNotificationRegistrationSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetDs3TargetFailureNotificationRegistrationSpectraS3Request.java @@ -44,7 +44,7 @@ public GetDs3TargetFailureNotificationRegistrationSpectraS3Request(final String @Override public String getPath() { - return "/_rest_/ds3_target_failure_notification_registration/" + this.getNotificationId().toString(); + return "/_rest_/ds3_target_failure_notification_registration/" + this.getNotificationId(); } } \ No newline at end of file diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetDs3TargetFailureNotificationRegistrationsSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetDs3TargetFailureNotificationRegistrationsSpectraS3Request.java index faca0405d..6d3fb4e93 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetDs3TargetFailureNotificationRegistrationsSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetDs3TargetFailureNotificationRegistrationsSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class GetDs3TargetFailureNotificationRegistrationsSpectraS3Request extends AbstractPaginationRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetJobCompletedNotificationRegistrationSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetJobCompletedNotificationRegistrationSpectraS3Request.java index ffdeaae2e..28e226129 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetJobCompletedNotificationRegistrationSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetJobCompletedNotificationRegistrationSpectraS3Request.java @@ -44,7 +44,7 @@ public GetJobCompletedNotificationRegistrationSpectraS3Request(final String noti @Override public String getPath() { - return "/_rest_/job_completed_notification_registration/" + this.getNotificationId().toString(); + return "/_rest_/job_completed_notification_registration/" + this.getNotificationId(); } } \ No newline at end of file diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetJobCompletedNotificationRegistrationsSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetJobCompletedNotificationRegistrationsSpectraS3Request.java index 22b5afe2b..e6a57a6b8 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetJobCompletedNotificationRegistrationsSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetJobCompletedNotificationRegistrationsSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class GetJobCompletedNotificationRegistrationsSpectraS3Request extends AbstractPaginationRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetJobCreatedNotificationRegistrationSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetJobCreatedNotificationRegistrationSpectraS3Request.java index 12f2a39d8..b8b2a92c7 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetJobCreatedNotificationRegistrationSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetJobCreatedNotificationRegistrationSpectraS3Request.java @@ -44,7 +44,7 @@ public GetJobCreatedNotificationRegistrationSpectraS3Request(final String notifi @Override public String getPath() { - return "/_rest_/job_created_notification_registration/" + this.getNotificationId().toString(); + return "/_rest_/job_created_notification_registration/" + this.getNotificationId(); } } \ No newline at end of file diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetJobCreatedNotificationRegistrationsSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetJobCreatedNotificationRegistrationsSpectraS3Request.java index eceeb1e70..d2a9be847 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetJobCreatedNotificationRegistrationsSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetJobCreatedNotificationRegistrationsSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class GetJobCreatedNotificationRegistrationsSpectraS3Request extends AbstractPaginationRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetJobCreationFailedNotificationRegistrationSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetJobCreationFailedNotificationRegistrationSpectraS3Request.java index a384b968b..cc8547b53 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetJobCreationFailedNotificationRegistrationSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetJobCreationFailedNotificationRegistrationSpectraS3Request.java @@ -44,7 +44,7 @@ public GetJobCreationFailedNotificationRegistrationSpectraS3Request(final String @Override public String getPath() { - return "/_rest_/job_creation_failed_notification_registration/" + this.getNotificationId().toString(); + return "/_rest_/job_creation_failed_notification_registration/" + this.getNotificationId(); } } \ No newline at end of file diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetJobCreationFailedNotificationRegistrationsSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetJobCreationFailedNotificationRegistrationsSpectraS3Request.java index 319c69ce8..bde2a6de3 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetJobCreationFailedNotificationRegistrationsSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetJobCreationFailedNotificationRegistrationsSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class GetJobCreationFailedNotificationRegistrationsSpectraS3Request extends AbstractPaginationRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetObjectCachedNotificationRegistrationSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetObjectCachedNotificationRegistrationSpectraS3Request.java index 7d3ebf76e..967c63fec 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetObjectCachedNotificationRegistrationSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetObjectCachedNotificationRegistrationSpectraS3Request.java @@ -44,7 +44,7 @@ public GetObjectCachedNotificationRegistrationSpectraS3Request(final String noti @Override public String getPath() { - return "/_rest_/object_cached_notification_registration/" + this.getNotificationId().toString(); + return "/_rest_/object_cached_notification_registration/" + this.getNotificationId(); } } \ No newline at end of file diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetObjectCachedNotificationRegistrationsSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetObjectCachedNotificationRegistrationsSpectraS3Request.java index bbe360f3c..e9d7ebdfa 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetObjectCachedNotificationRegistrationsSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetObjectCachedNotificationRegistrationsSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class GetObjectCachedNotificationRegistrationsSpectraS3Request extends AbstractPaginationRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetObjectLostNotificationRegistrationSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetObjectLostNotificationRegistrationSpectraS3Request.java index 1d8bb3eb9..b7e840c5d 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetObjectLostNotificationRegistrationSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetObjectLostNotificationRegistrationSpectraS3Request.java @@ -44,7 +44,7 @@ public GetObjectLostNotificationRegistrationSpectraS3Request(final String notifi @Override public String getPath() { - return "/_rest_/object_lost_notification_registration/" + this.getNotificationId().toString(); + return "/_rest_/object_lost_notification_registration/" + this.getNotificationId(); } } \ No newline at end of file diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetObjectLostNotificationRegistrationsSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetObjectLostNotificationRegistrationsSpectraS3Request.java index d6787585f..13d0fcee4 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetObjectLostNotificationRegistrationsSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetObjectLostNotificationRegistrationsSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class GetObjectLostNotificationRegistrationsSpectraS3Request extends AbstractPaginationRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetObjectPersistedNotificationRegistrationSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetObjectPersistedNotificationRegistrationSpectraS3Request.java index ee452f3f6..1cc004e57 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetObjectPersistedNotificationRegistrationSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetObjectPersistedNotificationRegistrationSpectraS3Request.java @@ -44,7 +44,7 @@ public GetObjectPersistedNotificationRegistrationSpectraS3Request(final String n @Override public String getPath() { - return "/_rest_/object_persisted_notification_registration/" + this.getNotificationId().toString(); + return "/_rest_/object_persisted_notification_registration/" + this.getNotificationId(); } } \ No newline at end of file diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetObjectPersistedNotificationRegistrationsSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetObjectPersistedNotificationRegistrationsSpectraS3Request.java index 5cc593b34..fabe3e549 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetObjectPersistedNotificationRegistrationsSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetObjectPersistedNotificationRegistrationsSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class GetObjectPersistedNotificationRegistrationsSpectraS3Request extends AbstractPaginationRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetPoolFailureNotificationRegistrationSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetPoolFailureNotificationRegistrationSpectraS3Request.java index 153d98088..2b43e8b08 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetPoolFailureNotificationRegistrationSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetPoolFailureNotificationRegistrationSpectraS3Request.java @@ -44,7 +44,7 @@ public GetPoolFailureNotificationRegistrationSpectraS3Request(final String notif @Override public String getPath() { - return "/_rest_/pool_failure_notification_registration/" + this.getNotificationId().toString(); + return "/_rest_/pool_failure_notification_registration/" + this.getNotificationId(); } } \ No newline at end of file diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetPoolFailureNotificationRegistrationsSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetPoolFailureNotificationRegistrationsSpectraS3Request.java index acb6a1968..1cedf1bb2 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetPoolFailureNotificationRegistrationsSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetPoolFailureNotificationRegistrationsSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class GetPoolFailureNotificationRegistrationsSpectraS3Request extends AbstractPaginationRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetStorageDomainFailureNotificationRegistrationSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetStorageDomainFailureNotificationRegistrationSpectraS3Request.java index 2465349ee..a3180e596 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetStorageDomainFailureNotificationRegistrationSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetStorageDomainFailureNotificationRegistrationSpectraS3Request.java @@ -44,7 +44,7 @@ public GetStorageDomainFailureNotificationRegistrationSpectraS3Request(final Str @Override public String getPath() { - return "/_rest_/storage_domain_failure_notification_registration/" + this.getNotificationId().toString(); + return "/_rest_/storage_domain_failure_notification_registration/" + this.getNotificationId(); } } \ No newline at end of file diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetStorageDomainFailureNotificationRegistrationsSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetStorageDomainFailureNotificationRegistrationsSpectraS3Request.java index fcec8988c..923319472 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetStorageDomainFailureNotificationRegistrationsSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetStorageDomainFailureNotificationRegistrationsSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class GetStorageDomainFailureNotificationRegistrationsSpectraS3Request extends AbstractPaginationRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetSystemFailureNotificationRegistrationSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetSystemFailureNotificationRegistrationSpectraS3Request.java index f1d6d9c1d..1e4b67ccf 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetSystemFailureNotificationRegistrationSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetSystemFailureNotificationRegistrationSpectraS3Request.java @@ -44,7 +44,7 @@ public GetSystemFailureNotificationRegistrationSpectraS3Request(final String not @Override public String getPath() { - return "/_rest_/system_failure_notification_registration/" + this.getNotificationId().toString(); + return "/_rest_/system_failure_notification_registration/" + this.getNotificationId(); } } \ No newline at end of file diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetSystemFailureNotificationRegistrationsSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetSystemFailureNotificationRegistrationsSpectraS3Request.java index 33e10e410..fa75e937b 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetSystemFailureNotificationRegistrationsSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetSystemFailureNotificationRegistrationsSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class GetSystemFailureNotificationRegistrationsSpectraS3Request extends AbstractPaginationRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetTapeFailureNotificationRegistrationSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetTapeFailureNotificationRegistrationSpectraS3Request.java index 0644a09d5..86605eb80 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetTapeFailureNotificationRegistrationSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetTapeFailureNotificationRegistrationSpectraS3Request.java @@ -44,7 +44,7 @@ public GetTapeFailureNotificationRegistrationSpectraS3Request(final String notif @Override public String getPath() { - return "/_rest_/tape_failure_notification_registration/" + this.getNotificationId().toString(); + return "/_rest_/tape_failure_notification_registration/" + this.getNotificationId(); } } \ No newline at end of file diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetTapeFailureNotificationRegistrationsSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetTapeFailureNotificationRegistrationsSpectraS3Request.java index 7ffe145f3..e6094566a 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetTapeFailureNotificationRegistrationsSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetTapeFailureNotificationRegistrationsSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class GetTapeFailureNotificationRegistrationsSpectraS3Request extends AbstractPaginationRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetTapePartitionFailureNotificationRegistrationSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetTapePartitionFailureNotificationRegistrationSpectraS3Request.java index def26fc64..7a8bc3e81 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetTapePartitionFailureNotificationRegistrationSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetTapePartitionFailureNotificationRegistrationSpectraS3Request.java @@ -44,7 +44,7 @@ public GetTapePartitionFailureNotificationRegistrationSpectraS3Request(final Str @Override public String getPath() { - return "/_rest_/tape_partition_failure_notification_registration/" + this.getNotificationId().toString(); + return "/_rest_/tape_partition_failure_notification_registration/" + this.getNotificationId(); } } \ No newline at end of file diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetTapePartitionFailureNotificationRegistrationsSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetTapePartitionFailureNotificationRegistrationsSpectraS3Request.java index 92dd166f6..f39d1170f 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetTapePartitionFailureNotificationRegistrationsSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/GetTapePartitionFailureNotificationRegistrationsSpectraS3Request.java @@ -19,7 +19,6 @@ import com.spectralogic.ds3client.networking.HttpVerb; import com.spectralogic.ds3client.commands.interfaces.AbstractPaginationRequest; import java.util.UUID; -import com.google.common.net.UrlEscapers; public class GetTapePartitionFailureNotificationRegistrationsSpectraS3Request extends AbstractPaginationRequest { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/PutDs3TargetFailureNotificationRegistrationSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/PutDs3TargetFailureNotificationRegistrationSpectraS3Request.java index f5f1b6737..615d5f36f 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/PutDs3TargetFailureNotificationRegistrationSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/PutDs3TargetFailureNotificationRegistrationSpectraS3Request.java @@ -17,7 +17,6 @@ package com.spectralogic.ds3client.commands.spectrads3.notifications; import com.spectralogic.ds3client.commands.interfaces.AbstractCreateNotificationRequest; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.HttpResponseFormatType; import com.spectralogic.ds3client.models.NamingConventionType; import com.spectralogic.ds3client.models.RequestType; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/PutJobCompletedNotificationRegistrationSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/PutJobCompletedNotificationRegistrationSpectraS3Request.java index d0c8ea453..7e9a0dd41 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/PutJobCompletedNotificationRegistrationSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/PutJobCompletedNotificationRegistrationSpectraS3Request.java @@ -17,7 +17,6 @@ package com.spectralogic.ds3client.commands.spectrads3.notifications; import com.spectralogic.ds3client.commands.interfaces.AbstractCreateNotificationRequest; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.HttpResponseFormatType; import java.util.UUID; import com.spectralogic.ds3client.models.NamingConventionType; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/PutJobCreatedNotificationRegistrationSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/PutJobCreatedNotificationRegistrationSpectraS3Request.java index f69fc1dd4..9df0be2c4 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/PutJobCreatedNotificationRegistrationSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/PutJobCreatedNotificationRegistrationSpectraS3Request.java @@ -17,7 +17,6 @@ package com.spectralogic.ds3client.commands.spectrads3.notifications; import com.spectralogic.ds3client.commands.interfaces.AbstractCreateNotificationRequest; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.HttpResponseFormatType; import com.spectralogic.ds3client.models.NamingConventionType; import com.spectralogic.ds3client.models.RequestType; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/PutJobCreationFailedNotificationRegistrationSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/PutJobCreationFailedNotificationRegistrationSpectraS3Request.java index 11b1a7280..57e61668f 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/PutJobCreationFailedNotificationRegistrationSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/PutJobCreationFailedNotificationRegistrationSpectraS3Request.java @@ -17,7 +17,6 @@ package com.spectralogic.ds3client.commands.spectrads3.notifications; import com.spectralogic.ds3client.commands.interfaces.AbstractCreateNotificationRequest; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.HttpResponseFormatType; import com.spectralogic.ds3client.models.NamingConventionType; import com.spectralogic.ds3client.models.RequestType; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/PutObjectCachedNotificationRegistrationSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/PutObjectCachedNotificationRegistrationSpectraS3Request.java index 36a0a7b7f..15e823e6e 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/PutObjectCachedNotificationRegistrationSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/PutObjectCachedNotificationRegistrationSpectraS3Request.java @@ -17,7 +17,6 @@ package com.spectralogic.ds3client.commands.spectrads3.notifications; import com.spectralogic.ds3client.commands.interfaces.AbstractCreateNotificationRequest; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.HttpResponseFormatType; import java.util.UUID; import com.spectralogic.ds3client.models.NamingConventionType; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/PutObjectLostNotificationRegistrationSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/PutObjectLostNotificationRegistrationSpectraS3Request.java index c3e9165eb..711e2a4c3 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/PutObjectLostNotificationRegistrationSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/PutObjectLostNotificationRegistrationSpectraS3Request.java @@ -17,7 +17,6 @@ package com.spectralogic.ds3client.commands.spectrads3.notifications; import com.spectralogic.ds3client.commands.interfaces.AbstractCreateNotificationRequest; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.HttpResponseFormatType; import com.spectralogic.ds3client.models.NamingConventionType; import com.spectralogic.ds3client.models.RequestType; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/PutObjectPersistedNotificationRegistrationSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/PutObjectPersistedNotificationRegistrationSpectraS3Request.java index 8a2e13976..5a1b60bb6 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/PutObjectPersistedNotificationRegistrationSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/PutObjectPersistedNotificationRegistrationSpectraS3Request.java @@ -17,7 +17,6 @@ package com.spectralogic.ds3client.commands.spectrads3.notifications; import com.spectralogic.ds3client.commands.interfaces.AbstractCreateNotificationRequest; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.HttpResponseFormatType; import java.util.UUID; import com.spectralogic.ds3client.models.NamingConventionType; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/PutPoolFailureNotificationRegistrationSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/PutPoolFailureNotificationRegistrationSpectraS3Request.java index d23682b0e..13ce56cdc 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/PutPoolFailureNotificationRegistrationSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/PutPoolFailureNotificationRegistrationSpectraS3Request.java @@ -17,7 +17,6 @@ package com.spectralogic.ds3client.commands.spectrads3.notifications; import com.spectralogic.ds3client.commands.interfaces.AbstractCreateNotificationRequest; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.HttpResponseFormatType; import com.spectralogic.ds3client.models.NamingConventionType; import com.spectralogic.ds3client.models.RequestType; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/PutStorageDomainFailureNotificationRegistrationSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/PutStorageDomainFailureNotificationRegistrationSpectraS3Request.java index 8d6698eb4..a05f719af 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/PutStorageDomainFailureNotificationRegistrationSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/PutStorageDomainFailureNotificationRegistrationSpectraS3Request.java @@ -17,7 +17,6 @@ package com.spectralogic.ds3client.commands.spectrads3.notifications; import com.spectralogic.ds3client.commands.interfaces.AbstractCreateNotificationRequest; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.HttpResponseFormatType; import com.spectralogic.ds3client.models.NamingConventionType; import com.spectralogic.ds3client.models.RequestType; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/PutSystemFailureNotificationRegistrationSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/PutSystemFailureNotificationRegistrationSpectraS3Request.java index 7f76230c5..3de6ca3ce 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/PutSystemFailureNotificationRegistrationSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/PutSystemFailureNotificationRegistrationSpectraS3Request.java @@ -17,7 +17,6 @@ package com.spectralogic.ds3client.commands.spectrads3.notifications; import com.spectralogic.ds3client.commands.interfaces.AbstractCreateNotificationRequest; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.HttpResponseFormatType; import com.spectralogic.ds3client.models.NamingConventionType; import com.spectralogic.ds3client.models.RequestType; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/PutTapeFailureNotificationRegistrationSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/PutTapeFailureNotificationRegistrationSpectraS3Request.java index ac1376f3b..1807bea52 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/PutTapeFailureNotificationRegistrationSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/PutTapeFailureNotificationRegistrationSpectraS3Request.java @@ -17,7 +17,6 @@ package com.spectralogic.ds3client.commands.spectrads3.notifications; import com.spectralogic.ds3client.commands.interfaces.AbstractCreateNotificationRequest; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.HttpResponseFormatType; import com.spectralogic.ds3client.models.NamingConventionType; import com.spectralogic.ds3client.models.RequestType; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/PutTapePartitionFailureNotificationRegistrationSpectraS3Request.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/PutTapePartitionFailureNotificationRegistrationSpectraS3Request.java index 51c58a1b9..e743744f7 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/PutTapePartitionFailureNotificationRegistrationSpectraS3Request.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/notifications/PutTapePartitionFailureNotificationRegistrationSpectraS3Request.java @@ -17,7 +17,6 @@ package com.spectralogic.ds3client.commands.spectrads3.notifications; import com.spectralogic.ds3client.commands.interfaces.AbstractCreateNotificationRequest; -import com.google.common.net.UrlEscapers; import com.spectralogic.ds3client.models.HttpResponseFormatType; import com.spectralogic.ds3client.models.NamingConventionType; import com.spectralogic.ds3client.models.RequestType; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/Ds3ClientHelpers.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/Ds3ClientHelpers.java index 9a23b6b8d..fa8ff3767 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/Ds3ClientHelpers.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/Ds3ClientHelpers.java @@ -549,7 +549,7 @@ public abstract Iterable listObjects(final String bucket, final String * that will be applied before converting. */ @SafeVarargs - public final Iterable toDs3Iterable(final Iterable objects, final Predicate... filters) { + public static Iterable toDs3Iterable(final Iterable objects, final Predicate... filters) { FluentIterable fluentIterable = FluentIterable.from(objects).filter(input -> input != null); @@ -561,13 +561,7 @@ public final Iterable toDs3Iterable(final Iterable objects, } } - return fluentIterable.transform(new Function() { - @Nullable - @Override - public Ds3Object apply(@Nullable final Contents input) { - return new Ds3Object(input.getKey(), input.getSize()); - } - }); + return fluentIterable.transform(new ContentsDs3ObjectFunction()); } /** @@ -608,4 +602,12 @@ public abstract ObjectStorageSpaceVerificationResult objectsFromBucketWillFitInD * Returns the client being wrapped */ public abstract Ds3Client getClient(); + + private static class ContentsDs3ObjectFunction implements Function { + @Nullable + @Override + public Ds3Object apply(@Nullable final Contents input) { + return new Ds3Object(input.getKey(), input.getSize()); + } + } } diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/Ds3ClientHelpersImpl.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/Ds3ClientHelpersImpl.java index c757e84a7..a47b54814 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/Ds3ClientHelpersImpl.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/Ds3ClientHelpersImpl.java @@ -220,7 +220,7 @@ public Ds3ClientHelpers.Job startReadJob(final String bucket, final Iterable objects, final ReadJobOptions options) { + private static GetBulkJobSpectraS3Request makeGetBulkJobSpectraS3Request(final String bucket, final Iterable objects, final ReadJobOptions options) { return new GetBulkJobSpectraS3Request(bucket, objects) .withPriority(options.getPriority()) .withName(options.getName()); diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/FileSystemHelperImpl.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/FileSystemHelperImpl.java index 16ecbc61b..e816bfd89 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/FileSystemHelperImpl.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/FileSystemHelperImpl.java @@ -137,9 +137,9 @@ public ObjectStorageSpaceVerificationResult objectsFromBucketWillFitInDirectory( return new ObjectStorageSpaceVerificationResult(verificationStatus, requiredSpace, availableSpace, ioException); } - private long getRequiredSpaceForObjects(final Ds3ClientHelpers helpers, - final String bucketName, - final Collection objectNames) + private static long getRequiredSpaceForObjects(final Ds3ClientHelpers helpers, + final String bucketName, + final Collection objectNames) throws IOException { long result = 0; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/JobImpl.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/JobImpl.java index f63fd24f6..50e914fcd 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/JobImpl.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/JobImpl.java @@ -157,7 +157,7 @@ protected EventDispatcher eventDispatcher() { return transferStrategyBuilder.eventDispatcher(); } - protected void cancel(final TransferStrategy transferStrategy) throws IOException { + protected static void cancel(final TransferStrategy transferStrategy) throws IOException { if (transferStrategy != null) { transferStrategy.cancel(); } diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/ObjectPartTrackerImpl.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/ObjectPartTrackerImpl.java index e046dcb41..ebea3d373 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/ObjectPartTrackerImpl.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/ObjectPartTrackerImpl.java @@ -100,23 +100,43 @@ private synchronized void validateParts() { private void onDataTransferred(final long size) { for (final DataTransferredListener listener : this.dataTransferredListeners) { - eventRunner.emitEvent(new Runnable() { - @Override - public void run() { - listener.dataTransferred(size); - } - }); + eventRunner.emitEvent(new DataTransferredRunnable(listener, size)); } } private void onObjectCompleted() { for (final ObjectCompletedListener listener : this.objectCompletedListeners) { - eventRunner.emitEvent(new Runnable() { - @Override - public void run() { - listener.objectCompleted(name); - } - }); + eventRunner.emitEvent(new ObjectCompletedRunnable(listener, name)); + } + } + + private static class ObjectCompletedRunnable implements Runnable { + private final ObjectCompletedListener listener; + private final String name; + + public ObjectCompletedRunnable(final ObjectCompletedListener listener, final String name) { + this.listener = listener; + this.name = name; + } + + @Override + public void run() { + listener.objectCompleted(name); + } + } + + private static class DataTransferredRunnable implements Runnable { + private final DataTransferredListener listener; + private final long size; + + public DataTransferredRunnable(final DataTransferredListener listener, final long size) { + this.listener = listener; + this.size = size; + } + + @Override + public void run() { + listener.dataTransferred(size); } } } diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/pagination/GetBucketKeyLoaderFactory.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/pagination/GetBucketKeyLoaderFactory.java index 65a18553b..f90681553 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/pagination/GetBucketKeyLoaderFactory.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/pagination/GetBucketKeyLoaderFactory.java @@ -38,19 +38,9 @@ public Iterable apply(@Nullable final ListBucketResult input) { @Override public Iterable apply(@Nullable final ListBucketResult result) { final FluentIterable contentIterable = FluentIterable.from(result.getObjects()) - .transform(new Function() { - @Override - public FileSystemKey apply(@Nullable final Contents input) { - return new FileSystemKey(input); - } - }); + .transform(new ContentsFileSystemKeyFunction()); return FluentIterable.from(result.getCommonPrefixes()) - .transform( new Function() { - @Override - public FileSystemKey apply(@Nullable final CommonPrefixes input) { - return new FileSystemKey(input); - } - }) + .transform(new CommonPrefixesFileSystemKeyFunction()) .append(contentIterable); } }; @@ -80,4 +70,18 @@ public GetBucketKeyLoaderFactory(final Ds3Client client, final String bucket, fi public LazyIterable.LazyLoader create() { return new GetBucketKeyLoader<>(client, bucket, keyPrefix, delimiter, nextMarker, maxKeys, defaultListObjectsRetries, function); } + + private static class ContentsFileSystemKeyFunction implements Function { + @Override + public FileSystemKey apply(@Nullable final Contents input) { + return new FileSystemKey(input); + } + } + + private static class CommonPrefixesFileSystemKeyFunction implements Function { + @Override + public FileSystemKey apply(@Nullable final CommonPrefixes input) { + return new FileSystemKey(input); + } + } } diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/pagination/GetBucketLoaderFactory.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/pagination/GetBucketLoaderFactory.java index cd01265a1..5899b6e8f 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/pagination/GetBucketLoaderFactory.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/pagination/GetBucketLoaderFactory.java @@ -23,7 +23,7 @@ * This class is a child of {@link GetBucketKeyLoaderFactory} * that provides a sane default for mapping {@link com.spectralogic.ds3client.models.ListBucketResult} * "/" will be used for the delimiter, and {@link com.spectralogic.ds3client.models.ListBucketResult} will be mapped to - * {@link LazyIterable.LazyLoader} which was the old behavior. + * a {@link com.spectralogic.ds3client.utils.collections.LazyIterable.LazyLoader} of {@link Contents} which was the old behavior. */ public class GetBucketLoaderFactory extends GetBucketKeyLoaderFactory { @@ -41,7 +41,7 @@ public GetBucketLoaderFactory(final Ds3Client client, final String bucket, final } /** - * @return {@link LazyIterable.LazyLoader} + * @return a {@link com.spectralogic.ds3client.utils.collections.LazyIterable.LazyLoader} of {@link Contents} */ @Override public LazyIterable.LazyLoader create() { diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/strategy/blobstrategy/PutSequentialBlobStrategy.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/strategy/blobstrategy/PutSequentialBlobStrategy.java index dfff60cda..0217a632c 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/strategy/blobstrategy/PutSequentialBlobStrategy.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/strategy/blobstrategy/PutSequentialBlobStrategy.java @@ -16,7 +16,6 @@ package com.spectralogic.ds3client.helpers.strategy.blobstrategy; import com.google.common.base.Function; -import com.google.common.base.Predicate; import com.google.common.collect.FluentIterable; import com.spectralogic.ds3client.Ds3Client; import com.spectralogic.ds3client.commands.spectrads3.AllocateJobChunkSpectraS3Request; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/strategy/channelstrategy/SequentialChannelStrategy.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/strategy/channelstrategy/SequentialChannelStrategy.java index 07872bc18..9b4950431 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/strategy/channelstrategy/SequentialChannelStrategy.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/strategy/channelstrategy/SequentialChannelStrategy.java @@ -20,7 +20,6 @@ import com.spectralogic.ds3client.helpers.Ds3ClientHelpers; import com.spectralogic.ds3client.helpers.channelbuilders.ReadOnlySeekableByteChannel; import com.spectralogic.ds3client.models.BulkObject; -import com.spectralogic.ds3client.models.JobRequestType; import com.spectralogic.ds3client.models.MasterObjectList; import java.io.IOException; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/strategy/transferstrategy/AbstractTransferStrategy.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/strategy/transferstrategy/AbstractTransferStrategy.java index 1b638d770..249a752bd 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/strategy/transferstrategy/AbstractTransferStrategy.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/strategy/transferstrategy/AbstractTransferStrategy.java @@ -227,7 +227,7 @@ private FailureEvent makeFailureEvent(final FailureEvent.FailureActivity failure .build(); } - private String labelForChunk(final Objects chunk) { + private static String labelForChunk(final Objects chunk) { try { return chunk.getObjects().get(0).getName(); } catch (final Throwable t) { @@ -248,7 +248,7 @@ public void close() { try { if(!executorService.awaitTermination(10, TimeUnit.SECONDS)) { executorService.shutdownNow(); - }; + } } catch (final InterruptedException e) { executorService.shutdownNow(); } diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/strategy/transferstrategy/ChecksumObserver.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/strategy/transferstrategy/ChecksumObserver.java index ab1e902f0..08f5b443e 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/strategy/transferstrategy/ChecksumObserver.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/strategy/transferstrategy/ChecksumObserver.java @@ -28,12 +28,7 @@ public class ChecksumObserver extends AbstractObserver { * @param checksumListener An instance of {@link ChecksumListener} wrapped in an event updater. */ public ChecksumObserver(final ChecksumListener checksumListener) { - super(new UpdateStrategy() { - @Override - public void update(final ChecksumEvent eventData) { - checksumListener.value(eventData.getBlob(), eventData.getChecksumType(), eventData.getChecksum()); - } - }); + super(new ChecksumEventUpdateStrategy(checksumListener)); Preconditions.checkNotNull(checksumListener, "checksumListener may not be null."); } @@ -45,4 +40,17 @@ public void update(final ChecksumEvent eventData) { public ChecksumObserver(final UpdateStrategy updateStrategy) { super(updateStrategy); } + + private static class ChecksumEventUpdateStrategy implements UpdateStrategy { + private final ChecksumListener checksumListener; + + public ChecksumEventUpdateStrategy(final ChecksumListener checksumListener) { + this.checksumListener = checksumListener; + } + + @Override + public void update(final ChecksumEvent eventData) { + checksumListener.value(eventData.getBlob(), eventData.getChecksumType(), eventData.getChecksum()); + } + } } diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/strategy/transferstrategy/DataTransferredObserver.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/strategy/transferstrategy/DataTransferredObserver.java index 853b951e2..7a271a47b 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/strategy/transferstrategy/DataTransferredObserver.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/strategy/transferstrategy/DataTransferredObserver.java @@ -20,12 +20,7 @@ public class DataTransferredObserver extends AbstractObserver { public DataTransferredObserver(final DataTransferredListener dataTransferredListener) { - super(new UpdateStrategy() { - @Override - public void update(final Long eventData) { - dataTransferredListener.dataTransferred(eventData); - } - }); + super(new LongUpdateStrategy(dataTransferredListener)); Preconditions.checkNotNull(dataTransferredListener, "dataTransferredListener may not be null."); } @@ -33,4 +28,17 @@ public void update(final Long eventData) { public DataTransferredObserver(final UpdateStrategy updateStrategy) { super(updateStrategy); } + + private static class LongUpdateStrategy implements UpdateStrategy { + private final DataTransferredListener dataTransferredListener; + + public LongUpdateStrategy(final DataTransferredListener dataTransferredListener) { + this.dataTransferredListener = dataTransferredListener; + } + + @Override + public void update(final Long eventData) { + dataTransferredListener.dataTransferred(eventData); + } + } } diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/strategy/transferstrategy/FailureEventObserver.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/strategy/transferstrategy/FailureEventObserver.java index c527ddbaf..1b274f776 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/strategy/transferstrategy/FailureEventObserver.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/strategy/transferstrategy/FailureEventObserver.java @@ -28,12 +28,7 @@ public class FailureEventObserver extends AbstractObserver { * @param failureEventListener An instance of {@link FailureEventListener} wrapped in an event updater. */ public FailureEventObserver(final FailureEventListener failureEventListener) { - super(new UpdateStrategy() { - @Override - public void update(final FailureEvent eventData) { - failureEventListener.onFailure(eventData); - } - }); + super(new FailureEventUpdateStrategy(failureEventListener)); Preconditions.checkNotNull(failureEventListener, "failureEventListener may not be null."); } @@ -45,4 +40,17 @@ public void update(final FailureEvent eventData) { public FailureEventObserver(final UpdateStrategy updateStrategy) { super(updateStrategy); } + + private static class FailureEventUpdateStrategy implements UpdateStrategy { + private final FailureEventListener failureEventListener; + + public FailureEventUpdateStrategy(final FailureEventListener failureEventListener) { + this.failureEventListener = failureEventListener; + } + + @Override + public void update(final FailureEvent eventData) { + failureEventListener.onFailure(eventData); + } + } } diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/strategy/transferstrategy/GetJobNetworkFailureRetryDecorator.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/strategy/transferstrategy/GetJobNetworkFailureRetryDecorator.java index 8475b33de..9b2d7dde9 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/strategy/transferstrategy/GetJobNetworkFailureRetryDecorator.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/strategy/transferstrategy/GetJobNetworkFailureRetryDecorator.java @@ -133,7 +133,7 @@ private ImmutableCollection initializeRanges(final BulkObject blob, final return ranges; } - private ImmutableCollection adjustRangesForBlobOffset(final ImmutableCollection ranges, final BulkObject blob) { + private static ImmutableCollection adjustRangesForBlobOffset(final ImmutableCollection ranges, final BulkObject blob) { if (Guard.isNullOrEmpty(ranges) || ranges.size() > 1) { return ranges; } @@ -145,15 +145,15 @@ private ImmutableCollection adjustRangesForBlobOffset(final ImmutableColl return ImmutableList.of(new Range(firstRange.getStart() + blobOffset, firstRange.getEnd() + blobOffset)); } - private ImmutableCollection updateRanges(final ImmutableCollection ranges, - final long numBytesTransferred, - final Long numBytesToTransfer) + private static ImmutableCollection updateRanges(final ImmutableCollection ranges, + final long numBytesTransferred, + final Long numBytesToTransfer) { return RangeHelper.replaceRange(ranges, numBytesTransferred, numBytesToTransfer); } - private Long initializeNumBytesToTransfer(final TransferState existingTransferState, - final ImmutableCollection ranges) + private static Long initializeNumBytesToTransfer(final TransferState existingTransferState, + final ImmutableCollection ranges) { Long numBytesToTransfer = existingTransferState.getNumBytesToTransfer(); @@ -164,7 +164,7 @@ private Long initializeNumBytesToTransfer(final TransferState existingTransferSt return numBytesToTransfer; } - private class TransferState { + private static class TransferState { private final ImmutableCollection ranges; private final Long numBytesToTransfer; private final Long destinationChannelOffset; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/strategy/transferstrategy/MetaDataReceivedObserver.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/strategy/transferstrategy/MetaDataReceivedObserver.java index 1ddf8f356..96f759789 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/strategy/transferstrategy/MetaDataReceivedObserver.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/strategy/transferstrategy/MetaDataReceivedObserver.java @@ -30,12 +30,7 @@ public class MetaDataReceivedObserver extends AbstractObserver { * updater. */ public MetaDataReceivedObserver(final MetadataReceivedListener metadataReceivedListener) { - super(new UpdateStrategy() { - @Override - public void update(final MetadataEvent eventData) { - metadataReceivedListener.metadataReceived(eventData.getObjectName(), eventData.getMetadata()); - } - }); + super(new MetadataEventUpdateStrategy(metadataReceivedListener)); Preconditions.checkNotNull(metadataReceivedListener, "metadataReceivedListener may not be null."); @@ -68,4 +63,17 @@ public int hashCode() { result = 31 * result + (metadataReceivedListener != null ? metadataReceivedListener.hashCode() : 0); return result; } + + private static class MetadataEventUpdateStrategy implements UpdateStrategy { + private final MetadataReceivedListener metadataReceivedListener; + + public MetadataEventUpdateStrategy(final MetadataReceivedListener metadataReceivedListener) { + this.metadataReceivedListener = metadataReceivedListener; + } + + @Override + public void update(final MetadataEvent eventData) { + metadataReceivedListener.metadataReceived(eventData.getObjectName(), eventData.getMetadata()); + } + } } diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/strategy/transferstrategy/ObjectCompletedObserver.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/strategy/transferstrategy/ObjectCompletedObserver.java index a67bdc351..bbfbef085 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/strategy/transferstrategy/ObjectCompletedObserver.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/strategy/transferstrategy/ObjectCompletedObserver.java @@ -27,12 +27,7 @@ public class ObjectCompletedObserver extends AbstractObserver { * updater. */ public ObjectCompletedObserver(final ObjectCompletedListener objectCompletedListener) { - super(new UpdateStrategy() { - @Override - public void update(final String eventData) { - objectCompletedListener.objectCompleted(eventData); - } - }); + super(new StringUpdateStrategy(objectCompletedListener)); Preconditions.checkNotNull(objectCompletedListener, "objectCompletedListener may not be null"); } @@ -44,4 +39,17 @@ public void update(final String eventData) { public ObjectCompletedObserver(final UpdateStrategy updateStrategy) { super(updateStrategy); } + + private static class StringUpdateStrategy implements UpdateStrategy { + private final ObjectCompletedListener objectCompletedListener; + + public StringUpdateStrategy(final ObjectCompletedListener objectCompletedListener) { + this.objectCompletedListener = objectCompletedListener; + } + + @Override + public void update(final String eventData) { + objectCompletedListener.objectCompleted(eventData); + } + } } diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/strategy/transferstrategy/SingleThreadedTransferStrategy.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/strategy/transferstrategy/SingleThreadedTransferStrategy.java index 9f6456d32..11864ba8e 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/strategy/transferstrategy/SingleThreadedTransferStrategy.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/strategy/transferstrategy/SingleThreadedTransferStrategy.java @@ -15,7 +15,6 @@ package com.spectralogic.ds3client.helpers.strategy.transferstrategy; -import com.google.common.util.concurrent.MoreExecutors; import com.spectralogic.ds3client.Ds3Client; import com.spectralogic.ds3client.helpers.JobState; import com.spectralogic.ds3client.helpers.events.FailureEvent; diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/strategy/transferstrategy/TransferStrategyBuilder.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/strategy/transferstrategy/TransferStrategyBuilder.java index 855b9896d..26b2d8cc5 100644 --- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/strategy/transferstrategy/TransferStrategyBuilder.java +++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/strategy/transferstrategy/TransferStrategyBuilder.java @@ -149,7 +149,6 @@ public final class TransferStrategyBuilder { * @return The instance of this builder, with the intent that you can string together the behaviors you wish, * for example: *
-     *     {@code
      *     final PutBulkJobSpectraS3Request request = new PutBulkJobSpectraS3Request(BUCKET_NAME, Lists.newArrayList(objectsToWrite));
      *     final PutBulkJobSpectraS3Response putBulkJobSpectraS3Response = client.putBulkJobSpectraS3(request);
      *
@@ -163,9 +162,9 @@ public final class TransferStrategyBuilder {
      *                                                                       masterObjectList,
      *                                                                       eventDispatcher,
      *                                                                       new MaxChunkAttemptsRetryBehavior(5),
-     *                                                                       new ClientDefinedChunkAttemptRetryDelayBehavior(1, eventDispatcher),
+     *                                                                       new ClientDefinedChunkAttemptRetryDelayBehavior(1, eventDispatcher,
      *                                                                           new Monitorable() {
-     *                                                                               @Override
+     *                                                                               @Override
      *                                                                                   public void monitor() {
      *                                                                                       numChunkAllocationAttempts.incrementAndGet();
      *                                                                                   }
@@ -227,8 +226,8 @@ public TransferStrategyBuilder withTransferRetryDecorator(final TransferRetryDec
     /**
      * The transfer function to use when putting an object to a Black Pearl when the value in
      * {@link TransferStrategyBuilder#withChecksumType(ChecksumType.Type)} is not
-     * {@link ChecksumType.None}.  This builder will make a checksum function of the correct type
-     * if you specify a checksum type other than {@link ChecksumType.None} but do not specify a
+     * {@link com.spectralogic.ds3client.models.ChecksumType.Type#NONE}.  This builder will make a checksum function of the correct type
+     * if you specify a checksum type other than {@link com.spectralogic.ds3client.models.ChecksumType.Type#NONE} but do not specify a
      * checksum function.
      * @return The instance of this builder, with the intent that you can string together the behaviors you wish.
      */
@@ -238,7 +237,7 @@ public TransferStrategyBuilder withChecksumFunction(final ChecksumFunction check
     }
 
     /**
-     * The {@link ChecksumType.None} you would like to compute and include in the payload sent to a
+     * The {@link com.spectralogic.ds3client.models.ChecksumType.Type#NONE} you would like to compute and include in the payload sent to a
      * Black Pearl when putting an object.
      * @return The instance of this builder, with the intent that you can string together the behaviors you wish.
      */
@@ -716,7 +715,7 @@ public void objectCompleted(final String name) {
         return jobPartTracker;
     }
 
-    private ImmutableList getBlobs(final List chunks) {
+    private static ImmutableList getBlobs(final List chunks) {
         final ImmutableList.Builder builder = ImmutableList.builder();
         for (final Objects objects : chunks) {
             builder.addAll(objects.getObjects());
@@ -725,7 +724,8 @@ private ImmutableList getBlobs(final List chunks) {
     }
 
     private void makeDefaultChecksumFunction() {
-        final ChecksumFunction newChecksumFunction = new ChecksumFunction() {
+
+        checksumFunction = new ChecksumFunction() {
             @Override
             public String compute(final BulkObject obj, final ByteChannel channel) {
                 String checksum = null;
@@ -756,8 +756,6 @@ public String compute(final BulkObject obj, final ByteChannel channel) {
                 return checksum;
             }
         };
-
-        checksumFunction = newChecksumFunction;
     }
 
     private TransferStrategy makeRandomAccessPutTransferStrategy() {
diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/strategy/transferstrategy/WaitingForChunksObserver.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/strategy/transferstrategy/WaitingForChunksObserver.java
index f350dfc1a..455bdd9cd 100644
--- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/strategy/transferstrategy/WaitingForChunksObserver.java
+++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/strategy/transferstrategy/WaitingForChunksObserver.java
@@ -25,12 +25,7 @@
  */
 public class WaitingForChunksObserver extends AbstractObserver {
     public WaitingForChunksObserver(final WaitingForChunksListener waitingForChunksListener) {
-        super(new UpdateStrategy() {
-            @Override
-            public void update(final Integer eventData) {
-                waitingForChunksListener.waiting(eventData);
-            }
-        });
+        super(new IntegerUpdateStrategy(waitingForChunksListener));
 
         Preconditions.checkNotNull(waitingForChunksListener, "waitingForChunksListener may not be null.");
     }
@@ -38,4 +33,17 @@ public void update(final Integer eventData) {
     public WaitingForChunksObserver(final UpdateStrategy updateStrategy) {
         super(updateStrategy);
     }
+
+    private static class IntegerUpdateStrategy implements UpdateStrategy {
+        private final WaitingForChunksListener waitingForChunksListener;
+
+        public IntegerUpdateStrategy(final WaitingForChunksListener waitingForChunksListener) {
+            this.waitingForChunksListener = waitingForChunksListener;
+        }
+
+        @Override
+        public void update(final Integer eventData) {
+            waitingForChunksListener.waiting(eventData);
+        }
+    }
 }
diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/models/BulkObject.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/models/BulkObject.java
index 6c6b0f5bc..8c05fefcb 100644
--- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/models/BulkObject.java
+++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/models/BulkObject.java
@@ -168,7 +168,7 @@ && nullableEquals(this.getName(), bulkObject.getName())
      * Tests if two objects are equal, and handles the case if either or both objects are null
      */
     protected static boolean nullableEquals(final Object obj1, final Object obj2) {
-        return obj1 == null && obj2 == null || obj1 != null && obj2 != null && obj1.equals(obj2);
+        return obj1 == null && obj2 == null || obj1 != null && obj1.equals(obj2);
     }
 
     @Override
diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/models/CacheFilesystem.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/models/CacheFilesystem.java
index 6d6a80657..525c2f924 100644
--- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/models/CacheFilesystem.java
+++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/models/CacheFilesystem.java
@@ -45,6 +45,9 @@ public class CacheFilesystem {
     @JsonProperty("MaxPercentUtilizationOfFilesystem")
     private Double maxPercentUtilizationOfFilesystem;
 
+    @JsonProperty("NeedsReconcile")
+    private boolean needsReconcile;
+
     @JsonProperty("NodeId")
     private UUID nodeId;
 
@@ -121,6 +124,15 @@ public void setMaxPercentUtilizationOfFilesystem(final Double maxPercentUtilizat
     }
 
 
+    public boolean getNeedsReconcile() {
+        return this.needsReconcile;
+    }
+
+    public void setNeedsReconcile(final boolean needsReconcile) {
+        this.needsReconcile = needsReconcile;
+    }
+
+
     public UUID getNodeId() {
         return this.nodeId;
     }
diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/models/ChecksumType.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/models/ChecksumType.java
index e4e8e0e16..4e2ef702d 100644
--- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/models/ChecksumType.java
+++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/models/ChecksumType.java
@@ -18,6 +18,7 @@
 
 import org.apache.commons.codec.binary.Base64;
 import java.nio.charset.Charset;
+import java.nio.charset.StandardCharsets;
 
 public abstract class ChecksumType {
 
@@ -85,7 +86,7 @@ public Value(final String hash) {
 
         @Override
         public  T match(final MatchHandler handler) throws E {
-            return handler.value(this.hash.getBytes(Charset.forName("UTF-8")));
+            return handler.value(this.hash.getBytes(StandardCharsets.UTF_8));
         }
     }
 }
diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/models/JobCreationFailed.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/models/JobCreationFailed.java
new file mode 100644
index 000000000..1a98ea59a
--- /dev/null
+++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/models/JobCreationFailed.java
@@ -0,0 +1,106 @@
+/*
+ * ******************************************************************************
+ *   Copyright 2014-2019 Spectra Logic Corporation. All Rights Reserved.
+ *   Licensed under the Apache License, Version 2.0 (the "License"). You may not use
+ *   this file except in compliance with the License. A copy of the License is located at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   or in the "license" file accompanying this file.
+ *   This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ *   CONDITIONS OF ANY KIND, either express or implied. See the License for the
+ *   specific language governing permissions and limitations under the License.
+ * ****************************************************************************
+ */
+
+// This code is auto-generated, do not modify
+package com.spectralogic.ds3client.models;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
+import java.util.Date;
+import java.util.UUID;
+
+@JacksonXmlRootElement(namespace = "Data")
+public class JobCreationFailed {
+
+    // Variables
+    @JsonProperty("Date")
+    private Date date;
+
+    @JsonProperty("ErrorMessage")
+    private String errorMessage;
+
+    @JsonProperty("Id")
+    private UUID id;
+
+    @JsonProperty("TapeBarCodes")
+    private String tapeBarCodes;
+
+    @JsonProperty("Type")
+    private JobCreationFailedType type;
+
+    @JsonProperty("UserName")
+    private String userName;
+
+    // Constructor
+    public JobCreationFailed() {
+        //pass
+    }
+
+    // Getters and Setters
+    
+    public Date getDate() {
+        return this.date;
+    }
+
+    public void setDate(final Date date) {
+        this.date = date;
+    }
+
+
+    public String getErrorMessage() {
+        return this.errorMessage;
+    }
+
+    public void setErrorMessage(final String errorMessage) {
+        this.errorMessage = errorMessage;
+    }
+
+
+    public UUID getId() {
+        return this.id;
+    }
+
+    public void setId(final UUID id) {
+        this.id = id;
+    }
+
+
+    public String getTapeBarCodes() {
+        return this.tapeBarCodes;
+    }
+
+    public void setTapeBarCodes(final String tapeBarCodes) {
+        this.tapeBarCodes = tapeBarCodes;
+    }
+
+
+    public JobCreationFailedType getType() {
+        return this.type;
+    }
+
+    public void setType(final JobCreationFailedType type) {
+        this.type = type;
+    }
+
+
+    public String getUserName() {
+        return this.userName;
+    }
+
+    public void setUserName(final String userName) {
+        this.userName = userName;
+    }
+
+}
\ No newline at end of file
diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/models/JobCreationFailedList.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/models/JobCreationFailedList.java
new file mode 100644
index 000000000..36e50009e
--- /dev/null
+++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/models/JobCreationFailedList.java
@@ -0,0 +1,48 @@
+/*
+ * ******************************************************************************
+ *   Copyright 2014-2019 Spectra Logic Corporation. All Rights Reserved.
+ *   Licensed under the Apache License, Version 2.0 (the "License"). You may not use
+ *   this file except in compliance with the License. A copy of the License is located at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   or in the "license" file accompanying this file.
+ *   This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ *   CONDITIONS OF ANY KIND, either express or implied. See the License for the
+ *   specific language governing permissions and limitations under the License.
+ * ****************************************************************************
+ */
+
+// This code is auto-generated, do not modify
+package com.spectralogic.ds3client.models;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
+import java.util.List;
+import java.util.ArrayList;
+import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
+
+@JacksonXmlRootElement(namespace = "Data")
+public class JobCreationFailedList {
+
+    // Variables
+    @JsonProperty("JobCreationFailed")
+    @JacksonXmlElementWrapper(useWrapping = false)
+    private List jobCreationFaileds = new ArrayList<>();
+
+    // Constructor
+    public JobCreationFailedList() {
+        //pass
+    }
+
+    // Getters and Setters
+    
+    public List getJobCreationFaileds() {
+        return this.jobCreationFaileds;
+    }
+
+    public void setJobCreationFaileds(final List jobCreationFaileds) {
+        this.jobCreationFaileds = jobCreationFaileds;
+    }
+
+}
\ No newline at end of file
diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/models/JobCreationFailedType.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/models/JobCreationFailedType.java
new file mode 100644
index 000000000..5f0d8881d
--- /dev/null
+++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/models/JobCreationFailedType.java
@@ -0,0 +1,21 @@
+/*
+ * ******************************************************************************
+ *   Copyright 2014-2019 Spectra Logic Corporation. All Rights Reserved.
+ *   Licensed under the Apache License, Version 2.0 (the "License"). You may not use
+ *   this file except in compliance with the License. A copy of the License is located at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   or in the "license" file accompanying this file.
+ *   This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ *   CONDITIONS OF ANY KIND, either express or implied. See the License for the
+ *   specific language governing permissions and limitations under the License.
+ * ****************************************************************************
+ */
+
+// This code is auto-generated, do not modify
+package com.spectralogic.ds3client.models;
+
+public enum JobCreationFailedType {
+    TAPES_MUST_BE_ONLINED
+}
\ No newline at end of file
diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/models/TapeDriveType.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/models/TapeDriveType.java
index 8f4f01a48..816b51049 100644
--- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/models/TapeDriveType.java
+++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/models/TapeDriveType.java
@@ -26,5 +26,6 @@ public enum TapeDriveType {
     TS1140,
     TS1150,
     TS1155,
-    TS1160
+    TS1160,
+    TS1170
 }
\ No newline at end of file
diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/models/bulk/Ds3ObjectList.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/models/bulk/Ds3ObjectList.java
index c6e941359..ccb58ad6f 100644
--- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/models/bulk/Ds3ObjectList.java
+++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/models/bulk/Ds3ObjectList.java
@@ -16,11 +16,7 @@
 package com.spectralogic.ds3client.models.bulk;
 
 import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
 import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
-import com.spectralogic.ds3client.models.Priority;
-import com.spectralogic.ds3client.models.JobChunkClientProcessingOrderGuarantee;
-import com.spectralogic.ds3client.models.WriteOptimization;
 import com.spectralogic.ds3client.utils.collections.StreamWrapper;
 
 import java.util.stream.Stream;
diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/models/bulk/PartialDs3Object.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/models/bulk/PartialDs3Object.java
index 7d3210703..077aaeb40 100644
--- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/models/bulk/PartialDs3Object.java
+++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/models/bulk/PartialDs3Object.java
@@ -53,9 +53,7 @@ public int hashCode() {
     public boolean equals(final Object obj) {
         if (obj instanceof PartialDs3Object) {
             final PartialDs3Object partialDs3Object = (PartialDs3Object) obj;
-            if (super.equals(obj) && this.getRange().equals(partialDs3Object.getRange())) {
-                return true;
-            }
+            return super.equals(obj) && this.getRange().equals(partialDs3Object.getRange());
         }
         return false;
     }
diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/models/common/Range.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/models/common/Range.java
index 34f9d6db3..604c78647 100644
--- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/models/common/Range.java
+++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/models/common/Range.java
@@ -65,9 +65,7 @@ public int hashCode() {
     public boolean equals(final Object obj) {
         if (obj instanceof Range) {
             final Range range = (Range) obj;
-            if (range.start == this.start && range.end == this.end) {
-                return true;
-            }
+            return range.start == this.start && range.end == this.end;
         }
         return false;
     }
diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/networking/HashGeneratingMatchHandler.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/networking/HashGeneratingMatchHandler.java
index e5f0f7e8d..fdc5fcc9c 100644
--- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/networking/HashGeneratingMatchHandler.java
+++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/networking/HashGeneratingMatchHandler.java
@@ -21,6 +21,7 @@
 import java.io.IOException;
 import java.io.InputStream;
 import java.nio.charset.Charset;
+import java.nio.charset.StandardCharsets;
 
 class HashGeneratingMatchHandler implements ChecksumType.MatchHandler {
     private static final int READ_BUFFER_SIZE = 1024;
@@ -51,7 +52,7 @@ public String compute() throws IOException {
 
     @Override
     public String value(final byte[] hash) throws IOException {
-        return new String(hash, Charset.forName("UTF-8"));
+        return new String(hash, StandardCharsets.UTF_8);
     }
     
     private String hashInputStream(final Hasher digest, final InputStream stream) throws IOException {
@@ -71,14 +72,14 @@ private String hashInputStream(final Hasher digest, final InputStream stream) th
         return digest.digest();
     }
 
-    private Hasher getHasher(final ChecksumType.Type checksumType) {
+    private static Hasher getHasher(final ChecksumType.Type checksumType) {
         switch (checksumType) {
             case MD5: return new MD5Hasher();
             case SHA_256: return new SHA256Hasher();
             case SHA_512: return new SHA512Hasher();
             case CRC_32: return new CRC32Hasher();
             case CRC_32C: return new CRC32CHasher();
-            default: throw new RuntimeException("Unknown checksum type " + checksumType.toString());
+            default: throw new RuntimeException("Unknown checksum type " + checksumType);
         }
     }
 }
diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/serializer/XmlOutput.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/serializer/XmlOutput.java
index 94c22ef3b..5c94d8af4 100644
--- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/serializer/XmlOutput.java
+++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/serializer/XmlOutput.java
@@ -28,7 +28,6 @@
 
 import java.io.IOException;
 import java.io.InputStream;
-import java.util.Properties;
 
 public final class XmlOutput {
     private static final JacksonXmlModule module;
diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/utils/ByteArraySeekableByteChannel.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/utils/ByteArraySeekableByteChannel.java
index c1f401be9..5be828ca6 100644
--- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/utils/ByteArraySeekableByteChannel.java
+++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/utils/ByteArraySeekableByteChannel.java
@@ -19,6 +19,7 @@
 import java.nio.ByteBuffer;
 import java.nio.channels.SeekableByteChannel;
 import java.nio.charset.Charset;
+import java.nio.charset.StandardCharsets;
 import java.util.Arrays;
 
 public class ByteArraySeekableByteChannel implements SeekableByteChannel {
@@ -101,7 +102,7 @@ public byte[] toByteArray() {
     
     @Override
     public String toString() {
-        return this.toString(Charset.forName("UTF-8"));
+        return this.toString(StandardCharsets.UTF_8);
     }
     
     public String toString(final Charset charset) {
diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/utils/JobUtils.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/utils/JobUtils.java
index e949f11fd..952078465 100644
--- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/utils/JobUtils.java
+++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/utils/JobUtils.java
@@ -34,8 +34,8 @@ public final class JobUtils {
     private JobUtils() {}
 
     /**
-     * Finds all the jobs that have any of the files in {@param fileNames} contained in them.  When {@param type} is PUT
-     * only one job ID should be returned.  It is possible that when {@param type} is GET that there could be multiple
+     * Finds all the jobs that have any of the files in {@code fileNames} contained in them.  When {@code type} is PUT
+     * only one job ID should be returned.  It is possible that when {@code type} is GET that there could be multiple
      * job IDs returned.
      */
     public static List findJob(final Ds3Client client, final JobRequestType type, final String bucketName, final Set fileNames) throws IOException {
diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/utils/Signature.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/utils/Signature.java
index 1d188b331..dca03d41b 100644
--- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/utils/Signature.java
+++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/utils/Signature.java
@@ -24,6 +24,7 @@
 import org.slf4j.LoggerFactory;
 
 import java.nio.charset.Charset;
+import java.nio.charset.StandardCharsets;
 import java.security.SignatureException;
 import java.util.Collection;
 import java.util.Map;
@@ -53,14 +54,14 @@ public static String calculateRFC2104HMAC(final String data, final String key)
         final String result;
         try {
             // get an hmac_sha1 key from the raw key bytes
-            final SecretKeySpec signingKey = new SecretKeySpec(key.getBytes(Charset.forName("UTF-8")), HMAC_SHA1_ALGORITHM);
+            final SecretKeySpec signingKey = new SecretKeySpec(key.getBytes(StandardCharsets.UTF_8), HMAC_SHA1_ALGORITHM);
 
             // get an hmac_sha1 Mac instance and initialize with the signing key
             final Mac mac = Mac.getInstance(HMAC_SHA1_ALGORITHM);
             mac.init(signingKey);
 
             // compute the hmac on input data bytes
-            final byte[] rawHmac = mac.doFinal(data.getBytes(Charset.forName("UTF-8")));
+            final byte[] rawHmac = mac.doFinal(data.getBytes(StandardCharsets.UTF_8));
             result = Base64.encodeBase64String(rawHmac);
         } catch (final Exception e) {
             throw new SignatureException("Failed to generate HMAC: " + e.getMessage(), e);
diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/utils/collections/LazyIterable.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/utils/collections/LazyIterable.java
index 6da79bb4e..8e9c664b7 100644
--- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/utils/collections/LazyIterable.java
+++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/utils/collections/LazyIterable.java
@@ -59,7 +59,7 @@ public interface LazyLoader {
         Iterable getNextValues();
     }
 
-    private class LazyObjectIterator implements Iterator {
+    private static class LazyObjectIterator implements Iterator {
 
         private final LazyLoader iterableLoader;
 
diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/utils/hashing/ChecksumHasher.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/utils/hashing/ChecksumHasher.java
index dd4189b18..1e3cf7e91 100644
--- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/utils/hashing/ChecksumHasher.java
+++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/utils/hashing/ChecksumHasher.java
@@ -44,7 +44,7 @@ public String digest() {
         return Base64.encodeBase64String(toBytes(checksum.getValue()));
     }
 
-    private byte[] toBytes(final long x) {
+    private static byte[] toBytes(final long x) {
         final ByteBuffer buffer = ByteBuffer.allocate(8);
         buffer.order(ByteOrder.BIG_ENDIAN);
         buffer.putLong(x);
diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/utils/hashing/ChecksumUtils.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/utils/hashing/ChecksumUtils.java
index 6a6523b3b..1779b7161 100644
--- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/utils/hashing/ChecksumUtils.java
+++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/utils/hashing/ChecksumUtils.java
@@ -38,7 +38,7 @@ public static Hasher getHasher(final ChecksumType.Type checksumType) {
             case CRC_32C:
                 return new CRC32CHasher();
             default:
-                throw new RuntimeException("Unknown checksum type " + checksumType.toString());
+                throw new RuntimeException("Unknown checksum type " + checksumType);
         }
     }
 
diff --git a/ds3-sdk/src/main/java/com/spectralogic/ds3client/utils/hashing/Crc32c.java b/ds3-sdk/src/main/java/com/spectralogic/ds3client/utils/hashing/Crc32c.java
index ff2b293ad..5501cbf12 100644
--- a/ds3-sdk/src/main/java/com/spectralogic/ds3client/utils/hashing/Crc32c.java
+++ b/ds3-sdk/src/main/java/com/spectralogic/ds3client/utils/hashing/Crc32c.java
@@ -158,7 +158,7 @@ public void reset() {
     crc = 0;
   }
 
-  private long updateByte(final byte newByte, final long crc) {
+  private static long updateByte(final byte newByte, final long crc) {
     final byte b = (byte) (newByte & BYTE_MASK);
     final int index = (int) ((crc ^ b) & BYTE_MASK);
     return (CRC_TABLE[index] ^ (crc >> 8)) & LONG_MASK;
diff --git a/ds3-sdk/src/test/java/com/spectralogic/ds3client/Ds3Client_Test.java b/ds3-sdk/src/test/java/com/spectralogic/ds3client/Ds3Client_Test.java
index b03382fe4..0ad2f9dc3 100644
--- a/ds3-sdk/src/test/java/com/spectralogic/ds3client/Ds3Client_Test.java
+++ b/ds3-sdk/src/test/java/com/spectralogic/ds3client/Ds3Client_Test.java
@@ -41,6 +41,7 @@
 import java.net.URISyntaxException;
 import java.nio.channels.FileChannel;
 import java.nio.charset.Charset;
+import java.nio.charset.StandardCharsets;
 import java.nio.file.Files;
 import java.nio.file.Path;
 import java.nio.file.StandardOpenOption;
@@ -100,7 +101,7 @@ public void setTimeZone() {
     public void getBuckets() throws IOException, ParseException {
         final UUID id = UUID.randomUUID();
         final String stringResponse = "\n" +
-                "" + id.toString() + "ryantestBucket22013-12-11T23:20:09bulkTest2013-12-11T23:20:09bulkTest12013-12-11T23:20:09bulkTest22013-12-11T23:20:09bulkTest32013-12-11T23:20:09bulkTest42013-12-11T23:20:09bulkTest52013-12-11T23:20:09bulkTest62013-12-11T23:20:09testBucket32013-12-11T23:20:09testBucket12013-12-11T23:20:09testbucket2013-12-11T23:20:09";
+                "" + id + "ryantestBucket22013-12-11T23:20:09bulkTest2013-12-11T23:20:09bulkTest12013-12-11T23:20:09bulkTest22013-12-11T23:20:09bulkTest32013-12-11T23:20:09bulkTest42013-12-11T23:20:09bulkTest52013-12-11T23:20:09bulkTest62013-12-11T23:20:09testBucket32013-12-11T23:20:09testBucket12013-12-11T23:20:09testbucket2013-12-11T23:20:09";
         
         final List expectedBucketNames = Arrays.asList(
             "testBucket2",
@@ -158,9 +159,9 @@ public void getBadBuckets() throws IOException {
     public void getBucket() throws IOException, ParseException {
         final UUID id = UUID.randomUUID();
         final String xmlResponse = "remoteTest161000falseuser/hduser/gutenberg/20417.txt.utf-82014-01-03T13:26:47.000Z8B19F3F41868106382A677C3435BDCE5674570STANDARD" +
-                "" + id.toString() + "ryanuser/hduser/gutenberg/5000.txt.utf-82014-01-03T13:26:47.000Z9DE344878423E44B129730CE22B4B1371423803STANDARD" +
-                "" + id.toString() + "ryanuser/hduser/gutenberg/4300.txt.utf-82014-01-03T13:26:47.000Z33EE4519EA7DDAB27CA4E2742326D70B1573150DEEP" +
-                "" + id.toString() + "ryan";
+                "" + id + "ryanuser/hduser/gutenberg/5000.txt.utf-82014-01-03T13:26:47.000Z9DE344878423E44B129730CE22B4B1371423803STANDARD" +
+                "" + id + "ryanuser/hduser/gutenberg/4300.txt.utf-82014-01-03T13:26:47.000Z33EE4519EA7DDAB27CA4E2742326D70B1573150DEEP" +
+                "" + id + "ryan";
         
         final ListBucketResult result = MockNetwork
             .expecting(HttpVerb.GET, "/remoteTest16", null, null)
@@ -177,7 +178,7 @@ public void getBucket() throws IOException, ParseException {
         final List objects = result.getObjects();
         assertThat(objects, is(notNullValue()));
         assertThat(objects.size(), is(3));
-        this.assertObjectsEquals(
+        Ds3Client_Test.assertObjectsEquals(
                 objects.get(0),
                 "user/hduser/gutenberg/20417.txt.utf-8",
                 DATE_FORMAT.parse("2014-01-03T13:26:47.000Z"),
@@ -185,7 +186,7 @@ public void getBucket() throws IOException, ParseException {
                 674570,
                 "STANDARD"
         );
-        this.assertObjectsEquals(
+        Ds3Client_Test.assertObjectsEquals(
                 objects.get(1),
                 "user/hduser/gutenberg/5000.txt.utf-8",
                 DATE_FORMAT.parse("2014-01-03T13:26:47.000Z"),
@@ -193,7 +194,7 @@ public void getBucket() throws IOException, ParseException {
                 1423803,
                 "STANDARD"
         );
-        this.assertObjectsEquals(
+        Ds3Client_Test.assertObjectsEquals(
                 objects.get(2),
                 "user/hduser/gutenberg/4300.txt.utf-8",
                 DATE_FORMAT.parse("2014-01-03T13:26:47.000Z"),
@@ -203,7 +204,7 @@ public void getBucket() throws IOException, ParseException {
         );
     }
 
-    private void assertObjectsEquals(
+    private static void assertObjectsEquals(
             final Contents objects,
             final String key,
             final Date lastModified,
@@ -281,7 +282,7 @@ public void getObjectsSpectraS3ParseHeaderException() throws IOException, ParseE
 
     }
 
-    private boolean s3ObjectExists(final List objects, final S3Object s3obj) {
+    private static boolean s3ObjectExists(final List objects, final S3Object s3obj) {
         for (final S3Object obj : objects) {
             if (s3obj.equals(obj)) {
                 return true;
@@ -397,7 +398,7 @@ public void createObject() throws IOException, URISyntaxException {
         
         final Path resourcePath = ResourceUtils.loadFileResource("LoremIpsumTwice.txt");
         final byte[] fileBytes = Files.readAllBytes(resourcePath);
-        final String output = new String(fileBytes, Charset.forName("UTF-8"));
+        final String output = new String(fileBytes, StandardCharsets.UTF_8);
         final FileChannel channel = FileChannel.open(resourcePath, StandardOpenOption.READ);
         MockNetwork
             .expecting(HttpVerb.PUT, "/bucketName/objectName", queryParams, output)
@@ -421,7 +422,7 @@ public void createObjectWithMetadata() throws IOException, URISyntaxException {
         
         final Path resourcePath = ResourceUtils.loadFileResource("LoremIpsumTwice.txt");
         final byte[] fileBytes = Files.readAllBytes(resourcePath);
-        final String output = new String(fileBytes, Charset.forName("UTF-8"));
+        final String output = new String(fileBytes, StandardCharsets.UTF_8);
         final FileChannel channel = FileChannel.open(resourcePath, StandardOpenOption.READ);
 
         final PutObjectRequest por = new PutObjectRequest(
@@ -457,7 +458,7 @@ public void createObjectWithNullAndEmptyMetadata() throws IOException, URISyntax
 
         final Path resourcePath = ResourceUtils.loadFileResource("LoremIpsumTwice.txt");
         final byte[] fileBytes = Files.readAllBytes(resourcePath);
-        final String output = new String(fileBytes, Charset.forName("UTF-8"));
+        final String output = new String(fileBytes, StandardCharsets.UTF_8);
         final FileChannel channel = FileChannel.open(resourcePath, StandardOpenOption.READ);
 
         final PutObjectRequest por = new PutObjectRequest(
@@ -552,12 +553,12 @@ public void getObjectWithMetaData() throws IOException {
 
     @Test
     public void createPutJobSpectraS3() throws IOException {
-        this.runBulkTest(BulkCommand.PUT, (client, bucket, objects) -> client.putBulkJobSpectraS3(new PutBulkJobSpectraS3Request(bucket, objects)).getMasterObjectList());
+        Ds3Client_Test.runBulkTest(BulkCommand.PUT, (client, bucket, objects) -> client.putBulkJobSpectraS3(new PutBulkJobSpectraS3Request(bucket, objects)).getMasterObjectList());
     }
 
     @Test
     public void createGetJobSpectraS3() throws IOException {
-        this.runBulkTest(BulkCommand.GET, (client, bucket, objects) -> client.getBulkJobSpectraS3(new GetBulkJobSpectraS3Request(bucket, objects)).getMasterObjectList());
+        Ds3Client_Test.runBulkTest(BulkCommand.GET, (client, bucket, objects) -> client.getBulkJobSpectraS3(new GetBulkJobSpectraS3Request(bucket, objects)).getMasterObjectList());
     }
     
     private interface BulkTestDriver {
@@ -565,7 +566,7 @@ MasterObjectList performRestCall(final Ds3Client client, final String bucket, fi
                 throws IOException;
     }
     
-    private void runBulkTest(final BulkCommand command, final Ds3Client_Test.BulkTestDriver driver) throws IOException {
+    private static void runBulkTest(final BulkCommand command, final Ds3Client_Test.BulkTestDriver driver) throws IOException {
         final List objects = Arrays.asList(
             new Ds3Object("file1", 256),
             new Ds3Object("file2", 1202),
@@ -1133,7 +1134,7 @@ public void deletePermanentlyLostTapeSpectraS3() throws IOException {
         final UUID id = UUID.randomUUID();
 
         final DeletePermanentlyLostTapeSpectraS3Response response = MockNetwork
-                .expecting(HttpVerb.DELETE, "/_rest_/tape/" + id.toString(), null, null)
+                .expecting(HttpVerb.DELETE, "/_rest_/tape/" + id, null, null)
                 .returning(204, "")
                 .asClient()
                 .deletePermanentlyLostTapeSpectraS3(new DeletePermanentlyLostTapeSpectraS3Request(id.toString()));
@@ -1690,7 +1691,7 @@ public void putMultiPartUploadNullStreamStringConstructorTest() {
                 () -> new PutMultiPartUploadPartRequest("BucketName", "ObjectName", 0, 0, null, "UploadId"));
     }
 
-    private void testNonnullStreamChannelExceptions(final String paramName, final Runnable runnable) {
+    private static void testNonnullStreamChannelExceptions(final String paramName, final Runnable runnable) {
         try {
             runnable.run();
             fail();
diff --git a/ds3-sdk/src/test/java/com/spectralogic/ds3client/MockNetwork.java b/ds3-sdk/src/test/java/com/spectralogic/ds3client/MockNetwork.java
index 5c887d4e8..dd65ba249 100644
--- a/ds3-sdk/src/test/java/com/spectralogic/ds3client/MockNetwork.java
+++ b/ds3-sdk/src/test/java/com/spectralogic/ds3client/MockNetwork.java
@@ -105,7 +105,7 @@ public WebResponse getResponse(final Ds3Request request)
         assertThat(request.getVerb(), is(this.verb));
         assertThat(request.getPath(), is(this.path));
         if (this.queryParams != null) {
-            this.assertMapsEqual(this.queryParams, request.getQueryParams());
+            MockNetwork.assertMapsEqual(this.queryParams, request.getQueryParams());
         }
         
         if(this.requestHeaders != null){
@@ -128,7 +128,7 @@ public WebResponse getResponse(final Ds3Request request)
         return new MockedWebResponse(this.responseContent, this.statusCode, this.headers);
     }
 
-    private void assertMapsEqual(final Map expectedMap, final Map actualMap) {
+    private static void assertMapsEqual(final Map expectedMap, final Map actualMap) {
         assertThat(actualMap, is(notNullValue()));
         assertThat(actualMap.size(), is(expectedMap.size()));
         for (final Map.Entry entry : expectedMap.entrySet()) {
diff --git a/ds3-sdk/src/test/java/com/spectralogic/ds3client/commands/MetadataImpl_Test.java b/ds3-sdk/src/test/java/com/spectralogic/ds3client/commands/MetadataImpl_Test.java
index d6655f02d..1a75eea63 100644
--- a/ds3-sdk/src/test/java/com/spectralogic/ds3client/commands/MetadataImpl_Test.java
+++ b/ds3-sdk/src/test/java/com/spectralogic/ds3client/commands/MetadataImpl_Test.java
@@ -92,7 +92,7 @@ public void getTwoValuesLtfs() {
         assertThat(userGuids.get(1), is(userGuid2));
     }
 
-    private Metadata genMetadata(final Header... headers) {
+    private static Metadata genMetadata(final Header... headers) {
 
         final ImmutableMultimap.Builder mapBuilder = ImmutableMultimap.builder();
         for (final Header header : headers) {
diff --git a/ds3-sdk/src/test/java/com/spectralogic/ds3client/commands/SeekableByteChannelInputStream_Test.java b/ds3-sdk/src/test/java/com/spectralogic/ds3client/commands/SeekableByteChannelInputStream_Test.java
index 1c107c571..6ee911855 100644
--- a/ds3-sdk/src/test/java/com/spectralogic/ds3client/commands/SeekableByteChannelInputStream_Test.java
+++ b/ds3-sdk/src/test/java/com/spectralogic/ds3client/commands/SeekableByteChannelInputStream_Test.java
@@ -95,7 +95,7 @@ public void closeCallsClose() throws IOException {
         Mockito.verifyNoMoreInteractions(mockChannel);
     }
 
-    private void readAndVerify(final InputStream inputStream, final byte[] expectedBytes)
+    private static void readAndVerify(final InputStream inputStream, final byte[] expectedBytes)
             throws IOException, URISyntaxException {
         final byte[] resultBuffer = new byte[expectedBytes.length];
         final byte[] buffer = new byte[10];
diff --git a/ds3-sdk/src/test/java/com/spectralogic/ds3client/helpers/Ds3ClientHelpers_Test.java b/ds3-sdk/src/test/java/com/spectralogic/ds3client/helpers/Ds3ClientHelpers_Test.java
index 38188bfe1..f3a361457 100644
--- a/ds3-sdk/src/test/java/com/spectralogic/ds3client/helpers/Ds3ClientHelpers_Test.java
+++ b/ds3-sdk/src/test/java/com/spectralogic/ds3client/helpers/Ds3ClientHelpers_Test.java
@@ -32,7 +32,6 @@
 import com.spectralogic.ds3client.networking.ConnectionDetails;
 import com.spectralogic.ds3client.networking.FailedRequestException;
 import com.spectralogic.ds3client.utils.ByteArraySeekableByteChannel;
-import org.hamcrest.Matchers;
 import org.junit.Assert;
 import org.junit.Before;
 import org.junit.Test;
@@ -531,7 +530,7 @@ private static MasterObjectList buildJobResponse(
                 "2014-09-17T13:03:54.000Z",
                 UUID.fromString("57919d2d-448c-4e2a-8886-0413af22243e"),
                 "spectra",
-                Arrays.asList(basicNode(nodeId, "black-pearl")),
+                Collections.singletonList(basicNode(nodeId, "black-pearl")),
                 Arrays.asList(chunks)
         );
     }
diff --git a/ds3-sdk/src/test/java/com/spectralogic/ds3client/helpers/FileObjectPutter_Test.java b/ds3-sdk/src/test/java/com/spectralogic/ds3client/helpers/FileObjectPutter_Test.java
index 665796118..75d21ee4d 100644
--- a/ds3-sdk/src/test/java/com/spectralogic/ds3client/helpers/FileObjectPutter_Test.java
+++ b/ds3-sdk/src/test/java/com/spectralogic/ds3client/helpers/FileObjectPutter_Test.java
@@ -28,6 +28,7 @@
 import java.nio.ByteBuffer;
 import java.nio.channels.SeekableByteChannel;
 import java.nio.charset.Charset;
+import java.nio.charset.StandardCharsets;
 import java.nio.file.*;
 import java.util.concurrent.atomic.AtomicBoolean;
 
@@ -42,7 +43,7 @@ public class FileObjectPutter_Test {
     final private static Logger LOG = LoggerFactory.getLogger(FileObjectPutter_Test.class);
 
     final private static String testString = "This is some test data.";
-    final private static byte[] testData = testString.getBytes(Charset.forName("UTF-8"));
+    final private static byte[] testData = testString.getBytes(StandardCharsets.UTF_8);
 
     /**
      * This test cannot run on Windows without extra privileges
@@ -99,7 +100,7 @@ public void testRelativeSymlink() throws IOException, URISyntaxException {
             final Path symLinkPath = tempDir.resolve("sym_" + tempPath.getFileName().toString());
             final Path relPath = Paths.get("..", getParentDir(tempPath), tempPath.getFileName().toString());
 
-            LOG.info("Creating symlink from " + symLinkPath.toString() + " to " + relPath.toString());
+            LOG.info("Creating symlink from " + symLinkPath + " to " + relPath);
 
             Files.createSymbolicLink(symLinkPath, relPath);
             getFileWithPutter(tempDir, symLinkPath);
@@ -110,14 +111,14 @@ public void testRelativeSymlink() throws IOException, URISyntaxException {
         }
     }
 
-    private void getFileWithPutter(final Path dir, final Path file) throws IOException {
+    private static void getFileWithPutter(final Path dir, final Path file) throws IOException {
              try {
                 final FileObjectPutter putter = new FileObjectPutter(dir);
                 try (final SeekableByteChannel newChannel = putter.buildChannel(file.getFileName().toString())) {
                     assertThat(newChannel, is(notNullValue()));
                     final ByteBuffer buff = ByteBuffer.allocate(testData.length);
                     assertThat(newChannel.read(buff), is(testData.length));
-                    assertThat(new String(buff.array(), Charset.forName("UTF-8")), is(testString));
+                    assertThat(new String(buff.array(), StandardCharsets.UTF_8), is(testString));
                 }
             } finally {
                 Files.deleteIfExists(file);
diff --git a/ds3-sdk/src/test/java/com/spectralogic/ds3client/helpers/ObjectPartTrackerImpl_CompletePart_Test.java b/ds3-sdk/src/test/java/com/spectralogic/ds3client/helpers/ObjectPartTrackerImpl_CompletePart_Test.java
index e56bd8351..034b344e0 100644
--- a/ds3-sdk/src/test/java/com/spectralogic/ds3client/helpers/ObjectPartTrackerImpl_CompletePart_Test.java
+++ b/ds3-sdk/src/test/java/com/spectralogic/ds3client/helpers/ObjectPartTrackerImpl_CompletePart_Test.java
@@ -25,6 +25,7 @@
 import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.Collection;
+import java.util.Collections;
 import java.util.List;
 
 import static org.hamcrest.CoreMatchers.equalTo;
@@ -70,13 +71,13 @@ public static Collection testCases() {
                 new ObjectPart(0L, 100L),
                 new ObjectPart(200L, 100L)
             ) },
-            new Object[] { "completely before", false, Arrays.asList(new ObjectPart(0L, 99L)) },
-            new Object[] { "just before", false, Arrays.asList(new ObjectPart(0L, 100L)) },
-            new Object[] { "overlapping before", false, Arrays.asList(new ObjectPart(50L, 100L)) },
-            new Object[] { "overlapping both", false, Arrays.asList(new ObjectPart(50L, 200L)) },
-            new Object[] { "overlapping after", false, Arrays.asList(new ObjectPart(150L, 100L)) },
-            new Object[] { "just after", false, Arrays.asList(new ObjectPart(200L, 100L)) },
-            new Object[] { "completely after", false, Arrays.asList(new ObjectPart(201L, 99L)) }
+            new Object[] { "completely before", false, Collections.singletonList(new ObjectPart(0L, 99L))},
+            new Object[] { "just before", false, Collections.singletonList(new ObjectPart(0L, 100L))},
+            new Object[] { "overlapping before", false, Collections.singletonList(new ObjectPart(50L, 100L))},
+            new Object[] { "overlapping both", false, Collections.singletonList(new ObjectPart(50L, 200L))},
+            new Object[] { "overlapping after", false, Collections.singletonList(new ObjectPart(150L, 100L))},
+            new Object[] { "just after", false, Collections.singletonList(new ObjectPart(200L, 100L))},
+            new Object[] { "completely after", false, Collections.singletonList(new ObjectPart(201L, 99L))}
         );
     }
 
@@ -124,7 +125,7 @@ private Collection buildExpectedEvents() {
     }
 
     private void checkFailure() {
-        final ObjectPartTracker tracker = new ObjectPartTrackerImpl(this.name, Arrays.asList(new ObjectPart(100L, 100L)), new SameThreadEventRunner());
+        final ObjectPartTracker tracker = new ObjectPartTrackerImpl(this.name, Collections.singletonList(new ObjectPart(100L, 100L)), new SameThreadEventRunner());
         try {
             tracker.completePart(this.parts.iterator().next());
             Assert.fail();
diff --git a/ds3-sdk/src/test/java/com/spectralogic/ds3client/helpers/RequestMatchers.java b/ds3-sdk/src/test/java/com/spectralogic/ds3client/helpers/RequestMatchers.java
index c8a914501..df2aa63c9 100644
--- a/ds3-sdk/src/test/java/com/spectralogic/ds3client/helpers/RequestMatchers.java
+++ b/ds3-sdk/src/test/java/com/spectralogic/ds3client/helpers/RequestMatchers.java
@@ -15,6 +15,7 @@
 
 package com.spectralogic.ds3client.helpers;
 
+import com.google.common.base.Charsets;
 import com.spectralogic.ds3client.commands.GetBucketRequest;
 import com.spectralogic.ds3client.commands.GetObjectRequest;
 import com.spectralogic.ds3client.commands.PutObjectRequest;
@@ -30,6 +31,7 @@
 import java.io.IOException;
 import java.nio.channels.Channels;
 import java.nio.channels.SeekableByteChannel;
+import java.nio.charset.StandardCharsets;
 import java.util.UUID;
 
 import static org.mockito.hamcrest.MockitoHamcrest.argThat;
@@ -207,7 +209,7 @@ private static Description describeTransferRequest(
     private static String channelToString(final SeekableByteChannel channel) {
         try {
             channel.position(0);
-            return IOUtils.toString(Channels.newReader(channel, "UTF-8"));
+            return IOUtils.toString(Channels.newReader(channel, Charsets.UTF_8.name()));
         } catch (final IOException e) {
             throw new RuntimeException(e);
         }
diff --git a/ds3-sdk/src/test/java/com/spectralogic/ds3client/helpers/ResponseBuilders.java b/ds3-sdk/src/test/java/com/spectralogic/ds3client/helpers/ResponseBuilders.java
index 8f9d63c74..fb91af9f6 100644
--- a/ds3-sdk/src/test/java/com/spectralogic/ds3client/helpers/ResponseBuilders.java
+++ b/ds3-sdk/src/test/java/com/spectralogic/ds3client/helpers/ResponseBuilders.java
@@ -15,6 +15,7 @@
 
 package com.spectralogic.ds3client.helpers;
 
+import com.google.common.base.Charsets;
 import com.spectralogic.ds3client.commands.GetObjectRequest;
 import com.spectralogic.ds3client.commands.GetObjectResponse;
 import com.spectralogic.ds3client.commands.HeadBucketResponse;
@@ -29,6 +30,7 @@
 import java.nio.channels.Channels;
 import java.nio.channels.SeekableByteChannel;
 import java.nio.channels.WritableByteChannel;
+import java.nio.charset.StandardCharsets;
 import java.text.ParseException;
 import java.text.SimpleDateFormat;
 import java.util.Arrays;
@@ -179,7 +181,7 @@ public static SeekableByteChannel channelWithContents(final String contents) {
     }
 
     private static  T writeToChannel(final String contents, final T channel) {
-        final Writer writer = Channels.newWriter(channel, "UTF-8");
+        final Writer writer = Channels.newWriter(channel, Charsets.UTF_8.name());
         try {
             writer.write(contents);
             writer.flush();
diff --git a/ds3-sdk/src/test/java/com/spectralogic/ds3client/helpers/channels/RangedSeekableByteChannel_Test.java b/ds3-sdk/src/test/java/com/spectralogic/ds3client/helpers/channels/RangedSeekableByteChannel_Test.java
index 007f10101..cfa3f2192 100644
--- a/ds3-sdk/src/test/java/com/spectralogic/ds3client/helpers/channels/RangedSeekableByteChannel_Test.java
+++ b/ds3-sdk/src/test/java/com/spectralogic/ds3client/helpers/channels/RangedSeekableByteChannel_Test.java
@@ -24,6 +24,7 @@
 import java.io.IOException;
 import java.nio.ByteBuffer;
 import java.nio.charset.Charset;
+import java.nio.charset.StandardCharsets;
 
 import static org.hamcrest.core.Is.is;
 import static org.junit.Assert.assertThat;
@@ -36,8 +37,8 @@ public void multipleRangesWithMultipleBlobs() throws IOException {
         final String firstPartialBlob = "First blob text";
         final String secondPartialBlob = "Second Blob text";
 
-        final ByteBuffer firstBlobData = ByteBuffer.wrap(firstPartialBlob.getBytes(Charset.forName("UTF-8")));
-        final ByteBuffer secondBlobData = ByteBuffer.wrap(secondPartialBlob.getBytes(Charset.forName("UTF-8")));
+        final ByteBuffer firstBlobData = ByteBuffer.wrap(firstPartialBlob.getBytes(StandardCharsets.UTF_8));
+        final ByteBuffer secondBlobData = ByteBuffer.wrap(secondPartialBlob.getBytes(StandardCharsets.UTF_8));
 
         final ImmutableMultimap.Builder builder = ImmutableMultimap.builder();
 
@@ -77,8 +78,8 @@ public void multipleRangesNotOnBlobBoundryWithMultipleBlobs() throws IOException
         final String firstPartialBlob = "First blob text";
         final String secondPartialBlob = "Second Blob text";
 
-        final ByteBuffer firstBlobData = ByteBuffer.wrap(firstPartialBlob.getBytes(Charset.forName("UTF-8")));
-        final ByteBuffer secondBlobData = ByteBuffer.wrap(secondPartialBlob.getBytes(Charset.forName("UTF-8")));
+        final ByteBuffer firstBlobData = ByteBuffer.wrap(firstPartialBlob.getBytes(StandardCharsets.UTF_8));
+        final ByteBuffer secondBlobData = ByteBuffer.wrap(secondPartialBlob.getBytes(StandardCharsets.UTF_8));
 
         final ImmutableMultimap.Builder builder = ImmutableMultimap.builder();
 
diff --git a/ds3-sdk/src/test/java/com/spectralogic/ds3client/helpers/channels/WindowedChannelFactory_Test.java b/ds3-sdk/src/test/java/com/spectralogic/ds3client/helpers/channels/WindowedChannelFactory_Test.java
index 5fcd757ae..376e8942e 100644
--- a/ds3-sdk/src/test/java/com/spectralogic/ds3client/helpers/channels/WindowedChannelFactory_Test.java
+++ b/ds3-sdk/src/test/java/com/spectralogic/ds3client/helpers/channels/WindowedChannelFactory_Test.java
@@ -17,12 +17,14 @@
 
 import com.spectralogic.ds3client.utils.ByteArraySeekableByteChannel;
 
+import org.apache.commons.io.Charsets;
 import org.apache.commons.io.IOUtils;
 import org.junit.Test;
 
 import java.io.Writer;
 import java.nio.channels.Channels;
 import java.nio.channels.SeekableByteChannel;
+import java.nio.charset.StandardCharsets;
 
 import static org.hamcrest.CoreMatchers.is;
 import static org.junit.Assert.assertThat;
@@ -32,13 +34,13 @@ public class WindowedChannelFactory_Test {
     @Test
     public void getReturnsWindow() throws Exception {
         try (final ByteArraySeekableByteChannel channel = new ByteArraySeekableByteChannel()) {
-            final Writer writer = Channels.newWriter(channel, "UTF-8");
+            final Writer writer = Channels.newWriter(channel, Charsets.UTF_8.name());
             writer.write("0123456789");
             writer.close();
             
             try (final WindowedChannelFactory windowedChannelFactory = new WindowedChannelFactory(channel)) {
                 try (final SeekableByteChannel window = windowedChannelFactory.get(2L, 6L)) {
-                    assertThat(IOUtils.toString(Channels.newReader(window, "UTF-8")), is("234567"));
+                    assertThat(IOUtils.toString(Channels.newReader(window, Charsets.UTF_8.name())), is("234567"));
                 }
             }
         }
diff --git a/ds3-sdk/src/test/java/com/spectralogic/ds3client/helpers/channels/WindowedSeekableByteChannel_Test.java b/ds3-sdk/src/test/java/com/spectralogic/ds3client/helpers/channels/WindowedSeekableByteChannel_Test.java
index dc5e98fe1..8aa259ad5 100644
--- a/ds3-sdk/src/test/java/com/spectralogic/ds3client/helpers/channels/WindowedSeekableByteChannel_Test.java
+++ b/ds3-sdk/src/test/java/com/spectralogic/ds3client/helpers/channels/WindowedSeekableByteChannel_Test.java
@@ -18,6 +18,7 @@
 import com.spectralogic.ds3client.helpers.TruncateNotAllowedException;
 import com.spectralogic.ds3client.utils.ByteArraySeekableByteChannel;
 
+import org.apache.commons.io.Charsets;
 import org.apache.commons.io.IOUtils;
 import org.junit.Test;
 
@@ -27,6 +28,7 @@
 import java.nio.channels.Channels;
 import java.nio.channels.SeekableByteChannel;
 import java.nio.charset.Charset;
+import java.nio.charset.StandardCharsets;
 
 import static org.hamcrest.CoreMatchers.is;
 import static org.junit.Assert.assertThat;
@@ -91,7 +93,7 @@ public void writeDoesNotExceedWindow() throws IOException {
         try (final ByteArraySeekableByteChannel channel = new ByteArraySeekableByteChannel()) {
             final Object lock = new Object();
             try (final WindowedSeekableByteChannel window = new WindowedSeekableByteChannel(channel, lock, 2L, 7L)) {
-                final ByteBuffer buffer = Charset.forName("UTF-8").encode("0123456789");
+                final ByteBuffer buffer = StandardCharsets.UTF_8.encode("0123456789");
                 buffer.position(1);
                 assertThat(window.write(buffer), is(7));
                 assertThat(window.position(), is(7L));
@@ -122,14 +124,14 @@ public void readPositionTracking() throws IOException {
                 assertThat(window.position(), is(3L));
                 assertThat(buffer.position(), is(3));
                 assertThat(buffer.limit(), is(3));
-                assertThat(new String(bytes, 0, 3, Charset.forName("UTF-8")), is("bbb"));
+                assertThat(new String(bytes, 0, 3, StandardCharsets.UTF_8), is("bbb"));
 
                 buffer.limit(10);
                 assertThat(window.read(buffer), is(4));
                 assertThat(window.position(), is(7L));
                 assertThat(buffer.position(), is(7));
                 assertThat(buffer.limit(), is(10));
-                assertThat(new String(bytes, 3, 4, Charset.forName("UTF-8")), is("cccc"));
+                assertThat(new String(bytes, 3, 4, StandardCharsets.UTF_8), is("cccc"));
             }
         }
     }
@@ -139,11 +141,11 @@ public void writePositionTracking() throws IOException {
         try (final ByteArraySeekableByteChannel channel = new ByteArraySeekableByteChannel()) {
             final Object lock = new Object();
             try (final WindowedSeekableByteChannel window = new WindowedSeekableByteChannel(channel, lock, 2L, 7L)) {
-                ByteBuffer buffer = Charset.forName("UTF-8").encode("bbb");
+                ByteBuffer buffer = StandardCharsets.UTF_8.encode("bbb");
                 assertThat(window.write(buffer), is(3));
                 assertThat(buffer.position(), is(3));
 
-                buffer = Charset.forName("UTF-8").encode("cccc");
+                buffer = StandardCharsets.UTF_8.encode("cccc");
                 assertThat(window.write(buffer), is(4));
                 assertThat(buffer.position(), is(4));
 
@@ -250,7 +252,7 @@ public void interactAfterCloseNotAllowed() throws IOException {
     }
 
     private static void writeToChannel(final String string, final SeekableByteChannel channel) throws IOException {
-        final Writer writer = Channels.newWriter(channel, "UTF-8");
+        final Writer writer = Channels.newWriter(channel, Charsets.UTF_8.name());
         writer.write(string);
         writer.flush();
     }
@@ -263,6 +265,6 @@ private static SeekableByteChannel stringToChannel(final String string) throws I
     }
 
     private static String channelToString(final SeekableByteChannel channel) throws IOException {
-        return IOUtils.toString(Channels.newReader(channel, "UTF-8"));
+        return IOUtils.toString(Channels.newReader(channel, Charsets.UTF_8.name()));
     }
 }
diff --git a/ds3-sdk/src/test/java/com/spectralogic/ds3client/helpers/strategy/transferstrategy/RangeHelperImpl_Test.java b/ds3-sdk/src/test/java/com/spectralogic/ds3client/helpers/strategy/transferstrategy/RangeHelperImpl_Test.java
index 07f73be72..be813935a 100644
--- a/ds3-sdk/src/test/java/com/spectralogic/ds3client/helpers/strategy/transferstrategy/RangeHelperImpl_Test.java
+++ b/ds3-sdk/src/test/java/com/spectralogic/ds3client/helpers/strategy/transferstrategy/RangeHelperImpl_Test.java
@@ -53,7 +53,7 @@ public void testReplacingValueInFirstRange() {
         }
     }
 
-    private ImmutableCollection makeSomeRanges() {
+    private static ImmutableCollection makeSomeRanges() {
         final Range firstRange = Range.byLength(10, 10000);
         final Range secondRange = Range.byLength(20000, 15000);
         final Range thirdRange = Range.byLength(40000, 20000);
@@ -64,7 +64,7 @@ private ImmutableCollection makeSomeRanges() {
                 .build();
     }
 
-    private long numBytesToTransfer(final ImmutableCollection ranges, final int numRanges) {
+    private static long numBytesToTransfer(final ImmutableCollection ranges, final int numRanges) {
         long result = 0;
         int currentRange = 0;
 
diff --git a/ds3-sdk/src/test/java/com/spectralogic/ds3client/helpers/strategy/transferstrategy/TransferStrategy_Test.java b/ds3-sdk/src/test/java/com/spectralogic/ds3client/helpers/strategy/transferstrategy/TransferStrategy_Test.java
index 0a65569dc..52a23c572 100644
--- a/ds3-sdk/src/test/java/com/spectralogic/ds3client/helpers/strategy/transferstrategy/TransferStrategy_Test.java
+++ b/ds3-sdk/src/test/java/com/spectralogic/ds3client/helpers/strategy/transferstrategy/TransferStrategy_Test.java
@@ -77,7 +77,7 @@ public void testContinuallyGettingBlobThatFailsToTransfer() throws IOException {
         assertEquals(4, numTimesTransferCalled.get());
     }
 
-    private class ContinuallyReturnFailingBlobStrategy implements BlobStrategy {
+    private static class ContinuallyReturnFailingBlobStrategy implements BlobStrategy {
         private final AtomicBoolean getWorkCalledAlready = new AtomicBoolean(false);
 
         @Override
@@ -89,7 +89,7 @@ public Iterable getWork() throws IOException, InterruptedException {
             return Arrays.asList(remainingChunkWithFailingBlob());
         }
 
-        private JobPart[] firstChunkWithFailingBlob() {
+        private static JobPart[] firstChunkWithFailingBlob() {
             final BulkObject blob1 = new BulkObject(); blob1.setName(BLOB1);
             final BulkObject blob2 = new BulkObject(); blob2.setName(BLOB2);
 
@@ -99,7 +99,7 @@ private JobPart[] firstChunkWithFailingBlob() {
             };
         }
 
-        private JobPart[] remainingChunkWithFailingBlob() {
+        private static JobPart[] remainingChunkWithFailingBlob() {
             final BulkObject blob2 = new BulkObject(); blob2.setName(BLOB2);
             final BulkObject blob3 = new BulkObject(); blob3.setName(BLOB3);
             final BulkObject blob4 = new BulkObject(); blob4.setName(BLOB4);
@@ -112,7 +112,7 @@ private JobPart[] remainingChunkWithFailingBlob() {
         }
     }
 
-    private List chunksWithBlobs() {
+    private static List chunksWithBlobs() {
         final BulkObject blob1 = new BulkObject(); blob1.setName(BLOB1); blob1.setInCache(false);
         final BulkObject blob2 = new BulkObject(); blob2.setName(BLOB2); blob2.setInCache(false);
         final BulkObject blob3 = new BulkObject(); blob3.setName(BLOB3); blob3.setInCache(false);
@@ -127,7 +127,7 @@ private List chunksWithBlobs() {
         return Arrays.asList(chunk1, chunk2);
     }
 
-    private MasterObjectList masterObjectList() {
+    private static MasterObjectList masterObjectList() {
         final MasterObjectList masterObjectList = new MasterObjectList();
         masterObjectList.setObjects(chunksWithBlobs());
         masterObjectList.setJobId(UUID.randomUUID());
@@ -136,9 +136,9 @@ private MasterObjectList masterObjectList() {
         return masterObjectList;
     }
 
-    private TransferMethod transferMethod(final Set blobsTransferredSuccessfully,
-                                          final Set blobsThatFailed,
-                                          final AtomicInteger numTimesTransferCalled)
+    private static TransferMethod transferMethod(final Set blobsTransferredSuccessfully,
+            final Set blobsThatFailed,
+            final AtomicInteger numTimesTransferCalled)
     {
         return jobPart -> {
             numTimesTransferCalled.incrementAndGet();
diff --git a/ds3-sdk/src/test/java/com/spectralogic/ds3client/models/ServiceList_Test.java b/ds3-sdk/src/test/java/com/spectralogic/ds3client/models/ServiceList_Test.java
index e8e7b7d34..81db6f0be 100644
--- a/ds3-sdk/src/test/java/com/spectralogic/ds3client/models/ServiceList_Test.java
+++ b/ds3-sdk/src/test/java/com/spectralogic/ds3client/models/ServiceList_Test.java
@@ -31,7 +31,7 @@ public class ServiceList_Test {
     public void serviceListSerialization() throws IOException {
         final UUID id = UUID.randomUUID();
         final String stringResponse = "\n" +
-                "" + id.toString() + "ryantestBucket22013-12-11T23:20:09bulkTest2013-12-11T23:20:09bulkTest12013-12-11T23:20:09bulkTest22013-12-11T23:20:09bulkTest32013-12-11T23:20:09bulkTest42013-12-11T23:20:09bulkTest52013-12-11T23:20:09bulkTest62013-12-11T23:20:09testBucket32013-12-11T23:20:09testBucket12013-12-11T23:20:09testbucket2013-12-11T23:20:09";
+                "" + id + "ryantestBucket22013-12-11T23:20:09bulkTest2013-12-11T23:20:09bulkTest12013-12-11T23:20:09bulkTest22013-12-11T23:20:09bulkTest32013-12-11T23:20:09bulkTest42013-12-11T23:20:09bulkTest52013-12-11T23:20:09bulkTest62013-12-11T23:20:09testBucket32013-12-11T23:20:09testBucket12013-12-11T23:20:09testbucket2013-12-11T23:20:09";
 
         final ListAllMyBucketsResult result = XmlOutput.fromXml(stringResponse, ListAllMyBucketsResult.class);
         assertThat(result, is(notNullValue()));
diff --git a/ds3-sdk/src/test/java/com/spectralogic/ds3client/networking/HeadersImpl_Test.java b/ds3-sdk/src/test/java/com/spectralogic/ds3client/networking/HeadersImpl_Test.java
index 912c51855..934b4bd5b 100644
--- a/ds3-sdk/src/test/java/com/spectralogic/ds3client/networking/HeadersImpl_Test.java
+++ b/ds3-sdk/src/test/java/com/spectralogic/ds3client/networking/HeadersImpl_Test.java
@@ -41,7 +41,7 @@ public void unknownHeader() {
         assertTrue(value.isEmpty());
     }
 
-    public Headers genHeaders(final Header... headers) {
+    public static Headers genHeaders(final Header... headers) {
         return new HeadersImpl(headers);
     }
 }
diff --git a/ds3-sdk/src/test/java/com/spectralogic/ds3client/serializer/XmlOutput_Test.java b/ds3-sdk/src/test/java/com/spectralogic/ds3client/serializer/XmlOutput_Test.java
index 86244e966..f8c45976f 100644
--- a/ds3-sdk/src/test/java/com/spectralogic/ds3client/serializer/XmlOutput_Test.java
+++ b/ds3-sdk/src/test/java/com/spectralogic/ds3client/serializer/XmlOutput_Test.java
@@ -51,9 +51,9 @@ public void singleList() throws IOException {
     public void bucketList() throws IOException {
         final UUID id = UUID.randomUUID();
         final String xmlResponse = "remoteTest161000falseuser/hduser/gutenberg/20417.txt.utf-82014-01-03T13:26:47.000ZNOTRETURNED674570STANDARD" +
-                "" + id.toString() + "ryanuser/hduser/gutenberg/5000.txt.utf-82014-01-03T13:26:47.000ZNOTRETURNED1423803STANDARD" +
-                "" + id.toString() + "ryanuser/hduser/gutenberg/4300.txt.utf-82014-01-03T13:26:47.000ZNOTRETURNED1573150STANDARD" +
-                "" + id.toString() + "ryan";
+                "" + id + "ryanuser/hduser/gutenberg/5000.txt.utf-82014-01-03T13:26:47.000ZNOTRETURNED1423803STANDARD" +
+                "" + id + "ryanuser/hduser/gutenberg/4300.txt.utf-82014-01-03T13:26:47.000ZNOTRETURNED1573150STANDARD" +
+                "" + id + "ryan";
 
         final ListBucketResult result = XmlOutput.fromXml(xmlResponse, ListBucketResult.class);
         assertThat(result, is(notNullValue()));
diff --git a/ds3-utils/build.gradle.kts b/ds3-utils/build.gradle.kts
index 76485efef..558e54d22 100644
--- a/ds3-utils/build.gradle.kts
+++ b/ds3-utils/build.gradle.kts
@@ -17,6 +17,9 @@ plugins {
     `ds3-java-sdk-library-convention`
 }
 
+description = "This module holds classes for utilities used to manage files and " +
+    "metadata."
+
 dependencies {
     api(project(":ds3-interfaces"))
 
diff --git a/ds3-utils/src/main/java/com/spectralogic/ds3client/utils/MetadataStringManipulation.java b/ds3-utils/src/main/java/com/spectralogic/ds3client/utils/MetadataStringManipulation.java
index 8a9e68370..a1bf6fa77 100644
--- a/ds3-utils/src/main/java/com/spectralogic/ds3client/utils/MetadataStringManipulation.java
+++ b/ds3-utils/src/main/java/com/spectralogic/ds3client/utils/MetadataStringManipulation.java
@@ -15,6 +15,7 @@
 
 package com.spectralogic.ds3client.utils;
 
+import com.google.common.base.Utf8;
 import com.google.common.escape.Escaper;
 import com.google.common.net.PercentEscaper;
 import org.apache.commons.codec.CharEncoding;
diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar
index 943f0cbfa..7f93135c4 100644
Binary files a/gradle/wrapper/gradle-wrapper.jar and b/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
index f398c33c4..ac72c34e8 100644
--- a/gradle/wrapper/gradle-wrapper.properties
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -1,6 +1,7 @@
 distributionBase=GRADLE_USER_HOME
 distributionPath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
 networkTimeout=10000
+validateDistributionUrl=true
 zipStoreBase=GRADLE_USER_HOME
 zipStorePath=wrapper/dists
diff --git a/gradlew b/gradlew
index 65dcd68d6..0adc8e1a5 100755
--- a/gradlew
+++ b/gradlew
@@ -83,10 +83,8 @@ done
 # This is normally unused
 # shellcheck disable=SC2034
 APP_BASE_NAME=${0##*/}
-APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
-
-# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
-DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
+# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
+APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
 
 # Use the maximum available, or set MAX_FD != -1 to use that value.
 MAX_FD=maximum
@@ -133,10 +131,13 @@ location of your Java installation."
     fi
 else
     JAVACMD=java
-    which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+    if ! command -v java >/dev/null 2>&1
+    then
+        die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
 
 Please set the JAVA_HOME variable in your environment to match the
 location of your Java installation."
+    fi
 fi
 
 # Increase the maximum file descriptors if we can.
@@ -144,7 +145,7 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
     case $MAX_FD in #(
       max*)
         # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
-        # shellcheck disable=SC3045 
+        # shellcheck disable=SC3045
         MAX_FD=$( ulimit -H -n ) ||
             warn "Could not query maximum file descriptor limit"
     esac
@@ -152,7 +153,7 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
       '' | soft) :;; #(
       *)
         # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
-        # shellcheck disable=SC3045 
+        # shellcheck disable=SC3045
         ulimit -n "$MAX_FD" ||
             warn "Could not set maximum file descriptor limit to $MAX_FD"
     esac
@@ -197,6 +198,10 @@ if "$cygwin" || "$msys" ; then
     done
 fi
 
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
+
 # Collect all arguments for the java command;
 #   * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
 #     shell script including quotes and variable substitutions, so put them in
diff --git a/libs.versions.toml b/libs.versions.toml
new file mode 100644
index 000000000..f476094a6
--- /dev/null
+++ b/libs.versions.toml
@@ -0,0 +1,79 @@
+#
+# ******************************************************************************
+#   Copyright 2022 Spectra Logic Corporation. All Rights Reserved.
+#   Licensed under the Apache License, Version 2.0 (the "License"). You may not use
+#   this file except in compliance with the License. A copy of the License is located at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+#   or in the "license" file accompanying this file.
+#   This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+#   CONDITIONS OF ANY KIND, either express or implied. See the License for the
+#   specific language governing permissions and limitations under the License.
+# ****************************************************************************
+#
+[versions]
+#
+# project version
+#
+ds3SdkVersion = "5.6.3-SNAPSHOT"
+#
+# dependency versions
+#
+commonsLang3Version = "3.12.0"
+commonsCodecVersion = "1.15"
+commonsIoVersion = "2.11.0"
+findbugsVersion = "3.0.1"
+guavaVersion = "32.1.2-jre"
+hamcrestVersion = "2.2"
+httpclientVersion = "4.5.13"
+jacksonVersion = "2.14.3" # stuck on 2.14.x until we move away from Java 8 as a minimum supported version
+jnaVersion = "5.12.1"
+junitJupiterVersion = "5.9.0"
+junitVersion = "4.13.2"
+kotlinVersion = "1.6.10"
+mockitoVersion = "4.7.0"
+slf4jVersion = "1.7.36"
+woodstoxVersion = "4.4.1"
+
+[libraries]
+commonsCodec = { group = "commons-codec", name = "commons-codec", version.ref = "commonsCodecVersion" }
+commonsIo = { group = "commons-io", name = "commons-io", version.ref = "commonsIoVersion" }
+findbugs = { group = "com.google.code.findbugs", name = "annotations", version.ref = "findbugsVersion" }
+guava = { group = "com.google.guava", name = "guava", version.ref = "guavaVersion" }
+httpclient = { group = "org.apache.httpcomponents", name = "httpclient", version.ref = "httpclientVersion" }
+jacksonBom = { group = "com.fasterxml.jackson", name = "jackson-bom", version.ref = "jacksonVersion" }
+## jackson version controlled by jackson-bom
+jacksonDatatypeJdk8 = { group = "com.fasterxml.jackson.datatype", name="jackson-datatype-jdk8" }
+jacksonDataformatXml = { group = "com.fasterxml.jackson.dataformat", name = "jackson-dataformat-xml" }
+## end jackson-bom controlled dependencies
+jna = { group = "net.java.dev.jna", name = "jna", version.ref = "jnaVersion" }
+jnaPlatform = { group = "net.java.dev.jna", name = "jna-platform", version.ref = "jnaVersion" }
+kotlinBom = { group = "org.jetbrains.kotlin", name = "kotlin-bom", version.ref = "kotlinVersion" }
+## kotlin version controlled by kotlin-bom
+kotlinStdLib = { group = "org.jetbrains.kotlin", name = "kotlin-stdlib" }
+## end kotlin-bom controlled dependencies
+slf4jApi = { group = "org.slf4j", name = "slf4j-api", version.ref = "slf4jVersion" }
+woodstoxCoreAsl = { group = "org.codehaus.woodstox", name = "woodstox-core-asl", version.ref = "woodstoxVersion" }
+#
+# test only libraries
+#
+commonsLang3 = { group = "org.apache.commons",name = "commons-lang3", version.ref = "commonsLang3Version" }
+hamcrest = { group = "org.hamcrest", name = "hamcrest", version.ref = "hamcrestVersion" }
+junit = { group = "junit", name = "junit", version.ref = "junitVersion"}
+junitJupiterApi = { group = "org.junit.jupiter", name = "junit-jupiter-api", version.ref = "junitJupiterVersion" }
+junitVintageEngine = { group = "org.junit.vintage", name = "junit-vintage-engine", version.ref = "junitJupiterVersion" }
+mockitoBom = { group = "org.mockito", name = "mockito-bom", version.ref = "mockitoVersion" }
+mockitoCore = { group = "org.mockito", name = "mockito-core" }
+slf4jSimple = { group = "org.slf4j", name = "slf4j-simple", version.ref = "slf4jVersion" }
+#
+# plugins used in buildSrc/
+#
+kotlinJvmPlugin = { group = "org.jetbrains.kotlin", name = "kotlin-gradle-plugin", version.ref = "kotlinVersion" }
+owaspDepCheckPlugin = { group = "org.owasp", name = "dependency-check-gradle", version = "8.4.0" }
+versionsPlugin = { group = "com.github.ben-manes", name = "gradle-versions-plugin", version = "0.47.0" }
+
+[plugins]
+gradleDepVers = { id = "com.github.ben-manes.versions", version = "0.47.0" }
+gitVersionPlugin = { id = "com.palantir.git-version", version = "0.12.2" } # stuck on this version until we move from building with java 8
+shadowPlugin = { id = "com.github.johnrengelman.shadow", version = "7.1.2" }
\ No newline at end of file
diff --git a/project_files/owasp/dependency-check-suppression.xml b/project_files/owasp/dependency-check-suppression.xml
index 33ba7e3ae..ee60d3e7c 100644
--- a/project_files/owasp/dependency-check-suppression.xml
+++ b/project_files/owasp/dependency-check-suppression.xml
@@ -7,4 +7,15 @@
     ^(?!pkg:maven/commons-net/commons-net).*$
     cpe:/a:apache:commons_net
   
+  
+    
+    ^pkg:maven/com\.fasterxml\.jackson\.core/jackson\-databind@.*$
+    CVE-2023-35116
+  
 
diff --git a/settings.gradle.kts b/settings.gradle.kts
index 47a8d8107..a1a1208f7 100644
--- a/settings.gradle.kts
+++ b/settings.gradle.kts
@@ -13,6 +13,10 @@
  * ****************************************************************************
  */
 
+plugins {
+    id("org.gradle.toolchains.foojay-resolver-convention").version("0.7.0")
+}
+
 rootProject.name = "ds3-java-sdk"
 
 include("ds3-interfaces")
@@ -29,53 +33,7 @@ dependencyResolutionManagement {
     }
     versionCatalogs {
         create("libs") {
-            version("kotlin", "1.6.10")
-            version("commons-codec", "1.15")
-            version("commons-io", "2.11.0")
-            version("commons-lang", "3.12.0")
-            version("findbugs", "3.0.1")
-            version("git-version-plugin", "0.12.2") // stuck on this version until we move from building with java 8
-            version("guava", "31.1-jre")
-            version("hamcrest", "2.2")
-            version("httpclient", "4.5.13")
-            version("jackson", "2.14.1")
-            version("jna", "5.12.1")
-            version("junit", "4.13.2")
-            version("junit-jupiter", "5.9.0")
-            version("mockito", "4.7.0")
-            version("shadow-plugin", "7.1.2")
-            version("slf4j", "1.7.36")
-            version("woodstox", "4.4.1")
-
-            library("commonsCodec", "commons-codec", "commons-codec").versionRef("commons-codec")
-            library("commonsIo", "commons-io","commons-io").versionRef("commons-io")
-            library("findbugs", "com.google.code.findbugs", "annotations").versionRef("findbugs")
-            library("guava", "com.google.guava", "guava").versionRef("guava")
-            library("httpclient", "org.apache.httpcomponents", "httpclient").versionRef("httpclient")
-            library("jacksonBom", "com.fasterxml.jackson", "jackson-bom").versionRef("jackson")
-            library("jacksonDatatypeJdk8", "com.fasterxml.jackson.datatype", "jackson-datatype-jdk8").withoutVersion()
-            library("jacksonDataformatXml", "com.fasterxml.jackson.dataformat", "jackson-dataformat-xml").withoutVersion()
-            library("jna", "net.java.dev.jna", "jna").versionRef("jna")
-            library("jnaPlatform", "net.java.dev.jna", "jna-platform").versionRef("jna")
-            library("kotlinStdLib", "org.jetbrains.kotlin", "kotlin-stdlib").versionRef("kotlin")
-            library("slf4jApi", "org.slf4j", "slf4j-api").versionRef("slf4j")
-            library("woodstoxCoreAsl", "org.codehaus.woodstox", "woodstox-core-asl").versionRef("woodstox")
-
-            // test only libraries
-            library("commonsLang", "org.apache.commons","commons-lang3").versionRef("commons-lang")
-            library("hamcrest", "org.hamcrest", "hamcrest").versionRef("hamcrest")
-            library("junit", "junit", "junit").versionRef("junit")
-            library("junitJupiterApi", "org.junit.jupiter", "junit-jupiter-api").versionRef("junit-jupiter")
-            library("junitVintageEngine", "org.junit.vintage", "junit-vintage-engine").versionRef("junit-jupiter")
-            library("mockitoBom", "org.mockito", "mockito-bom").versionRef("mockito")
-            library("mockitoCore", "org.mockito", "mockito-core").withoutVersion()
-            library("slf4jSimple", "org.slf4j", "slf4j-simple").versionRef("slf4j")
-
-            // gradle plugins
-            plugin("gitVersionPlugin", "com.palantir.git-version").versionRef("git-version-plugin")
-            plugin("kotlinJvmPlugin", "org.jetbrains.kotlin.jvm").versionRef("kotlin")
-            plugin("shadowPlugin", "com.github.johnrengelman.shadow").versionRef("shadow-plugin")
-            // Looking for the owasp dependency check plug-in? It lives in buildSrc/build.gradle.kts
+            from(files("libs.versions.toml"))
         }
     }
 }