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... | |
Resource class implementing /api entry point and acting as sub-resource locator for all main resources.
|
inline |
Creates a new instance of ApiResource.
|
inline |
|
inline |
Returns the list of supported apis formatted as an application/json array.
JSONException |
|
inline |
Sub-resource locator for /events resource.
|
inline |
Sub-resource locator for /messages resource.
|
inlinestatic |
Returns a JSONObject prefilled with the required metadata.
resourceClass | Class<?> |
path | String |
JSONException |
|
inline |
Sub-resource locator for /queues resource.
|
private |
Field configEntityManagerFactory.
|
private |
Field dataEntityManagerFactory.
|
staticprivate |
Field logger.
|
private |
Field uriInfo.