Package ca.uhn.fhir.test.utilities
Class JettyUtil
java.lang.Object
ca.uhn.fhir.test.utilities.JettyUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcloseServer(org.eclipse.jetty.server.Server theServer) Shut down the given Jetty server, and release held resources.static intgetPortForStartedServer(org.eclipse.jetty.server.Server server) Gets the local port for the given server.static voidstartServer(org.eclipse.jetty.server.Server theServer) Starts the given Jetty server, and configures it for graceful shutdown
-
Constructor Details
-
JettyUtil
public JettyUtil()
-
-
Method Details
-
getPortForStartedServer
Gets the local port for the given server. The server must be started. -
startServer
Starts the given Jetty server, and configures it for graceful shutdown- Throws:
Exception
-
closeServer
public static void closeServer(@Nullable org.eclipse.jetty.server.Server theServer) throws Exception Shut down the given Jetty server, and release held resources.- Throws:
Exception
-