Interface EntityMapper.EntitySerializer<T>

Type Parameters:
T - Object type
Enclosing class:
EntityMapper

public static interface EntityMapper.EntitySerializer<T>
Serializer for HTTP request bodies
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the content type of the object
    @org.jetbrains.annotations.NotNull byte[]
    serialize​(T input)
    Serialize the input into a byte array, which can then be written to the HTTP request
  • Method Details

    • serialize

      @NotNull @org.jetbrains.annotations.NotNull byte[] serialize(@NotNull T input)
      Serialize the input into a byte array, which can then be written to the HTTP request
      Parameters:
      input - Input that should be serialized
      Returns:
      The serialized object
    • getContentType

      ContentType getContentType()
      Get the content type of the object
      Returns:
      Content Type