Annotation Type Field


One name/value pair of a @FormUrlEncoded method's form-urlencoded body. Only valid on a method also annotated @FormUrlEncoded. The argument is converted with String.valueOf(...) and percent-encoded, except a Collection argument, which is sent once per element under the same name (e.g. tag=a&tag=b) - the same convention @QueryParam uses.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The form field name.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Value used when the argument is null.
    boolean
    If true, a null argument with no defaultValue() throws a RestInPeaceException at call time.
  • Element Details

    • value

      String value
      The form field name.
      Returns:
      the field name
    • required

      boolean required
      If true, a null argument with no defaultValue() throws a RestInPeaceException at call time.
      Returns:
      whether the field is required
      Default:
      false
    • defaultValue

      String defaultValue
      Value used when the argument is null.
      Returns:
      the default value
      Default:
      "REST-IN-PEACE-DEFAULT-STRING"