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

Resource class implementing /api entry point and acting as sub-resource locator for all main resources. More...

Public Member Functions

 ApiResource ()
 Creates a new instance of ApiResource. More...
 
QueuesResource getQueues ()
 Sub-resource locator for /queues resource. More...
 
MessagesResource getMessages ()
 Sub-resource locator for /messages resource. More...
 
EventsResource getEvents ()
 Sub-resource locator for /events resource. More...
 
String getApisAsHTML ()
 
JSONArray getApisAsJsonArray ()
 Returns the list of supported apis formatted as an application/json array. More...
 

Static Public Member Functions

static JSONObject getMetaResource (String path, Class<?> resourceClass) throws JSONException
 Returns a JSONObject prefilled with the required metadata. More...
 

Private Attributes

UriInfo uriInfo
 Field uriInfo. More...
 
EntityManagerFactory configEntityManagerFactory
 Field configEntityManagerFactory. More...
 
EntityManagerFactory dataEntityManagerFactory
 Field dataEntityManagerFactory. More...
 

Static Private Attributes

static Logger logger
 Field logger. More...
 

Detailed Description

Resource class implementing /api entry point and acting as sub-resource locator for all main resources.

Author
horia
Version
Revision:
1.0

Constructor & Destructor Documentation

ro.allevo.fintpws.resources.ApiResource.ApiResource ( )
inline

Creates a new instance of ApiResource.

Member Function Documentation

String ro.allevo.fintpws.resources.ApiResource.getApisAsHTML ( )
inline
JSONArray ro.allevo.fintpws.resources.ApiResource.getApisAsJsonArray ( )
inline

Returns the list of supported apis formatted as an application/json array.

Returns
JSONArray *
Exceptions
JSONException
EventsResource ro.allevo.fintpws.resources.ApiResource.getEvents ( )
inline

Sub-resource locator for /events resource.

Returns
EventsResource
MessagesResource ro.allevo.fintpws.resources.ApiResource.getMessages ( )
inline

Sub-resource locator for /messages resource.

Returns
MessagesResource
static JSONObject ro.allevo.fintpws.resources.ApiResource.getMetaResource ( String  path,
Class<?>  resourceClass 
) throws JSONException
inlinestatic

Returns a JSONObject prefilled with the required metadata.

Parameters
resourceClassClass<?>
pathString
Returns
JSONObject *
Exceptions
JSONException
QueuesResource ro.allevo.fintpws.resources.ApiResource.getQueues ( )
inline

Sub-resource locator for /queues resource.

Returns
QueuesResource

Member Data Documentation

EntityManagerFactory ro.allevo.fintpws.resources.ApiResource.configEntityManagerFactory
private

Field configEntityManagerFactory.

EntityManagerFactory ro.allevo.fintpws.resources.ApiResource.dataEntityManagerFactory
private

Field dataEntityManagerFactory.

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

Field logger.

UriInfo ro.allevo.fintpws.resources.ApiResource.uriInfo
private

Field uriInfo.


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