/** * Maps the given {@code health} to a {@link WebEndpointResponse}, honouring the * mapper's default {@link ShowDetails} using the given {@code securityContext}. * @param health the health to map * @param securityContext the security context * @return the mapped response */ public WebEndpointResponse<Health> map(Health health, SecurityContext securityContext) { return map(health, securityContext, this.showDetails); }
public WebEndpointResponse<Health> getHealth(SecurityContext securityContext, ShowDetails showDetails) { return this.responseMapper.map(this.delegate.health(), securityContext, showDetails); }
public Mono<WebEndpointResponse<Health>> health(SecurityContext securityContext, ShowDetails showDetails) { return this.delegate.health().map((health) -> this.responseMapper.map(health, securityContext, showDetails)); }
@ReadOperation public Mono<WebEndpointResponse<Health>> health(SecurityContext securityContext) { return this.delegate.health() .map((health) -> this.responseMapper.map(health, securityContext)); }
@ReadOperation public WebEndpointResponse<Health> health(SecurityContext securityContext) { return this.responseMapper.map(this.delegate.health(), securityContext); }