HttpMessageAutoConfiguration class final

Auto-configuration class for HTTP message converters in Jetleaf.

This configuration provides the default infrastructure pods required for reading and writing HTTP request and response bodies:

  • Collection of HttpMessageConverters
  • String, byte array, and JSON (Jetson2) converters

pods are marked with @Role(DesignRole.INFRASTRUCTURE) indicating that they are framework infrastructure. Conditional registration allows developers to override with custom pods if needed.

Annotations
  • @Named.new(HttpMessageAutoConfiguration.NAME)
  • @AutoConfiguration.new()
  • @Role.new(DesignRole.INFRASTRUCTURE)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

byteArrayHttpMessageConverter() HttpMessageConverter
Provides a byte array HTTP message converter.
formHttpMessageConverter() HttpMessageConverter
Provides a form data HTTP message converter.
httpMessageConverters() HttpMessageConverters
Provides the registry of HTTP message converters.
jetson2HttpMessageConverter(ObjectMapper mapper) HttpMessageConverter
Provides a JSON HTTP message converter using Jetson2.
jetson2XmlHttpMessageConverter(ObjectMapper mapper) HttpMessageConverter
Provides an XML HTTP message converter using Jetson2.
jetson2YamlHttpMessageConverter(ObjectMapper mapper) HttpMessageConverter
Provides a YAML HTTP message converter using Jetson2.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
stringHttpMessageConverter() HttpMessageConverter
Provides a String HTTP message converter.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

BYTE_ARRAY_HTTP_MESSAGE_CONVERTER_POD_NAME → const String
Pod name for the byte array HTTP message converter.
FORM_HTTP_MESSAGE_CONVERTER_POD_NAME → const String
Pod name for the form HTTP message converter.
HTTP_MESSAGE_CONVERTERS_POD_NAME → const String
Pod name for the collection of HTTP message converters.
JETSON_2_HTTP_MESSAGE_CONVERTER_POD_NAME → const String
Pod name for the JSON (Jetson2) HTTP message converter.
JETSON_2_XML_HTTP_MESSAGE_CONVERTER_POD_NAME → const String
Pod name for the XML HTTP message converter using Jetson2.
JETSON_2_YAML_HTTP_MESSAGE_CONVERTER_POD_NAME → const String
Pod name for the YAML HTTP message converter using Jetson2.
NAME → const String
Class name pod for this configuration.
STRING_HTTP_MESSAGE_CONVERTER_POD_NAME → const String
Pod name for the String HTTP message converter.