public class PortProvider extends Object
Constructor and Description |
---|
PortProvider() |
Modifier and Type | Method and Description |
---|---|
static String |
getHost()
Look up the configured hostname, first checking an environment variable (RESTEASY_HOST),
then a system property (org.jboss.resteasy.host), and finally the default hostname (localhost).
|
static int |
getPort()
/**
Look up the configured port number, first checking an environment variable (RESTEASY_PORT),
then a system property (org.jboss.resteasy.port), and finally the default port (8081).
|
public static int getPort()
public static String getHost()
Copyright © 2019 JBoss by Red Hat. All rights reserved.