public void setBucketNotification ( String bucketName , NotificationConfiguration notificationConfiguration ) throws InvalidBucketNameException , InvalidObjectPrefixException , NoSuchAlgorithmException , InsufficientDataException , IOException , InvalidKeyException , NoResponseException , XmlPullParserException , ErrorResponseException , InternalException { Map < String , String > queryParamMap = new HashMap <> ( ) ; queryParamMap . put ( "notification" , "" ) ; HttpResponse response = executePut ( bucketName , null , null , queryParamMap , notificationConfiguration . toString ( ) , 0 ) ; response . body ( ) . close ( ) ; }
Set bucket notification configuration