Class Server
- java.lang.Object
-
- org.glassfish.jersey.examples.httpsclientservergrizzly.Server
-
public class Server extends Object
A simple SSL-secured HTTP server.- Author:
- Pavel Bucek
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidmain(String[] args)static Serverstart()Start SSL-secured HTTP test server.voidstop()Stop SSL-secured HTTP test server.
-
-
-
Field Detail
-
BASE_URI
public static final URI BASE_URI
-
CONTENT
public static final String CONTENT
- See Also:
- Constant Field Values
-
-
Method Detail
-
start
public static Server start() throws IOException
Start SSL-secured HTTP test server.- Returns:
- an instance of the started SSL-secured HTTP test server.
- Throws:
IOException- in case there is an error while reading server key store or trust store.
-
stop
public void stop()
Stop SSL-secured HTTP test server.
-
main
public static void main(String[] args) throws InterruptedException, IOException
- Throws:
InterruptedExceptionIOException
-
-