Package org.projectnessie.client.util
Class TestServer
- java.lang.Object
-
- org.projectnessie.client.util.TestServer
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class TestServer extends java.lang.Object implements java.lang.AutoCloseableA HTTP test server.
-
-
Constructor Summary
Constructors Constructor Description TestServer(com.sun.net.httpserver.HttpHandler handler)TestServer(java.lang.String context, com.sun.net.httpserver.HttpHandler handler)TestServer(java.lang.String context, com.sun.net.httpserver.HttpHandler handler, java.util.function.Consumer<com.sun.net.httpserver.HttpsServer> init)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()java.net.InetSocketAddressgetAddress()java.net.URIgetUri()
-
-
-
Constructor Detail
-
TestServer
public TestServer(java.lang.String context, com.sun.net.httpserver.HttpHandler handler) throws java.io.IOException- Throws:
java.io.IOException
-
TestServer
public TestServer(java.lang.String context, com.sun.net.httpserver.HttpHandler handler, java.util.function.Consumer<com.sun.net.httpserver.HttpsServer> init) throws java.io.IOExceptionConstructor.- Parameters:
context- server contexthandler- http request handlerinit- init method (optional)- Throws:
java.io.IOException- maybe
-
TestServer
public TestServer(com.sun.net.httpserver.HttpHandler handler) throws java.io.IOException- Throws:
java.io.IOException
-
-