E
- the delegate endpointpublic abstract class AbstractEndpointMvcAdapter<E extends Endpoint<?>> extends Object implements NamedMvcEndpoint
MvcEndpoint
implementations.DISABLED_RESPONSE
Constructor and Description |
---|
AbstractEndpointMvcAdapter(E delegate)
Create a new
EndpointMvcAdapter . |
Modifier and Type | Method and Description |
---|---|
E |
getDelegate() |
protected ResponseEntity<?> |
getDisabledResponse()
Returns the response that should be returned when the endpoint is disabled.
|
Class<? extends Endpoint> |
getEndpointType()
Return the type of
Endpoint exposed, or null if this
MvcEndpoint exposes information that cannot be represented as a traditional
Endpoint . |
String |
getName()
Return the logical name of the endpoint.
|
String |
getPath()
Return the MVC path of the endpoint.
|
protected Object |
invoke() |
boolean |
isSensitive()
Return if the endpoint exposes sensitive information.
|
void |
setPath(String path) |
public AbstractEndpointMvcAdapter(E delegate)
EndpointMvcAdapter
.delegate
- the underlying Endpoint
to adapt.protected Object invoke()
public E getDelegate()
public String getName()
NamedMvcEndpoint
getName
in interface NamedMvcEndpoint
public String getPath()
MvcEndpoint
getPath
in interface MvcEndpoint
public void setPath(String path)
public boolean isSensitive()
MvcEndpoint
isSensitive
in interface MvcEndpoint
public Class<? extends Endpoint> getEndpointType()
MvcEndpoint
Endpoint
exposed, or null
if this
MvcEndpoint
exposes information that cannot be represented as a traditional
Endpoint
.getEndpointType
in interface MvcEndpoint
protected ResponseEntity<?> getDisabledResponse()
Endpoint.isEnabled()
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.