public NotificationConfiguration getBucketNotification ( String bucketName ) throws InvalidBucketNameException , InvalidObjectPrefixException , NoSuchAlgorithmException , InsufficientDataException , IOException , InvalidKeyException , NoResponseException , XmlPullParserException , ErrorResponseException , InternalException { Map < String , String > queryParamMap = new HashMap <> ( ) ; queryParamMap . put ( "notification" , "" ) ; HttpResponse response = executeGet ( bucketName , null , null , queryParamMap ) ; NotificationConfiguration result = new NotificationConfiguration ( ) ; try { result . parseXml ( response . body ( ) . charStream ( ) ) ; } finally { response . body ( ) . close ( ) ; } return result ; }
Get bucket notification configuration