Class UndertowServer
- java.lang.Object
-
- org.junit.rules.ExternalResource
-
- org.wildfly.elytron.web.undertow.common.UndertowServer
-
- All Implemented Interfaces:
org.junit.rules.TestRule
public abstract class UndertowServer extends org.junit.rules.ExternalResource- Author:
- Darran Lofthouse
-
-
Field Summary
Fields Modifier and Type Field Description protected StringcontextRootprotected Stringpathprotected intportprotected Supplier<SSLContext>serverSslContext
-
Constructor Summary
Constructors Modifier Constructor Description protectedUndertowServer(Supplier<SSLContext> serverSslContext, int port, String contextRoot)protectedUndertowServer(Supplier<SSLContext> serverSslContext, int port, String contextRoot, String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URIcreateUri()URIcreateUri(String alternatePath)URIcreateUri(String contextRoot, String alternatePath)voidforceShutdown()StringgetContextRoot()
-
-
-
Field Detail
-
serverSslContext
protected final Supplier<SSLContext> serverSslContext
-
port
protected final int port
-
contextRoot
protected final String contextRoot
-
path
protected final String path
-
-
Constructor Detail
-
UndertowServer
protected UndertowServer(Supplier<SSLContext> serverSslContext, int port, String contextRoot)
-
UndertowServer
protected UndertowServer(Supplier<SSLContext> serverSslContext, int port, String contextRoot, String path)
-
-
Method Detail
-
createUri
public URI createUri() throws URISyntaxException
- Throws:
URISyntaxException
-
createUri
public URI createUri(String alternatePath) throws URISyntaxException
- Throws:
URISyntaxException
-
createUri
public URI createUri(String contextRoot, String alternatePath) throws URISyntaxException
- Throws:
URISyntaxException
-
forceShutdown
public void forceShutdown()
-
getContextRoot
public String getContextRoot()
-
-