public class EndpointMvcAdapter extends Object implements MvcEndpoint
Endpoints as MvcEndpoints.DISABLED_RESPONSE| Constructor and Description |
|---|
EndpointMvcAdapter(Endpoint<?> delegate)
Create a new
EndpointMvcAdapter. |
| Modifier and Type | Method and Description |
|---|---|
Endpoint<?> |
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 |
getPath()
Return the MVC path of the endpoint.
|
Object |
invoke() |
boolean |
isSensitive()
Return if the endpoint exposes sensitive information.
|
public EndpointMvcAdapter(Endpoint<?> delegate)
EndpointMvcAdapter.delegate - the underlying Endpoint to adapt.@RequestMapping(method=GET) @ResponseBody public Object invoke()
public Endpoint<?> getDelegate()
public String getPath()
MvcEndpointgetPath in interface MvcEndpointpublic boolean isSensitive()
MvcEndpointisSensitive in interface MvcEndpointpublic Class<? extends Endpoint> getEndpointType()
MvcEndpointEndpoint exposed, or null if this
MvcEndpoint exposes information that cannot be represented as a traditional
Endpoint.getEndpointType in interface MvcEndpointprotected ResponseEntity<?> getDisabledResponse()
Endpoint.isEnabled()Copyright © 2015 Pivotal Software, Inc.. All rights reserved.