T
- the endpoint data typepublic 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 |
---|---|
protected Environment |
getEnvironment() |
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 sensitive by defaultpublic AbstractEndpoint(String id, boolean sensitive, boolean enabled)
id
- the endpoint IDsensitive
- if the endpoint is sensitiveenabled
- if the endpoint is enabled or not.protected final Environment getEnvironment()
public void setEnvironment(Environment environment)
setEnvironment
in interface EnvironmentAware
public String getId()
Endpoint
public void setId(String id)
public boolean isEnabled()
Endpoint
public void setEnabled(Boolean enabled)
public boolean isSensitive()
Endpoint
isSensitive
in interface Endpoint<T>
public void setSensitive(Boolean sensitive)
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.