T
- the endpoint data typepublic abstract class AbstractEndpoint<T> extends Object implements Endpoint<T>, org.springframework.context.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 org.springframework.core.env.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(org.springframework.core.env.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 org.springframework.core.env.Environment getEnvironment()
public void setEnvironment(org.springframework.core.env.Environment environment)
setEnvironment
in interface org.springframework.context.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 © 2017 Pivotal Software, Inc.. All rights reserved.