Annotation Interface Action


@Retention(RUNTIME) @Target(TYPE) public @interface Action
Annotation for Runnable actions accepting HTTP requests from RequestHandler.
  • Element Details

    • service

      Which App Engine service this action lives on.
    • gkeService

      Action.GkeService gkeService
      Which GKE service this action lives on.
      Default:
      SAME_AS_GAE
    • path

      String path
      HTTP path to serve the action from. The path components must be percent-escaped.
    • isPrefix

      boolean isPrefix
      Indicates all paths starting with this path should be accepted.
      Default:
      false
    • method

      Action.Method[] method
      HTTP methods that request processor should allow.
      Default:
      {GET}
    • automaticallyPrintOk

      boolean automaticallyPrintOk
      Indicates request processor should print "OK" to the HTTP client on success.

      This is important because it's confusing to manually invoke a backend task and have a blank page show up. And it's not worth injecting a Response object just to do something so trivial.

      Default:
      false
    • auth

      Auth auth
      Authentication settings.