Example usage for org.springframework.boot.actuate.endpoint.web WebOperation getId

List of usage examples for org.springframework.boot.actuate.endpoint.web WebOperation getId

Introduction

In this page you can find the example usage for org.springframework.boot.actuate.endpoint.web WebOperation getId.

Prototype

String getId();

Source Link

Document

Returns the ID of the operation that uniquely identifies it within its endpoint.

Usage

From source file:org.springframework.boot.actuate.autoconfigure.cloudfoundry.servlet.CloudFoundryWebEndpointServletHandlerMapping.java

@Override
protected void registerMappingForOperation(WebOperation operation) {
    registerMapping(createRequestMappingInfo(operation),
            new OperationHandler(operation.getInvoker(), operation.getId(), this.securityInterceptor),
            this.handle);
}

From source file:org.springframework.boot.actuate.endpoint.web.EndpointLinksResolver.java

private void collectLinks(Map<String, Link> links, ExposableWebEndpoint endpoint, String normalizedUrl) {
    for (WebOperation operation : endpoint.getOperations()) {
        links.put(operation.getId(), createLink(normalizedUrl, operation));
    }//  w  w  w . j a va  2s  . co m
}