public class Endpoint
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private CredentialScope |
credentialScope
credential scope for the endpoint.
|
private java.lang.String |
hostName
endpoint string.
|
private java.util.Set<java.lang.String> |
protocols
supported schemes for the endpoint.
|
private java.util.Set<java.lang.String> |
signatureVersions
supported signature versions of the endpoint.
|
private java.lang.String |
sslCommonName
ssl common name for the endpoint.
|
Constructor and Description |
---|
Endpoint() |
Modifier and Type | Method and Description |
---|---|
CredentialScope |
getCredentialScope()
returns credential scope for the endpoint.
|
java.lang.String |
getHostName()
returns the endpoint string.
|
java.util.Set<java.lang.String> |
getProtocols()
returns the supported schemes for the endpoint.
|
java.util.Set<java.lang.String> |
getSignatureVersions()
returns the supported signature versions of the endpoint.
|
java.lang.String |
getSslCommonName()
returns the ssl common name for the endpoint.
|
boolean |
hasHttpsSupport()
A convienient methods that returns true if the endpoint support HTTPS
scheme.
|
boolean |
hasHttpSupport()
A convienient methods that returns true if the endpoint support HTTP
scheme.
|
private boolean |
isProtocolSupported(Protocol protocol) |
static Endpoint |
merge(Endpoint defaults,
Endpoint override)
Merges the given endpoints and returns the merged one.
|
void |
setCredentialScope(CredentialScope credentialScope)
sets the credential scope for the endpoint.
|
void |
setHostName(java.lang.String hostName)
sets the endpoint string.
|
void |
setProtocols(java.util.Set<java.lang.String> protocols)
sets the supported schemes for the endpoint.
|
void |
setSignatureVersions(java.util.Set<java.lang.String> signatureVersions)
returns the supported signature versions of the endpoint.
|
void |
setSslCommonName(java.lang.String sslCommonName)
sets the ssl common name for the endpoint.
|
private java.lang.String hostName
private CredentialScope credentialScope
private java.util.Set<java.lang.String> protocols
private java.util.Set<java.lang.String> signatureVersions
private java.lang.String sslCommonName
public static Endpoint merge(Endpoint defaults, Endpoint override)
public java.lang.String getHostName()
public void setHostName(java.lang.String hostName)
public CredentialScope getCredentialScope()
public void setCredentialScope(CredentialScope credentialScope)
public java.util.Set<java.lang.String> getProtocols()
public void setProtocols(java.util.Set<java.lang.String> protocols)
public java.util.Set<java.lang.String> getSignatureVersions()
public void setSignatureVersions(java.util.Set<java.lang.String> signatureVersions)
public java.lang.String getSslCommonName()
public void setSslCommonName(java.lang.String sslCommonName)
public boolean hasHttpsSupport()
public boolean hasHttpSupport()
private boolean isProtocolSupported(Protocol protocol)