예제 #1
0
 public static Properties defaultProperties() {
   Properties properties = new Properties();
   properties.putAll(Region.regionPropertiesS3());
   properties.setProperty(PROPERTY_ENDPOINT, "https://s3.amazonaws.com");
   properties.setProperty(
       PROPERTY_REGION + "." + US_STANDARD + "." + ENDPOINT, "https://s3.amazonaws.com");
   properties.setProperty(
       PROPERTY_REGION + "." + US_WEST_1 + "." + ENDPOINT, "https://s3-us-west-1.amazonaws.com");
   properties.setProperty(
       PROPERTY_REGION + "." + US_WEST_2 + "." + ENDPOINT, "https://s3-us-west-2.amazonaws.com");
   properties.setProperty(
       PROPERTY_REGION + "." + SA_EAST_1 + "." + ENDPOINT, "https://s3-sa-east-1.amazonaws.com");
   properties.setProperty(
       PROPERTY_REGION + "." + EU_WEST_1 + "." + ENDPOINT, "https://s3-eu-west-1.amazonaws.com");
   properties.setProperty(
       PROPERTY_REGION + "." + AP_SOUTHEAST_1 + "." + ENDPOINT,
       "https://s3-ap-southeast-1.amazonaws.com");
   properties.setProperty(
       PROPERTY_REGION + "." + AP_SOUTHEAST_2 + "." + ENDPOINT,
       "https://s3-ap-southeast-2.amazonaws.com");
   properties.setProperty(
       PROPERTY_REGION + "." + AP_NORTHEAST_1 + "." + ENDPOINT,
       "https://s3-ap-northeast-1.amazonaws.com");
   return properties;
 }
 @Override
 protected Properties defaultProperties() {
   Properties properties = super.defaultProperties();
   properties.putAll(Region.regionPropertiesS3());
   properties.setProperty(PROPERTY_ENDPOINT, "https://s3.amazonaws.com");
   properties.setProperty(
       PROPERTY_REGION + "." + US_STANDARD + "." + ENDPOINT, "https://s3.amazonaws.com");
   properties.setProperty(
       PROPERTY_REGION + "." + US_WEST_1 + "." + ENDPOINT, "https://s3-us-west-1.amazonaws.com");
   properties.setProperty(
       PROPERTY_REGION + "." + "EU" + "." + ENDPOINT, "https://s3-eu-west-1.amazonaws.com");
   properties.setProperty(
       PROPERTY_REGION + "." + AP_SOUTHEAST_1 + "." + ENDPOINT,
       "https://s3-ap-southeast-1.amazonaws.com");
   properties.setProperty(
       PROPERTY_REGION + "." + AP_NORTHEAST_1 + "." + ENDPOINT,
       "https://s3-ap-northeast-1.amazonaws.com");
   return properties;
 }