Class VectorsControllerConfiguration
-
- All Implemented Interfaces:
-
org.springframework.web.servlet.config.annotation.WebMvcConfigurer
@Configuration()@Profile(value = {"vectors"})@Order(value = 2147483647) public final class VectorsControllerConfiguration implements WebMvcConfigurer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classVectorsControllerConfiguration.S3VectorsExceptionHandlerHandles S3VectorsExceptions and serializes them to JSON with
__typeandmessagefields, matching the AWS S3 Vectors error wire format.public final classVectorsControllerConfiguration.IllegalStateVectorsExceptionHandler
-
Field Summary
Fields Modifier and Type Field Description private final Validatorvalidatorprivate final MessageCodesResolvermessageCodesResolver
-
Constructor Summary
Constructors Constructor Description VectorsControllerConfiguration()
-
Method Summary
-
Methods inherited from class org.springframework.web.servlet.config.annotation.WebMvcConfigurer
addArgumentResolvers, addCorsMappings, addErrorResponseInterceptors, addFormatters, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureApiVersioning, configureAsyncSupport, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, getMessageCodesResolver, getValidator -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
vectorsJsonHttpMessageConverter
@Bean() final JacksonJsonHttpMessageConverter vectorsJsonHttpMessageConverter()
Registers a JacksonJsonHttpMessageConverter backed by an explicit Kotlin-aware JsonMapper. Spring Boot picks up
HttpMessageConverterbeans registered this way. This converter is placed at position 0 (highest priority) via extendMessageConverters, ensuring S3 Vectors request/response bodies are serialized as JSON using the Kotlin module.
-
configureContentNegotiation
Unit configureContentNegotiation(ContentNegotiationConfigurer configurer)
-
extendMessageConverters
Unit extendMessageConverters(List<HttpMessageConverter<?>> converters)
-
vectorBucketController
@Bean() final VectorBucketController vectorBucketController(VectorBucketService vectorBucketService)
-
vectorIndexController
@Bean() final VectorIndexController vectorIndexController(VectorIndexService vectorIndexService)
-
vectorController
@Bean() final VectorController vectorController(VectorService vectorService)
-
vectorQueryController
@Bean() final VectorQueryController vectorQueryController(VectorQueryService vectorQueryService)
-
vectorPolicyController
@Bean() final VectorPolicyController vectorPolicyController(VectorBucketService vectorBucketService)
-
vectorTaggingController
@Bean() final VectorTaggingController vectorTaggingController(VectorBucketService vectorBucketService, VectorIndexService vectorIndexService)
-
s3VectorsExceptionHandler
@Bean() final VectorsControllerConfiguration.S3VectorsExceptionHandler s3VectorsExceptionHandler()
-
illegalStateVectorsExceptionHandler
@Bean() final VectorsControllerConfiguration.IllegalStateVectorsExceptionHandler illegalStateVectorsExceptionHandler()
-
-
-
-