Interface JsonbSupportConfig

All Superinterfaces:
MediaSupportConfig, Prototype.Api, Prototype.Factory<JsonbSupport>
All Known Implementing Classes:
JsonbSupportConfig.BuilderBase.JsonbSupportConfigImpl

public interface JsonbSupportConfig extends Prototype.Api, MediaSupportConfig
Configuration of the JsonbSupport.
See Also:
  • Method Details

    • builder

      static JsonbSupportConfig.Builder builder()
      Create a new fluent API builder to customize configuration.
      Returns:
      a new builder
    • builder

      Create a new fluent API builder from an existing instance.
      Parameters:
      instance - an existing instance used as a base for the builder
      Returns:
      a builder based on an instance
    • create

      static JsonbSupportConfig create(Config config)
      Create a new instance from configuration.
      Parameters:
      config - used to configure the new instance
      Returns:
      a new instance configured from configuration
    • create

      @Deprecated static JsonbSupportConfig create(Config config)
      Create a new instance from configuration.
      Parameters:
      config - used to configure the new instance
      Returns:
      a new instance configured from configuration
    • create

      static JsonbSupportConfig create()
      Create a new instance with default values.
      Returns:
      a new instance
    • jsonb

      Jsonb jsonb()
      Jsonb instance.
      Returns:
      jsonb instance
    • stringProperties

      Map<String,String> stringProperties()
      Jsonb String configuration properties. Properties are being ignored if specific Jsonb is set.
      Returns:
      jsonb config properties
    • booleanProperties

      Map<String,Boolean> booleanProperties()
      Jsonb boolean configuration properties. Properties are being ignored if specific Jsonb is set.
      Returns:
      jsonb config properties
    • classProperties

      Map<String,Class<?>> classProperties()
      Jsonb Class configuration properties. Properties are being ignored if specific Jsonb is set.
      Returns:
      jsonb config properties
    • properties

      Map<String,Object> properties()
      Jsonb configuration properties. Properties are being ignored if specific Jsonb is set.
      Returns:
      jsonb config properties
    • name

      String name()
      Description copied from interface: MediaSupportConfig
      Name of the support. Each extension should provide its own default. This is to enable multiple instance of the same type.
      Specified by:
      name in interface MediaSupportConfig
      Returns:
      name of the support
    • acceptedMediaTypes

      Set<MediaType> acceptedMediaTypes()
      Types accepted by this media support. When server processes the response, it checks the Accept header, to choose the right media support, if there are more supports available for the provided entity object.

      Supported accepted types defaults to "application/json", and "application/json-patch+json".

      Specified by:
      acceptedMediaTypes in interface MediaSupportConfig
      Returns:
      accepted media types
    • contentType

      HttpMediaType contentType()
      Content type to use if not configured (in response headers for server, and in request headers for client).
      Specified by:
      contentType in interface MediaSupportConfig
      Returns:
      content type to use, defaults to HttpMediaTypes.JSON