Annotation Interface HttpAlias


@Retention(RUNTIME) @Target({FIELD,TYPE}) public @interface HttpAlias
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    HTTP method (eg.
    Path-alias of the Action.
    Path of the Route (optional, this is only required if there are multiple Route objects - the value of the path identifies the Route).
  • Element Details

    • method

      String method
      HTTP method (eg. "ALL", "POST", "GET", "REST", "CONNECT", "DELETE", "HEAD", "OPTIONS", "PUT", "TRACE", etc.).
      Returns:
      HTTP method
      Default:
      "ALL"
    • path

      String path
      Path-alias of the Action.
      Returns:
      path of the service (eg. "action" or "foo/bar/:var1/:var2")
      Default:
      ""
    • route

      String route
      Path of the Route (optional, this is only required if there are multiple Route objects - the value of the path identifies the Route).
      Returns:
      path of the route(eg. "/route1")
      Default:
      ""