public class AccountProvider extends Object
| Constructor and Description |
|---|
AccountProvider(RvdConfiguration configuration,
CustomHttpClientBuilder httpClientBuilder) |
AccountProvider(String restcommUrl,
CustomHttpClientBuilder httpClientBuilder)
This constructor directly initializes restcommUrl without going through RvdConfiguration
and UriUtils.
|
| Modifier and Type | Method and Description |
|---|---|
GenericResponse<RestcommAccountInfo> |
getAccount(String accountName,
String authorizationHeader)
Retrieves account 'accountName' from restcomm using creds as credentials.
|
GenericResponse<RestcommAccountInfo> |
getActiveAccount(BasicAuthCredentials creds) |
GenericResponse<RestcommAccountInfo> |
getActiveAccount(String accountName,
String authorizationHeader) |
public AccountProvider(String restcommUrl, CustomHttpClientBuilder httpClientBuilder)
restcommUrl - httpClientBuilder - public AccountProvider(RvdConfiguration configuration, CustomHttpClientBuilder httpClientBuilder)
public GenericResponse<RestcommAccountInfo> getAccount(String accountName, String authorizationHeader)
public GenericResponse<RestcommAccountInfo> getActiveAccount(String accountName, String authorizationHeader)
public GenericResponse<RestcommAccountInfo> getActiveAccount(BasicAuthCredentials creds)
Copyright © 2016. All Rights Reserved.