Class ResponseFactory
java.lang.Object
com.mirth.connect.server.userutil.ResponseFactory
Provides methods to create Response objects.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ResponsegetErrorResponse(String message) Returns a Response representing a erred message.static ResponsegetFilteredResponse(String message) Returns a Response representing a filtered message.static ResponsegetQueuedResponse(String message) Returns a Response representing a queued message.static ResponsegetSentResponse(String message) Returns a Response representing a successfully sent message.
-
Method Details
-
getSentResponse
Returns a Response representing a successfully sent message.- Parameters:
message- The response data to store.- Returns:
- The instantiated Response object.
-
getErrorResponse
Returns a Response representing a erred message.- Parameters:
message- The response data to store.- Returns:
- The instantiated Response object.
-
getFilteredResponse
Returns a Response representing a filtered message.- Parameters:
message- The response data to store.- Returns:
- The instantiated Response object.
-
getQueuedResponse
Returns a Response representing a queued message.- Parameters:
message- The response data to store.- Returns:
- The instantiated Response object.
-