com.mirth.connect.server.userutil
Class ResponseFactory

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

public class ResponseFactory
extends java.lang.Object

Provides methods to create Response objects.


Method Summary
static Response getErrorResponse(java.lang.String message)
          Returns a Response representing a erred message.
static Response getFailureResponse(java.lang.String message)
          Deprecated. This method is deprecated and will soon be removed. Please use getErrorResponse(message) instead.
static Response getFilteredResponse(java.lang.String message)
          Returns a Response representing a filtered message.
static Response getQueudResponse(java.lang.String message)
          Deprecated. This method is deprecated and will soon be removed. Please use getQueuedResponse(message) instead.
static Response getQueuedResponse(java.lang.String message)
          Returns a Response representing a queued message.
static Response getResponse(java.lang.String message)
          Deprecated. This method is deprecated and will soon be removed. The UNKNOWN status has also been removed; this method will return a response with the SENT status instead.
static Response getSentResponse(java.lang.String message)
          Returns a Response representing a successfully sent message.
static Response getSuccessResponse(java.lang.String message)
          Deprecated. This method is deprecated and will soon be removed. Please use getSentResponse(message) instead.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSentResponse

public static Response getSentResponse(java.lang.String message)
Returns a Response representing a successfully sent message.

Parameters:
message - The response data to store.
Returns:
The instantiated Response object.

getSuccessResponse

public static Response getSuccessResponse(java.lang.String message)
Deprecated. This method is deprecated and will soon be removed. Please use getSentResponse(message) instead.

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(java.lang.String message)
Returns a Response representing a erred message.

Parameters:
message - The response data to store.
Returns:
The instantiated Response object.

getFailureResponse

public static Response getFailureResponse(java.lang.String message)
Deprecated. This method is deprecated and will soon be removed. Please use getErrorResponse(message) instead.

Returns a Response representing a erred message.

Parameters:
message - The response data to store.
Returns:
The instantiated Response object.

getFilteredResponse

public static Response getFilteredResponse(java.lang.String message)
Returns a Response representing a filtered message.

Parameters:
message - The response data to store.
Returns:
The instantiated Response object.

getQueudResponse

public static Response getQueudResponse(java.lang.String message)
Deprecated. This method is deprecated and will soon be removed. Please use getQueuedResponse(message) instead.

Returns a Response representing a queued message.

Parameters:
message - The response data to store.
Returns:
The instantiated Response object.

getQueuedResponse

public static Response getQueuedResponse(java.lang.String message)
Returns a Response representing a queued message.

Parameters:
message - The response data to store.
Returns:
The instantiated Response object.

getResponse

public static Response getResponse(java.lang.String message)
Deprecated. This method is deprecated and will soon be removed. The UNKNOWN status has also been removed; this method will return a response with the SENT status instead.

Returns a Response representing a successfully sent message.

Parameters:
message - The response data to store.
Returns:
The instantiated Response object.