Class PortProviderUtil
java.lang.Object
org.jboss.resteasy.utils.PortProviderUtil
Utility class that provides a port number for the Resteasy embedded container.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <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
Create a URI for the provided path, using the configured portstatic URL
Create a URL for the provided path, using the configured portstatic 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, hostnamestatic String
getHost()
Get host IP.static int
getPort()
Get port.static boolean
isIpv6()
Get information about IPv6 connectivity.
-
Field Details
-
ASYNC_JOB_SERVICE_CONTEXT_KEY
- See Also:
-
-
Constructor Details
-
PortProviderUtil
public PortProviderUtil()
-
-
Method Details
-
createProxy
-
createProxy
-
createURI
-
createURL
Create a URL for the provided path, using the configured port- Parameters:
path
- the request path- Returns:
- a full URL
- Throws:
MalformedURLException
-
generateBaseUrl
-
generateURL
-
generateURL
-
getPort
public static int getPort()Get port.- Returns:
- The port number
-
getHost
-
isIpv6
public static boolean isIpv6()Get information about IPv6 connectivity.- Returns:
- IPv6 connectivity.
-