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

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...
 

Detailed Description

Resource class implementing /events/{id} path methods.

Author
costi
Version
Revision:
1.0

Constructor & Destructor Documentation

ro.allevo.fintpws.resources.EventResource.EventResource ( UriInfo  uriInfo,
EntityManager  entityManager,
String  eventId 
)
inline

Creates a new instance of EventResource.

Parameters
uriInfoUriInfo actual uri passed by parent resource
entityManagerEntityManager passed by parent resource
eventIdString Event id

Member Function Documentation

static JSONObject ro.allevo.fintpws.resources.EventResource.asJson ( StatusEntity  eventEntity,
String  path 
) throws JSONException
inlinestatic

Returns the resource formatted as json.

Parameters
eventEntityBusinessEvent
pathString
Returns
JSONObject *
Exceptions
JSONException
JSONObject ro.allevo.fintpws.resources.EventResource.getEvent ( )
inline

GET method : returns an application/json formatted event.

Returns
JSONObject the event
String ro.allevo.fintpws.resources.EventResource.toString ( )
inline

Method toString.

Returns
String

Member Data Documentation

StatusEntity ro.allevo.fintpws.resources.EventResource.eventEntity
private

Field eventEntity.

String ro.allevo.fintpws.resources.EventResource.eventId = ""
private

Field eventId.

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

Field logger.

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

Field uriInfo.


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