Class PojoPathParam


  • public class PojoPathParam
    extends java.lang.Object
    Stores the parameter type and name for a parameter that needs to be passed to an onXxx method of Endpoint. The name is only present for parameters annotated with PathParam; for all other parameters, getName() will always return null.
    • Constructor Summary

      Constructors 
      Constructor Description
      PojoPathParam​(java.lang.Class<?> type, java.lang.String name)
      Create a path parameter.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getName()
      Return the name of the parameter.
      java.lang.Class<?> getType()
      Return the type of the parameter.
      • Methods inherited from class java.lang.Object

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

      • PojoPathParam

        public PojoPathParam​(java.lang.Class<?> type,
                             java.lang.String name)
                      throws DeploymentException
        Create a path parameter.
        Parameters:
        type - Parameter type
        name - Parameter name (may be null for non-@PathParam parameters)
        Throws:
        DeploymentException - If the type is not valid for a @PathParam parameter
    • Method Detail

      • getType

        public java.lang.Class<?> getType()
        Return the type of the parameter.
        Returns:
        Parameter type
      • getName

        public java.lang.String getName()
        Return the name of the parameter.
        Returns:
        Parameter name or null for non-@PathParam parameters