Skip to content

Commit

Permalink
Make location optional
Browse files Browse the repository at this point in the history
  • Loading branch information
binwiederhier committed Apr 20, 2014
1 parent 1af0ddf commit 6490224
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import java.util.Map;

import org.jets3t.service.model.S3Bucket;
import org.jets3t.service.security.AWSCredentials;
import org.jets3t.service.security.ProviderCredentials;
import org.syncany.connection.plugins.Connection;
Expand Down Expand Up @@ -52,9 +53,14 @@ public PluginOptionSpecs getOptionSpecs() {
new PluginOptionSpec("accessKey", "Access Key", ValueType.STRING, true, false, null),
new PluginOptionSpec("secretKey", "Secret Key", ValueType.STRING, true, true, null),
new PluginOptionSpec("bucket", "Bucket Name", ValueType.STRING, true, false, null),
new PluginOptionSpec("location", "Location", ValueType.STRING, true, false, null)
new PluginOptionSpec("location", "Location", ValueType.STRING, false, false, S3Bucket.LOCATION_US_WEST)
);
}

@Override
public TransferManager createTransferManager() {
return new S3TransferManager(this);
}

public String getAccessKey() {
return accessKey;
Expand Down Expand Up @@ -88,11 +94,6 @@ public ProviderCredentials getCredentials() {
return credentials;
}

@Override
public TransferManager createTransferManager() {
return new S3TransferManager(this);
}

public String getLocation() {
return location;
}
Expand Down

0 comments on commit 6490224

Please sign in to comment.