@Target({ANNOTATION_TYPE,METHOD}) @Retention(RUNTIME) public @interface JSONP
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Helper class for encapsulating information from JSONP annotation instance.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Prefix String used for JSONP if not empty: will be included verbatim before JSON value.
    Suffix String used for JSONP if not empty: will be included verbatim after JSON value.
    Method used for JSONP, unless prefix() or suffix() return non-empty Strings.
  • Element Details

    • value

      String value
      Method used for JSONP, unless prefix() or suffix() return non-empty Strings.
      Default:
      ""
    • prefix

      String prefix
      Prefix String used for JSONP if not empty: will be included verbatim before JSON value.
      Default:
      ""
    • suffix

      String suffix
      Suffix String used for JSONP if not empty: will be included verbatim after JSON value.
      Default:
      ""