O
- the operation type.public abstract class AbstractExposableEndpoint<O extends Operation> extends Object implements ExposableEndpoint<O>
ExposableEndpoint
implementations.Constructor and Description |
---|
AbstractExposableEndpoint(EndpointId id,
boolean enabledByDefault,
Collection<? extends O> operations)
Create a new
AbstractExposableEndpoint instance. |
Modifier and Type | Method and Description |
---|---|
EndpointId |
getEndpointId()
Return the endpoint ID.
|
Collection<O> |
getOperations()
Returns the operations of the endpoint.
|
boolean |
isEnableByDefault()
Returns if the endpoint is enabled by default.
|
public AbstractExposableEndpoint(EndpointId id, boolean enabledByDefault, Collection<? extends O> operations)
AbstractExposableEndpoint
instance.id
- the endpoint idenabledByDefault
- if the endpoint is enabled by defaultoperations
- the endpoint operationspublic EndpointId getEndpointId()
ExposableEndpoint
getEndpointId
in interface ExposableEndpoint<O extends Operation>
public boolean isEnableByDefault()
ExposableEndpoint
isEnableByDefault
in interface ExposableEndpoint<O extends Operation>
public Collection<O> getOperations()
ExposableEndpoint
getOperations
in interface ExposableEndpoint<O extends Operation>
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.