Class StaticPortProvider

java.lang.Object
org.springframework.boot.devtools.tunnel.server.StaticPortProvider
All Implemented Interfaces:
PortProvider

public class StaticPortProvider extends Object implements PortProvider
PortProvider for a static port that won't change.
Since:
1.3.0
Author:
Phillip Webb
  • Constructor Details

    • StaticPortProvider

      public StaticPortProvider(int port)
  • Method Details

    • getPort

      public int getPort()
      Description copied from interface: PortProvider
      Return the port number.
      Specified by:
      getPort in interface PortProvider
      Returns:
      the port number