Package com.oracle.bmc.internal
Class EndpointBuilder
- java.lang.Object
- 
- com.oracle.bmc.internal.EndpointBuilder
 
- 
 public class EndpointBuilder extends Object EndpointBuilder provides a wrapper to construct the appropriate endpoint for a service.The service may override the endpoint template, but if not, a default template will be used. 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringDEFAULT_ENDPOINT_TEMPLATE
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static StringcreateEndpoint(Service service, Region region)Creates the service endpoint using theDefaultEndpointConfigurationmethod.static StringcreateEndpoint(Service service, String regionId, Realm realm)Creates the service endpoint using theDefaultEndpointConfigurationmethod.static StringgetRealmSpecificEndpointTemplate(String regionId, Service service, Realm realm)static StringgetServiceEndpointTemplateToUse(String regionId, Service service, Realm realm)static voidoverrideRegionId(String regionId, String overrideRegionId)Temporary ability to override the region for a given regionId.
 
- 
- 
- 
Field Detail- 
DEFAULT_ENDPOINT_TEMPLATEpublic static final String DEFAULT_ENDPOINT_TEMPLATE - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
createEndpointpublic static String createEndpoint(@Nonnull Service service, @Nonnull String regionId, @Nonnull Realm realm) Creates the service endpoint using theDefaultEndpointConfigurationmethod.- Parameters:
- service- The service
- regionId- The regionId
- realm- The realm this region belongs to.
- Returns:
- The endpoint (protocol + FQDN) for this service.
 
 - 
getRealmSpecificEndpointTemplatepublic static String getRealmSpecificEndpointTemplate(String regionId, Service service, Realm realm) 
 - 
getServiceEndpointTemplateToUsepublic static String getServiceEndpointTemplateToUse(String regionId, Service service, Realm realm) 
 - 
createEndpointpublic static String createEndpoint(@Nonnull Service service, @Nonnull Region region) Creates the service endpoint using theDefaultEndpointConfigurationmethod.- Parameters:
- service- The service
- region- The region
- Returns:
- The endpoint (protocol + FQDN) for this service.
 
 - 
overrideRegionIdpublic static void overrideRegionId(@Nonnull String regionId, @Nonnull String overrideRegionId)Temporary ability to override the region for a given regionId.This will most likely be removed at a later point in time. It is not intended for use outside of the SDK. - Parameters:
- regionId- The value obtained from- Region.getRegionId().
- overrideRegionId- The alternative regionId to use.
 
 
- 
 
-