Package com.bandwidth
Interface Configuration
- All Known Implementing Classes:
BandwidthClient
public interface Configuration
-
Method Summary
Modifier and Type Method Description java.lang.String
getBaseUri()
Get base URI by current environmentjava.lang.String
getBaseUri(Server server)
Get base URI by current environmentEnvironment
getEnvironment()
Current API environmentMessagingBasicAuthCredentials
getMessagingBasicAuthCredentials()
The credentials to use with basic authenticationlong
getTimeout()
The timeout to use for making HTTP requests.VoiceBasicAuthCredentials
getVoiceBasicAuthCredentials()
The credentials to use with basic authentication
-
Method Details
-
getEnvironment
Environment getEnvironment()Current API environment- Returns:
- a copy of environment
-
getTimeout
long getTimeout()The timeout to use for making HTTP requests.- Returns:
- a copy of timeout
-
getMessagingBasicAuthCredentials
MessagingBasicAuthCredentials getMessagingBasicAuthCredentials()The credentials to use with basic authentication- Returns:
- basicAuthCredentials
-
getVoiceBasicAuthCredentials
VoiceBasicAuthCredentials getVoiceBasicAuthCredentials()The credentials to use with basic authentication- Returns:
- basicAuthCredentials
-
getBaseUri
Get base URI by current environment- Parameters:
server
- Server for which to get the base URI- Returns:
- Processed base URI
-
getBaseUri
java.lang.String getBaseUri()Get base URI by current environment- Returns:
- Processed base URI
-