Resource class implementing /messages/{id} path methods. More...
Public Member Functions | |
MessageResource (UriInfo uriInfo, EntityManager entityManagerData, EntityManager entityManagerConfig, String messageId, boolean isMessageInQueue, boolean needsPayload) | |
Creates a new instance of MessageResource. More... | |
JSONObject | findDetailsMessage (JSONObject message) throws IllegalAccessException, InstantiationException, ClassNotFoundException, JSONException, IllegalArgumentException, SecurityException |
Method findDetailsMessage. More... | |
JSONObject | getMessage () |
GET method : returns an application/json formatted message. More... | |
EventsResource | getEvents () |
Method getEvents. More... | |
Response | updateMessage (JSONObject jsonEntity) |
PUT method : updates the message. More... | |
Response | deleteMessage () |
DELETE method : deletes the message. More... | |
String | toString () |
Method toString. More... | |
Static Public Member Functions | |
static JSONObject | asJson (RoutedMessageEntity messageEntity, boolean isMessageInQueue, boolean needsPayload, String path) throws JSONException |
Returns the resource formatted as json. More... | |
static JSONObject | asJson (EntryQueueEntity messageEntity, boolean isMessageInQueue, boolean needsPayload, String path) throws JSONException |
Private Attributes | |
UriInfo | uriInfo |
Field uriInfo. More... | |
EntityManager | entityManagerData |
Field entityManagerData. More... | |
EntityManager | entityManagerConfig |
Field entityManagerConfig. More... | |
RoutedMessageEntity | messageEntity |
Field messageEntity. More... | |
EntryQueueEntity | messageQueueEntity |
Field messageQueueEntity. More... | |
boolean | isMessageInQueue = false |
Field isMessageInQueue. More... | |
boolean | needsPayload = false |
Field needsPayload. More... | |
String | messageId |
Field messageId. More... | |
Static Private Attributes | |
static Logger | logger |
Field logger. More... | |
Resource class implementing /messages/{id} path methods.
|
inline |
Creates a new instance of MessageResource.
uriInfo | UriInfo actual uri passed by parent resource |
entityManagerData | EntityManager passed by parent resource |
messageId | String |
isMessageInQueue | boolean |
needsPayload | boolean |
entityManagerConfig | EntityManager |
|
inlinestatic |
Returns the resource formatted as json.
messageEntity | BusinessMessage |
path | String |
isMessageInQueue | boolean |
needsPayload | boolean |
JSONException |
|
inlinestatic |
|
inline |
DELETE method : deletes the message.
|
inline |
Method findDetailsMessage.
message | JSONObject |
IllegalAccessException | |
InstantiationException | |
ClassNotFoundException | |
JSONException | |
NoSuchMethodException | |
InvocationTargetException | |
SecurityException | |
IllegalArgumentException |
|
inline |
Method getEvents.
|
inline |
GET method : returns an application/json formatted message.
|
inline |
Method toString.
|
inline |
PUT method : updates the message.
jsonEntity | JSONObject the message holding new values |
|
private |
Field entityManagerConfig.
|
private |
Field entityManagerData.
|
private |
Field isMessageInQueue.
|
staticprivate |
Field logger.
|
private |
Field messageEntity.
|
private |
Field messageId.
|
private |
Field messageQueueEntity.
|
private |
Field needsPayload.
|
private |
Field uriInfo.