Package feign

Annotation Type Param


  • @Retention(RUNTIME)
    @Target(PARAMETER)
    public @interface Param
    A named template parameter applied to Headers, RequestLine or Body
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      java.lang.String value
      The name of the template parameter.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      boolean encoded
      Specifies whether argument is already encoded The value is ignored for headers (headers are never encoded)
      java.lang.Class<? extends Param.Expander> expander
      How to expand the value of this parameter, if Param.ToStringExpander isn't adequate.
    • Element Detail

      • value

        java.lang.String value
        The name of the template parameter.
      • expander

        java.lang.Class<? extends Param.Expander> expander
        How to expand the value of this parameter, if Param.ToStringExpander isn't adequate.
        Default:
        feign.Param.ToStringExpander.class
      • encoded

        boolean encoded
        Specifies whether argument is already encoded The value is ignored for headers (headers are never encoded)
        See Also:
        QueryMap.encoded()
        Default:
        false