Class DefaultResponseMapper
java.lang.Object
io.fluxcapacitor.javaclient.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:
map
in interfaceResponseMapper
- Parameters:
response
- the response object to be mapped- Returns:
- a
Message
representing the response
-
map
Description copied from interface:ResponseMapper
Maps the given response object and metadata to aMessage
.- Specified by:
map
in interfaceResponseMapper
- Parameters:
response
- the response object to be transformedmetadata
- optional metadata to include in the message- Returns:
- a
Message
representing the response and metadata
-