Class DefaultResponseMapper
java.lang.Object
io.fluxzero.sdk.tracking.handling.DefaultResponseMapper
- All Implemented Interfaces:
ResponseMapper
A default implementation of the
ResponseMapper interface that simply wraps the response in a Message-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DefaultResponseMapper
public DefaultResponseMapper()
-
-
Method Details
-
map
Description copied from interface:ResponseMapper- Specified by:
mapin interfaceResponseMapper- Parameters:
response- the response object to be mapped- Returns:
- a
Messagerepresenting the response
-
map
Description copied from interface:ResponseMapperMaps the given response object and metadata to aMessage.- Specified by:
mapin interfaceResponseMapper- Parameters:
response- the response object to be transformedmetadata- optional metadata to include in the message- Returns:
- a
Messagerepresenting the response and metadata
-