Example usage for org.springframework.boot.web.embedded.tomcat ConnectorStartFailedException ConnectorStartFailedException

List of usage examples for org.springframework.boot.web.embedded.tomcat ConnectorStartFailedException ConnectorStartFailedException

Introduction

In this page you can find the example usage for org.springframework.boot.web.embedded.tomcat ConnectorStartFailedException ConnectorStartFailedException.

Prototype

public ConnectorStartFailedException(int port) 

Source Link

Document

Creates a new ConnectorStartFailedException for a connector that's configured to listen on the given port .

Usage

From source file:org.springframework.boot.web.embedded.tomcat.TomcatWebServer.java

private void checkThatConnectorsHaveStarted() {
    for (Connector connector : this.tomcat.getService().findConnectors()) {
        if (LifecycleState.FAILED.equals(connector.getState())) {
            throw new ConnectorStartFailedException(connector.getPort());
        }/*  w w w  .j a  va2 s . c  o m*/
    }
}