Class AbstractParam<V>
java.lang.Object
fr.paris.lutece.plugins.rest.service.param.AbstractParam<V>
- Type Parameters:
V- the real object class
Provides simple param parsing. Implementations have to override
parse(String) to transform the String to a concrete V object.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the original string paramgetValue()The value of the stringgetOriginalParam()toString()
-
Constructor Details
-
AbstractParam
Builds this param and callsparse(String)- Parameters:
strParam- the param to parse- Throws:
jakarta.ws.rs.WebApplicationException- if an exception occured, with preconfigured messagegetErrorMessage(String, Throwable)
-
-
Method Details
-
getValue
The value of the stringgetOriginalParam()- Returns:
- the object value
-
getOriginalParam
Gets the original string param- Returns:
- the string
-
toString
-