Example usage for org.springframework.boot.actuate.autoconfigure.cloudfoundry SecurityResponse getMessage

List of usage examples for org.springframework.boot.actuate.autoconfigure.cloudfoundry SecurityResponse getMessage

Introduction

In this page you can find the example usage for org.springframework.boot.actuate.autoconfigure.cloudfoundry SecurityResponse getMessage.

Prototype

public String getMessage() 

Source Link

Usage

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

private void sendFailureResponse(HttpServletResponse response, SecurityResponse securityResponse) {
    try {/*from   w  w w  . jav  a 2s  . c o m*/
        response.sendError(securityResponse.getStatus().value(), securityResponse.getMessage());
    } catch (Exception ex) {
        logger.debug("Failed to send error response", ex);
    }
}