Class FeignUtils

java.lang.Object
com.mastercard.developer.utils.FeignUtils

public class FeignUtils extends Object
Utility class for working with Feign objects.
  • Method Details

    • updateHeader

      public static void updateHeader(feign.RequestTemplate request, String name, String value)
      Update the value of an HTTP request header. Delete the header if the value is null.
    • updateHeader

      public static feign.Response updateHeader(feign.Response response, String name, String value)
      Update the value of an HTTP response header and return the updated response. Delete the header if the value is null.
    • readHeader

      public static String readHeader(feign.Response response, String name)
      Return the value of an HTTP request header.
    • removeHeader

      public static feign.Response removeHeader(feign.Response response, String name)
      Delete an HTTP response header.