Interface Payload<T>

  • Type Parameters:
    T - the Java object type for which this payload is represented by.

    public interface Payload<T>
    A Payload is an Object Oriented representation of data in a raw, serialized format, such as JSON, XML, etc. The supported formats are determined by MediaType.

    Payload implementations are provisioned by PayloadFactory.

    Author:
    Juliano Boesel Mohr
    • Method Detail

      • raw

        String raw()
        Provides the payload in its raw / native format as a String.
        Returns:
        the raw 'serialized' payload
      • get

        T get()
        Provides the payload in the Java object format represented by T.
        Returns:
        the object 'deserialized' payload