Class Route.Param

  • Enclosing class:
    Route

    public static class Route.Param
    extends java.lang.Object
    Representation of a parameter of a REST route.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String defaultValue
      The default value of the parameter.
      java.lang.String name
      The name of the parameter.
      java.lang.String typeFQN
      The fully-qualified name of the expected type of the parameter.
    • Constructor Summary

      Constructors 
      Constructor Description
      Param​(java.lang.String typeFQN, java.lang.String name, java.lang.String defaultValue)
      The one and only constructor.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • typeFQN

        public final java.lang.String typeFQN
        The fully-qualified name of the expected type of the parameter.
      • name

        public final java.lang.String name
        The name of the parameter.
      • defaultValue

        public final java.lang.String defaultValue
        The default value of the parameter. May be null, in which case the parameter is required.
    • Constructor Detail

      • Param

        public Param​(java.lang.String typeFQN,
                     java.lang.String name,
                     java.lang.String defaultValue)
        The one and only constructor.
        Parameters:
        typeFQN - the FQN of the expected type of the parameter
        name - the name of the parameter
        defaultValue - the default value of the parameter, may be null if the parameter is required