Package org.eclipse.jetty.embedded
Class ExampleUtil
- java.lang.Object
-
- org.eclipse.jetty.embedded.ExampleUtil
-
public class ExampleUtil extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ExampleUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intgetPort(java.lang.String[] args, java.lang.String propertyName, int defValue)Get a port, possibly configured from Command line or System property.
-
-
-
Method Detail
-
getPort
public static int getPort(java.lang.String[] args, java.lang.String propertyName, int defValue)Get a port, possibly configured from Command line or System property.- Parameters:
args- the command line argumentspropertyName- the property namedefValue- the default value- Returns:
- the configured port
-
-