Annotation Interface Action


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

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    HTTP methods recognized by the request processor.
    static enum 
    App Engine services supported by the request processor.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Authentication settings.
    HTTP path to serve the action from.
    Which App Engine service this action lives on.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Indicates request processor should print "OK" to the HTTP client on success.
    boolean
    Indicates all paths starting with this path should be accepted.
    HTTP methods that request processor should allow.
  • Element Details

    • service

      Which App Engine service this action lives on.
    • 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.