public class PortProviderUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ASYNC_JOB_SERVICE_CONTEXT_KEY |
Constructor and Description |
---|
PortProviderUtil() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
createProxy(Class<T> clazz,
String testName)
Create a Resteasy client proxy with an empty base request path.
|
static <T> T |
createProxy(Class<T> clazz,
String path,
String testName)
Create a Resteasy client proxy.
|
static URI |
createURI(String path,
String testName)
Create a URI for the provided path, using the configured port
|
static URL |
createURL(String path,
String testName)
Create a URL for the provided path, using the configured port
|
static String |
generateBaseUrl(String testName)
Generate a base URL incorporating the configured port.
|
static String |
generateURL(String path,
String testName)
Generate a URL incorporating the configured port.
|
static String |
generateURL(String path,
String testName,
String hostName,
int port)
Generate a URL with port, hostname
|
static String |
getHost()
Get host IP.
|
static int |
getPort()
Get port.
|
static boolean |
isIpv6()
Get information about IPv6 connectivity.
|
public static final String ASYNC_JOB_SERVICE_CONTEXT_KEY
public static <T> T createProxy(Class<T> clazz, String testName)
clazz
- the client interface classpublic static <T> T createProxy(Class<T> clazz, String path, String testName)
clazz
- the client interface classpath
- the base request pathpublic static URI createURI(String path, String testName)
path
- the request pathpublic static URL createURL(String path, String testName) throws MalformedURLException
path
- the request pathMalformedURLException
public static String generateBaseUrl(String testName)
public static String generateURL(String path, String testName)
path
- the pathtestName
- the test namepublic static String generateURL(String path, String testName, String hostName, int port)
path
- the pathpublic static int getPort()
public static String getHost()
public static boolean isIpv6()
Copyright © 2019 JBoss by Red Hat. All rights reserved.