Resource class implementing /events/{id} path methods. More...
Public Member Functions | |
EventResource (UriInfo uriInfo, EntityManager entityManager, String eventId) | |
Creates a new instance of EventResource. More... | |
JSONObject | getEvent () |
GET method : returns an application/json formatted event. More... | |
String | toString () |
Method toString. More... | |
Static Public Member Functions | |
static JSONObject | asJson (StatusEntity eventEntity, String path) throws JSONException |
Returns the resource formatted as json. More... | |
Private Attributes | |
String | eventId = "" |
Field eventId. More... | |
UriInfo | uriInfo |
Field uriInfo. More... | |
StatusEntity | eventEntity |
Field eventEntity. More... | |
Static Private Attributes | |
static Logger | logger |
Field logger. More... | |
Resource class implementing /events/{id} path methods.
|
inline |
Creates a new instance of EventResource.
uriInfo | UriInfo actual uri passed by parent resource |
entityManager | EntityManager passed by parent resource |
eventId | String Event id |
|
inlinestatic |
Returns the resource formatted as json.
eventEntity | BusinessEvent |
path | String |
JSONException |
|
inline |
GET method : returns an application/json formatted event.
|
inline |
Method toString.
|
private |
Field eventEntity.
|
private |
Field eventId.
|
staticprivate |
Field logger.
|
private |
Field uriInfo.