public abstract class AbstractEndpoint<T> extends Object implements Endpoint<T>, EnvironmentAware
Endpoint implementations.| Constructor and Description |
|---|
AbstractEndpoint(String id)
Create a new sensitive endpoint instance.
|
AbstractEndpoint(String id,
boolean sensitive)
Create a new endpoint instance.
|
AbstractEndpoint(String id,
boolean sensitive,
boolean enabled)
Create a new endpoint instance.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getId()
The logical ID of the endpoint.
|
boolean |
isEnabled()
Return if the endpoint is enabled.
|
boolean |
isSensitive()
Return if the endpoint is sensitive, i.e.
|
void |
setEnabled(Boolean enabled) |
void |
setEnvironment(Environment environment) |
void |
setId(String id) |
void |
setSensitive(boolean sensitive) |
public AbstractEndpoint(String id)
Environment unless explicitly set.id - the endpoint IDpublic AbstractEndpoint(String id, boolean sensitive)
Environment unless explicitly set.id - the endpoint IDsensitive - if the endpoint is sensitivepublic AbstractEndpoint(String id, boolean sensitive, boolean enabled)
id - the endpoint IDsensitive - if the endpoint is sensitiveenabled - if the endpoint is enabled or not.public void setEnvironment(Environment environment)
setEnvironment in interface EnvironmentAwarepublic String getId()
Endpointpublic void setId(String id)
public boolean isEnabled()
Endpointpublic void setEnabled(Boolean enabled)
public boolean isSensitive()
EndpointisSensitive in interface Endpoint<T>public void setSensitive(boolean sensitive)
Copyright © 2014 Pivotal Software, Inc.. All rights reserved.