Interface Encoder<T,​S>

    • Method Detail

      • encode

        T encode​(S objectToEncode)
          throws EncodingException
        Encodes the specified object.
        Parameters:
        objectToEncode - the object to encode
        Returns:
        the encoded object
        Throws:
        EncodingException - if an error occurs
      • getContentType

        MediaType getContentType()
        Returns:
        the content type of the encoded response.