@ManagedResource(description="Can be used to list and reset the reverse proxy routes") public class RoutesEndpoint extends Object implements org.springframework.boot.actuate.endpoint.mvc.MvcEndpoint, org.springframework.context.ApplicationEventPublisherAware
Constructor and Description |
---|
RoutesEndpoint(RouteLocator routes) |
Modifier and Type | Method and Description |
---|---|
Class<? extends org.springframework.boot.actuate.endpoint.Endpoint<?>> |
getEndpointType() |
String |
getPath() |
Map<String,String> |
getRoutes() |
boolean |
isSensitive() |
Map<String,String> |
reset() |
void |
setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher publisher) |
@Autowired public RoutesEndpoint(RouteLocator routes)
public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher publisher)
setApplicationEventPublisher
in interface org.springframework.context.ApplicationEventPublisherAware
@RequestMapping(method=POST) @ResponseBody @ManagedOperation public Map<String,String> reset()
@RequestMapping(method=GET) @ResponseBody @ManagedAttribute public Map<String,String> getRoutes()
public String getPath()
getPath
in interface org.springframework.boot.actuate.endpoint.mvc.MvcEndpoint
public boolean isSensitive()
isSensitive
in interface org.springframework.boot.actuate.endpoint.mvc.MvcEndpoint
public Class<? extends org.springframework.boot.actuate.endpoint.Endpoint<?>> getEndpointType()
getEndpointType
in interface org.springframework.boot.actuate.endpoint.mvc.MvcEndpoint
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.