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 override parse(String) to transform the String to a concrete V object.
  • Constructor Details

    • AbstractParam

      public AbstractParam(String strParam) throws jakarta.ws.rs.WebApplicationException
      Builds this param and calls parse(String)
      Parameters:
      strParam - the param to parse
      Throws:
      jakarta.ws.rs.WebApplicationException - if an exception occured, with preconfigured message getErrorMessage(String, Throwable)
  • Method Details

    • getValue

      public V getValue()
      The value of the string getOriginalParam()
      Returns:
      the object value
    • getOriginalParam

      public String getOriginalParam()
      Gets the original string param
      Returns:
      the string
    • toString

      public String toString()
      Overrides:
      toString in class Object