Class RestJacksonModule
java.lang.Object
org.apache.tapestry5.rest.jackson.modules.RestJacksonModule
Defines services and and contributions for the Tapestry integration with Jackson Databind.
Besides contributing a fallback
ObjectMapperSource, it also creates a
ComponentEventResultProcessor for all classes returned by
MappedEntityManager.getEntities().- Since:
- 5.8.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectMapperSourcebuildObjectMapperSource(List<ObjectMapperSource> configuration, ChainBuilder chainBuilder) Builds theObjectMapperSourceservice.static com.github.victools.jsonschema.generator.SchemaGeneratorProvides the defaultSchemaGeneratorinstance with a default configuration.static voidcontributeComponentEventResultProcessor(MappedConfiguration<Class, ComponentEventResultProcessor> configuration, MappedEntityManager mappedEntityManager, Response response, ObjectMapperSource objectMapperSource, String outputEncoding) Adds a (entity class, JacksonComponentEventResultProcessor) for each entity class returned byMappedEntityManager.getEntities().static voidContributesJacksonHttpRequestBodyConverterto theHttpRequestBodyConverterservice.static voidcontributeObjectMapperSource(OrderedConfiguration<ObjectMapperSource> configuration) ContributesFallbackObjectMapperSource(contribution idFallback) so we guarantee there's always anObjectMapperprovided for any type.static voidcontributeOpenApiTypeDescriber(OrderedConfiguration<OpenApiTypeDescriber> configuration) ContributesJacksonOpenApiTypeDescriberto theOpenApiTypeDescriberservice to generate J.
-
Constructor Details
-
RestJacksonModule
public RestJacksonModule()
-
-
Method Details
-
contributeObjectMapperSource
public static void contributeObjectMapperSource(OrderedConfiguration<ObjectMapperSource> configuration) ContributesFallbackObjectMapperSource(contribution idFallback) so we guarantee there's always anObjectMapperprovided for any type. -
contributeComponentEventResultProcessor
public static void contributeComponentEventResultProcessor(MappedConfiguration<Class, ComponentEventResultProcessor> configuration, MappedEntityManager mappedEntityManager, Response response, ObjectMapperSource objectMapperSource, @Symbol("tapestry.charset") String outputEncoding) Adds a (entity class, JacksonComponentEventResultProcessor) for each entity class returned byMappedEntityManager.getEntities(). -
contributeHttpRequestBodyConverter
public static void contributeHttpRequestBodyConverter(OrderedConfiguration<HttpRequestBodyConverter> configuration) ContributesJacksonHttpRequestBodyConverterto theHttpRequestBodyConverterservice. -
buildObjectMapperSource
public static ObjectMapperSource buildObjectMapperSource(List<ObjectMapperSource> configuration, ChainBuilder chainBuilder) Builds theObjectMapperSourceservice. -
buildSchemaGenerator
Provides the defaultSchemaGeneratorinstance with a default configuration. -
contributeOpenApiTypeDescriber
public static void contributeOpenApiTypeDescriber(OrderedConfiguration<OpenApiTypeDescriber> configuration) ContributesJacksonOpenApiTypeDescriberto theOpenApiTypeDescriberservice to generate J.
-