Package com.mastercard.developer.utils
Class FeignUtils
- java.lang.Object
-
- com.mastercard.developer.utils.FeignUtils
-
public class FeignUtils extends Object
Utility class for working with Feign objects.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
readHeader(feign.Response response, String name)
Return the value of an HTTP request header.static feign.Response
removeHeader(feign.Response response, String name)
Delete an HTTP response header.static void
updateHeader(feign.RequestTemplate request, String name, String value)
Update the value of an HTTP request header.static feign.Response
updateHeader(feign.Response response, String name, String value)
Update the value of an HTTP response header and return the updated response.
-
-
-
Method Detail
-
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.
-
-