Package com.juliaaano.payload
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 byMediaType
.Payload implementations are provisioned by
PayloadFactory
.- Author:
- Juliano Boesel Mohr
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
get()
Provides the payload in the Java object format represented by T.String
raw()
Provides the payload in its raw / native format as aString
.
-