Class AbstractParam<V>
- java.lang.Object
-
- fr.paris.lutece.plugins.rest.service.param.AbstractParam<V>
-
- Type Parameters:
V- the real object class
public abstract class AbstractParam<V> extends Object
Provides simple param parsing. Implementations have to overrideparse(String)to transform the String to a concrete V object.
-
-
Constructor Summary
Constructors Constructor Description AbstractParam(String strParam)Builds this param and callsparse(String)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetOriginalParam()Gets the original string paramVgetValue()The value of the stringgetOriginalParam()StringtoString()
-
-
-
Constructor Detail
-
AbstractParam
public AbstractParam(String strParam) throws javax.ws.rs.WebApplicationException
Builds this param and callsparse(String)- Parameters:
strParam- the param to parse- Throws:
javax.ws.rs.WebApplicationException- if an exception occured, with preconfigured messagegetErrorMessage(String, Throwable)
-
-