类的使用
com.baidubce.services.bos.model.CorsConfiguration
-
使用CorsConfiguration的程序包 程序包 说明 com.baidubce.services.bos.model -
-
com.baidubce.services.bos.model中CorsConfiguration的使用
返回CorsConfiguration的com.baidubce.services.bos.model中的方法 修饰符和类型 方法 说明 CorsConfigurationCorsConfiguration. withAllowedExposeHeaders(List<String> allowedExposeHeaders)Sets allowedExposeHeaders of Bucket CORS.CorsConfigurationCorsConfiguration. withAllowedHeaders(List<String> allowedHeaders)Sets allowedHeaders of Bucket CORS.CorsConfigurationCorsConfiguration. withAllowedMethods(List<AllowedMethods> allowedMethods)Sets allowedMethods of Bucket CORS.CorsConfigurationCorsConfiguration. withAllowedOrigins(List<String> allowedOrigins)Sets allowedOrigins of Bucket CORS.CorsConfigurationCorsConfiguration. withMaxAgeSeconds(int maxAgeSeconds)Sets maxAgeSeconds of Bucket CORS.返回变量类型为CorsConfiguration的类型的com.baidubce.services.bos.model中的方法 修饰符和类型 方法 说明 List<CorsConfiguration>GetBucketCorsResponse. getCorsConfiguration()Gets corsConfiguration of GetBucketCorsResponse.List<CorsConfiguration>SetBucketCorsRequest. getCorsConfigurationsList()Gets the corsConfigurationsList for Bucket CORS.类型变量类型为CorsConfiguration的com.baidubce.services.bos.model中的方法参数 修饰符和类型 方法 说明 voidGetBucketCorsResponse. setCorsConfiguration(List<CorsConfiguration> corsConfiguration)Sets corsConfiguration of GetBucketCorsResponse.voidSetBucketCorsRequest. setCorsConfigurationsList(List<CorsConfiguration> corsConfigurationsList)Sets the corsConfigurationsList for Bucket CORS.类型变量类型为CorsConfiguration的com.baidubce.services.bos.model中的构造器参数 构造器 说明 GetBucketCorsResponse(List<CorsConfiguration> corsConfiguration)Constructs a new GetBucketCorsResponse object for GetBucketCorsResponse.SetBucketCorsRequest(String bucketName, List<CorsConfiguration> corsConfigurationsList)Constructs a new SetBucketCorsRequest object, ready to set the specified Bucket CORS.
-