public class HTTPClientBuilderServiceImpl extends Object implements HTTPClientBuilderService
| Constructor and Description |
|---|
HTTPClientBuilderServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
buildWithBasicAuth(String username,
String password,
int connectTimeoutMillis,
int readTimeoutMillis,
Class<T> target,
String url)
Function to build Feign client factory.
|
<T> T |
buildWithJWT(String accessToken,
int connectTimeoutMillis,
int readTimeoutMillis,
Class<T> target,
String url)
Function to build Feign client factory.
|
<T> T |
buildWithJWTAndFormEncoder(String accessToken,
int connectTimeoutMillis,
int readTimeoutMillis,
Class<T> target,
String url)
Function to build Feign client factory with FormEncoder.
|
feign.Client |
newDefaultClientInstance()
Function to create new Feign client instance.
|
public feign.Client newDefaultClientInstance()
HTTPClientBuilderServicenewDefaultClientInstance in interface HTTPClientBuilderServicepublic <T> T buildWithBasicAuth(String username, String password, int connectTimeoutMillis, int readTimeoutMillis, Class<T> target, String url)
HTTPClientBuilderServicebuildWithBasicAuth in interface HTTPClientBuilderServiceusername - User name to be used in auth headerpassword - Password to be used in auth headerconnectTimeoutMillis - Connection timeout of the requestreadTimeoutMillis - Read timeout of the requesttarget - target service stubs to be used by the factoryurl - Base url of the API to be createdpublic <T> T buildWithJWTAndFormEncoder(String accessToken, int connectTimeoutMillis, int readTimeoutMillis, Class<T> target, String url)
HTTPClientBuilderServicebuildWithJWTAndFormEncoder in interface HTTPClientBuilderServiceaccessToken - accessToken to be used in auth headerconnectTimeoutMillis - Connection timeout of the requestreadTimeoutMillis - Read timeout of the requesttarget - target service stubs to be used by the factoryurl - Base url of the API to be createdpublic <T> T buildWithJWT(String accessToken, int connectTimeoutMillis, int readTimeoutMillis, Class<T> target, String url)
HTTPClientBuilderServicebuildWithJWT in interface HTTPClientBuilderServiceaccessToken - accessToken to be used in auth headerconnectTimeoutMillis - Connection timeout of the requestreadTimeoutMillis - Read timeout of the requesttarget - target service stubs to be used by the factoryurl - Base url of the API to be createdCopyright © 2025 WSO2. All rights reserved.