Class Endpoint
- java.lang.Object
-
- org.jclouds.openstack.keystone.v1_1.domain.Endpoint
-
- All Implemented Interfaces:
Comparable<Endpoint>
public class Endpoint extends Object implements Comparable<Endpoint>
An network-accessible address, usually described by URL, where a service may be accessed. If using an extension for templates, you can create an endpoint template, which represents the templates of all the consumable services that are available across the regions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Endpoint.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Endpoint.Builder
builder()
int
compareTo(Endpoint that)
boolean
equals(Object object)
URI
getInternalURL()
Internal URLs are only accessible to services within the same region.URI
getPublicURL()
A public URL is accessible from anywhere.String
getRegion()
A service may expose endpoints in different regions.int
hashCode()
boolean
isV1Default()
The v1Default attribute denotes that an endpoint is being returned in version 1.0 of the Cloud Authentication Service.Endpoint.Builder
toBuilder()
String
toString()
-
-
-
Method Detail
-
builder
public static Endpoint.Builder builder()
-
toBuilder
public Endpoint.Builder toBuilder()
-
isV1Default
public boolean isV1Default()
The v1Default attribute denotes that an endpoint is being returned in version 1.0 of the Cloud Authentication Service. The default value of v1Default is false; clients should assume the value is false when the attribute is missing. Auth 1.0 does not offer support for regional endpoints and therefore only returns one endpoint per service. Resources stored in endpoints where v1Default is false will not be seen by Auth 1.0 clients.- Returns:
- whether this endpoint is visible to v1.0 clients
-
getRegion
@Nullable public String getRegion()
A service may expose endpoints in different regions. Regional endpoints allow clients to provision resources in a manner that provides high availability.
Note
Some services are not region-specific. These services supply a single non-regional endpoint and do not provide access to internal URLs.- Returns:
- the region of the endpoint
-
getPublicURL
@Nullable public URI getPublicURL()
A public URL is accessible from anywhere. Access to a public URL usually incurs traffic charges.- Returns:
- the public endpoint of the service
-
getInternalURL
@Nullable public URI getInternalURL()
Internal URLs are only accessible to services within the same region. Access to an internal URL is free of charge.- Returns:
- the internal url of the endpoint
-
compareTo
public int compareTo(Endpoint that)
- Specified by:
compareTo
in interfaceComparable<Endpoint>
-
-