@ConfigurationProperties(prefix="endpoints.camelroutes")
public class CamelRoutesMvcEndpoint
extends org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter
CamelRoutesEndpoint
as an MvcEndpoint
.Modifier and Type | Class and Description |
---|---|
static class |
AbstractCamelMvcEndpoint.GenericException |
static class |
CamelRoutesMvcEndpoint.NoSuchRouteException |
Constructor and Description |
---|
CamelRoutesMvcEndpoint(CamelRoutesEndpoint delegate) |
Modifier and Type | Method and Description |
---|---|
protected T |
delegate() |
Object |
detail(String id) |
protected Object |
doIfEnabled(Function<T,Object> supplier) |
protected Object |
doIfEnabled(Supplier<Object> supplier) |
protected Object |
doIfEnabledAndNotReadOnly(Supplier<Object> supplier) |
Object |
dump(String id) |
protected org.springframework.http.ResponseEntity<?> |
getForbiddenResponse()
Returns the response that should be returned when the operation is forbidden.
|
Object |
info(String id) |
boolean |
isReadOnly() |
Object |
reset(String id) |
Object |
resume(String id) |
void |
setReadOnly(boolean readOnly) |
Object |
start(String id) |
Object |
stop(String id,
Long timeout,
Boolean abortAfterTimeout) |
Object |
suspend(String id,
Long timeout) |
invoke
public CamelRoutesMvcEndpoint(CamelRoutesEndpoint delegate)
@ResponseBody @GetMapping(value="/{id}/dump", produces={"application/xml","application/xml"}) public Object dump(@PathVariable String id)
@ResponseBody @GetMapping(value="/{id}/detail", produces={"application/vnd.spring-boot.actuator.v1+json","application/json"}) public Object detail(@PathVariable String id)
@ResponseBody @GetMapping(value="/{id}/info", produces={"application/vnd.spring-boot.actuator.v1+json","application/json"}) public Object info(@PathVariable String id)
@ResponseBody @PostMapping(value="/{id}/stop", produces={"application/vnd.spring-boot.actuator.v1+json","application/json"}) public Object stop(@PathVariable String id, @RequestAttribute(required=false) Long timeout, @RequestAttribute(required=false) Boolean abortAfterTimeout)
@ResponseBody @PostMapping(value="/{id}/start", produces={"application/vnd.spring-boot.actuator.v1+json","application/json"}) public Object start(@PathVariable String id)
@ResponseBody @PostMapping(value="/{id}/reset", produces={"application/vnd.spring-boot.actuator.v1+json","application/json"}) public Object reset(@PathVariable String id)
@ResponseBody @PostMapping(value="/{id}/suspend", produces={"application/vnd.spring-boot.actuator.v1+json","application/json"}) public Object suspend(@PathVariable String id, @RequestAttribute(required=false) Long timeout)
@ResponseBody @PostMapping(value="/{id}/resume", produces={"application/vnd.spring-boot.actuator.v1+json","application/json"}) public Object resume(@PathVariable String id)
protected org.springframework.http.ResponseEntity<?> getForbiddenResponse()
public boolean isReadOnly()
public void setReadOnly(boolean readOnly)
protected T delegate()
Apache Camel