Package feign.codec

Class Encoder.Default

  • All Implemented Interfaces:
    Encoder
    Enclosing interface:
    Encoder

    public static class Encoder.Default
    extends java.lang.Object
    implements Encoder
    Default implementation of Encoder.
    • Constructor Summary

      Constructors 
      Constructor Description
      Default()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void encode​(java.lang.Object object, java.lang.reflect.Type bodyType, RequestTemplate template)
      Converts objects to an appropriate representation in the template.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Default

        public Default()
    • Method Detail

      • encode

        public void encode​(java.lang.Object object,
                           java.lang.reflect.Type bodyType,
                           RequestTemplate template)
        Description copied from interface: Encoder
        Converts objects to an appropriate representation in the template.
        Specified by:
        encode in interface Encoder
        Parameters:
        object - what to encode as the request body.
        bodyType - the type the object should be encoded as. Encoder.MAP_STRING_WILDCARD indicates form encoding.
        template - the request template to populate.