API FinTP REST
 All Classes Namespaces Files Functions Variables
ro.allevo.fintpws.util.ResourcesUtils Class Reference

Static Public Member Functions

static Timestamp optTimestamp (String stringTime) throws ParseException
 Method optTimestamp. More...
 
static Timestamp getTimestamp (String stringTime) throws ParseException
 Method asTimestampMandatory. More...
 
static Object blankIfNull (Object object)
 Method blankIfNull. More...
 
static String getQueryParamValue (UriInfo uriInfo, String queryParamName)
 Method getQueryParamValue. More...
 
static JSONObject createLink (JSONObject baseObject, String href, String rel) throws JSONException
 Method createLink. More...
 
static JSONObject createParentLink (JSONObject baseObject, String rel, UriInfo uriInfo) throws JSONException
 Method createParentLink. More...
 
static String getClassDescription (Class<?> c)
 
static String getClassDescription (String className)
 

Private Member Functions

 ResourcesUtils ()
 Constructor for ResourcesUtils. More...
 

Static Private Attributes

static Logger logger
 Field logger. More...
 

Detailed Description

Author
costi
Version
Revision:
1.0

Constructor & Destructor Documentation

ro.allevo.fintpws.util.ResourcesUtils.ResourcesUtils ( )
inlineprivate

Constructor for ResourcesUtils.

Member Function Documentation

static Object ro.allevo.fintpws.util.ResourcesUtils.blankIfNull ( Object  object)
inlinestatic

Method blankIfNull.

Parameters
objectObject
Returns
Object
static JSONObject ro.allevo.fintpws.util.ResourcesUtils.createLink ( JSONObject  baseObject,
String  href,
String  rel 
) throws JSONException
inlinestatic

Method createLink.

Parameters
baseObjectJSONObject
hrefString
relString
Returns
JSONObject
Exceptions
JSONException
static JSONObject ro.allevo.fintpws.util.ResourcesUtils.createParentLink ( JSONObject  baseObject,
String  rel,
UriInfo  uriInfo 
) throws JSONException
inlinestatic

Method createParentLink.

Create link to the parent resource

Parameters
baseObjectJSONObject
relString
uriInfoUriInfo
Returns
JSONObject
Exceptions
JSONException
static String ro.allevo.fintpws.util.ResourcesUtils.getClassDescription ( Class<?>  c)
inlinestatic
static String ro.allevo.fintpws.util.ResourcesUtils.getClassDescription ( String  className)
inlinestatic
static String ro.allevo.fintpws.util.ResourcesUtils.getQueryParamValue ( UriInfo  uriInfo,
String  queryParamName 
)
inlinestatic

Method getQueryParamValue.

Returns the value of the query parameter named queryParamName from URI uriInfo.

Parameters
uriInfoUriInfo
queryParamNameString
Returns
String Null if the parameter with name queryParamName can not be found.
static Timestamp ro.allevo.fintpws.util.ResourcesUtils.getTimestamp ( String  stringTime) throws ParseException
inlinestatic

Method asTimestampMandatory.

Converts a string value to a timestamp.

Parameters
stringTimeString
Returns
Timestamp Returns curent time if the input string is null or empty.
Exceptions
ParseException
static Timestamp ro.allevo.fintpws.util.ResourcesUtils.optTimestamp ( String  stringTime) throws ParseException
inlinestatic

Method optTimestamp.

Converts a string value to a timestamp.

Parameters
stringTimeString
Returns
Timestamp Returns null if the input string is null or empty.
Exceptions
ParseException

Member Data Documentation

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

Field logger.


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