Class ResponseFactory

java.lang.Object
com.mirth.connect.server.userutil.ResponseFactory

public class ResponseFactory extends Object
Provides methods to create Response objects.
  • Method Details

    • getSentResponse

      public static Response getSentResponse(String message)
      Returns a Response representing a successfully sent message.
      Parameters:
      message - The response data to store.
      Returns:
      The instantiated Response object.
    • getErrorResponse

      public static Response getErrorResponse(String message)
      Returns a Response representing a erred message.
      Parameters:
      message - The response data to store.
      Returns:
      The instantiated Response object.
    • getFilteredResponse

      public static Response getFilteredResponse(String message)
      Returns a Response representing a filtered message.
      Parameters:
      message - The response data to store.
      Returns:
      The instantiated Response object.
    • getQueuedResponse

      public static Response getQueuedResponse(String message)
      Returns a Response representing a queued message.
      Parameters:
      message - The response data to store.
      Returns:
      The instantiated Response object.