@ -32,6 +32,12 @@ public class S3Config extends CommonRepoConfig {
@Identifier ( "bucket" )
private Conf < String > bucket = HolderKit . simple ( StringUtils . EMPTY ) ;
@Identifier ( "enablePathStyleAccess" )
private Conf < Boolean > enablePathStyleAccess = HolderKit . simple ( false ) ;
@Identifier ( "signerOverride" )
private Conf < String > signerOverride = HolderKit . simple ( StringUtils . EMPTY ) ;
@GetConfig ( "endPoint" )
public String getEndPoint ( ) {
return endPoint . get ( ) ;
@ -72,6 +78,26 @@ public class S3Config extends CommonRepoConfig {
this . bucket . set ( bucket ) ;
}
@GetConfig ( "enablePathStyleAccess" )
public boolean isEnablePathStyleAccess ( ) {
return enablePathStyleAccess . get ( ) ;
}
@SetConfig ( "enablePathStyleAccess" )
public void setEnablePathStyleAccess ( boolean enablePathStyleAccess ) {
this . enablePathStyleAccess . set ( enablePathStyleAccess ) ;
}
@GetConfig ( "signerOverride" )
public String getSignerOverride ( ) {
return signerOverride . get ( ) ;
}
@SetConfig ( "signerOverride" )
public void setSignerOverride ( String signerOverride ) {
this . signerOverride . set ( signerOverride ) ;
}
@Override
public void update ( String key ) {
super . update ( key ) ;
@ -81,6 +107,8 @@ public class S3Config extends CommonRepoConfig {
this . setRegion ( newConfig . getRegion ( ) ) ;
this . setAccessKeyId ( newConfig . getAccessKeyId ( ) ) ;
this . setBucket ( newConfig . getBucket ( ) ) ;
this . setEnablePathStyleAccess ( newConfig . isEnablePathStyleAccess ( ) ) ;
this . setSignerOverride ( newConfig . getSignerOverride ( ) ) ;
}
}
@ -91,6 +119,8 @@ public class S3Config extends CommonRepoConfig {
cloned . region = ( Conf < String > ) region . clone ( ) ;
cloned . accessKeyId = ( Conf < String > ) accessKeyId . clone ( ) ;
cloned . bucket = ( Conf < String > ) bucket . clone ( ) ;
cloned . enablePathStyleAccess = ( Conf < Boolean > ) enablePathStyleAccess . clone ( ) ;
cloned . signerOverride = ( Conf < String > ) signerOverride . clone ( ) ;
return cloned ;
}
}