Resource class implementing /messages path methods and acting as /messages/{id} sub-resource locator. More...
Public Member Functions | |
MessagesResource (UriInfo uriInfo, EntityManager entityManagerData, EntityManager entityManagerConfig, QueueEntity queueEntity) | |
Creates a new instance of MessagesResource. More... | |
MessageResource | getMessage (@PathParam("id") String messageGuid) |
Returns a message sub-resource with id messageId. More... | |
JSONObject | getMessagesAsJson () |
GET method : returns an application/json formatted list of messages. More... | |
Response | postForm (JSONObject jsonEntity) |
POST method : creates a message. More... | |
JSONObject | asJson () throws JSONException |
Returns the resource formatted as json. More... | |
Public Member Functions inherited from ro.allevo.fintpws.resources.PagedCollection | |
PagedCollection (UriInfo uriInfo, Query itemsQuery, Query totalQuery) | |
Constructor for PagedCollection. More... | |
List<?> | getItems () |
Method getItems. More... | |
Query | getItemsQuery () |
Method getItemsQuery. More... | |
Query | getTotalQuery () |
Method getTotalQuery. More... | |
void | setItemsQuery (Query itemsQuery) |
Method setItemsQuery. More... | |
void | setTotalQuery (Query totalQuery) |
Method setTotalQuery. More... | |
boolean | hasMore () |
Method has_more. More... | |
UriInfo | getUriInfo () |
Method getUriInfo. More... | |
Private Attributes | |
boolean | isMessageInQueue = false |
Field isMessageInQueue. More... | |
boolean | needsPayload = false |
Field needsPayload. More... | |
UriInfo | uriInfo |
Field uriInfo. More... | |
EntityManager | entityManagerData |
Field entityManagerData. More... | |
EntityManager | entityManagerConfig |
Field entityManagerConfig. More... | |
QueueEntity | queueEntity = null |
Field queueEntity. More... | |
Static Private Attributes | |
static Logger | logger |
Field logger. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from ro.allevo.fintpws.resources.PagedCollection | |
void | getPage () |
Method getPage. More... | |
JSONObject | asJson () throws JSONException |
Method asJson. More... | |
Resource class implementing /messages path methods and acting as /messages/{id} sub-resource locator.
|
inline |
Creates a new instance of MessagesResource.
uriInfo | UriInfo |
entityManagerData | EntityManager |
queueEntity | QueueEntity |
entityManagerConfig | EntityManager |
|
inline |
Returns the resource formatted as json.
JSONException |
|
inline |
Returns a message sub-resource with id messageId.
messageGuid | String |
|
inline |
GET method : returns an application/json formatted list of messages.
|
inline |
POST method : creates a message.
jsonEntity | JSONObject The message to be created |
JSONException |
|
private |
Field entityManagerConfig.
|
private |
Field entityManagerData.
|
private |
Field isMessageInQueue.
|
staticprivate |
Field logger.
|
private |
Field needsPayload.
|
private |
Field queueEntity.
|
private |
Field uriInfo.