public class ManagementErrorEndpoint extends Object implements MvcEndpoint
MvcEndpoint for handling "/error" path when the management servlet is
in a child context. The regular ErrorController should be available there but
because of the way the handler mappings are set up it will not be detected.DISABLED_RESPONSE| Constructor and Description |
|---|
ManagementErrorEndpoint(String path,
ErrorAttributes errorAttributes) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
Map<String,Object> |
invoke() |
boolean |
isSensitive()
Return if the endpoint exposes sensitive information.
|
public ManagementErrorEndpoint(String path, ErrorAttributes errorAttributes)
@RequestMapping @ResponseBody public Map<String,Object> invoke()
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 MvcEndpointCopyright © 2015 Pivotal Software, Inc.. All rights reserved.