Class 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 Detail

      • AbstractParam

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

      • 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