API FinTP REST
 All Classes Namespaces Files Functions Variables
ro.allevo.fintpws.resources.QueuesResource Class Reference

Resource class implementing /queues path methods and acting as /queues/{name} sub-resource locator to QueueResource. More...

Inheritance diagram for ro.allevo.fintpws.resources.QueuesResource:
ro.allevo.fintpws.resources.PagedCollection

Public Member Functions

 QueuesResource (UriInfo uriInfo, EntityManager entityManagerConfig, EntityManager entityManagerData)
 Creates a new instance of QueuesResource. More...
 
QueueResource getQueue (@PathParam("name") String queueName)
 Returns a queue sub-resource named queueName. More...
 
JSONObject getQueuesAsJson ()
 GET method : returns an application/json formatted list of queues. More...
 
Response postForm (JSONObject jsonEntity)
 POST method : creates a queue. 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

EntityManager entityManagerConfig
 Field entityManagerConfig. More...
 
EntityManager entityManagerData
 Field entityManagerData. 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...
 

Detailed Description

Resource class implementing /queues path methods and acting as /queues/{name} sub-resource locator to QueueResource.

Author
horia
Version
Revision:
1.0

Constructor & Destructor Documentation

ro.allevo.fintpws.resources.QueuesResource.QueuesResource ( UriInfo  uriInfo,
EntityManager  entityManagerConfig,
EntityManager  entityManagerData 
)
inline

Creates a new instance of QueuesResource.

Parameters
uriInfoUriInfo
entityManagerConfigEntityManager
entityManagerDataEntityManager

Member Function Documentation

JSONObject ro.allevo.fintpws.resources.QueuesResource.asJson ( ) throws JSONException
inline

Returns the resource formatted as json.

Returns
JSONObject *
Exceptions
JSONException
QueueResource ro.allevo.fintpws.resources.QueuesResource.getQueue ( @PathParam("name") String  queueName)
inline

Returns a queue sub-resource named queueName.

Parameters
queueNameString Name of the queue as last element in the path
Returns
QueueResource The queue sub-resource
JSONObject ro.allevo.fintpws.resources.QueuesResource.getQueuesAsJson ( )
inline

GET method : returns an application/json formatted list of queues.

Returns
JSONObject The list of queues
Response ro.allevo.fintpws.resources.QueuesResource.postForm ( JSONObject  jsonEntity)
inline

POST method : creates a queue.

Parameters
jsonEntityJSONObject The queue to be created
Returns
Response The URI of the newly created queue *
Exceptions
JSONException*
JSONException

Member Data Documentation

EntityManager ro.allevo.fintpws.resources.QueuesResource.entityManagerConfig
private

Field entityManagerConfig.

EntityManager ro.allevo.fintpws.resources.QueuesResource.entityManagerData
private

Field entityManagerData.

Logger ro.allevo.fintpws.resources.QueuesResource.logger
staticprivate
Initial value:
= LogManager.getLogger(QueuesResource.class
.getName())

Field logger.


The documentation for this class was generated from the following file: