Package io.bootique.jetty.connector
Class PortFactory
- java.lang.Object
-
- io.bootique.jetty.connector.PortFactory
-
public class PortFactory extends Object
Encapsulates either an explicit or a dynamic network port.- Since:
- 2.0
-
-
Constructor Summary
Constructors Constructor Description PortFactory(int port)PortFactory(String portString)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intfindAvailablePort(String host)StringgetPortString()intresolve(String host)protected intresolveExplicitPort()
-
-
-
Constructor Detail
-
PortFactory
public PortFactory(int port)
-
PortFactory
public PortFactory(String portString)
- Parameters:
portString- can be either null, empty string, a positive integer or a keyword "dynamic".
-
-