Annotation Type HttpRoute


  • @Target({METHOD,ANNOTATION_TYPE})
    @Retention(RUNTIME)
    public @interface HttpRoute
    Annotation for HTTP route.
    Since:
    1.1
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      HttpMethodWrapper[] method
      Returns the methods of this route.
      java.lang.String[] value
      Returns the path pattern of this route.
    • Element Detail

      • value

        java.lang.String[] value
        Returns the path pattern of this route.
        Returns:
        the path pattern of this route.
        Default:
        {}
      • method

        HttpMethodWrapper[] method
        Returns the methods of this route.
        Returns:
        the methods of this route
        Default:
        {}