public final class ApiResponseConversionUtils extends Object
ApiResponse
objects.Modifier and Type | Method and Description |
---|---|
static ApiResponseSet<String> |
httpMessageToSet(int historyId,
HttpMessage msg)
Converts the given HTTP message, of unknown type, into an
ApiResponseSet . |
static ApiResponseSet<String> |
httpMessageToSet(int historyId,
int historyType,
HttpMessage msg)
Converts the given HTTP message into an
ApiResponseSet . |
public static ApiResponseSet<String> httpMessageToSet(int historyId, HttpMessage msg)
ApiResponseSet
.
Prefer the use of httpMessageToSet(int, int, HttpMessage)
, which allows to
provide the type of the message.
historyId
- the ID of the messagemsg
- the HTTP message to be convertedApiResponseSet
with the ID, type and the HTTP messagepublic static ApiResponseSet<String> httpMessageToSet(int historyId, int historyType, HttpMessage msg)
ApiResponseSet
.historyId
- the ID of the messagehistoryType
- the type of the messagemsg
- the HTTP message to be convertedApiResponseSet
with the ID, type and the HTTP message