/** * 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). * * @return the port number specified in either the environment or system properties */ public static int getPort() { return PortProvider.getPort(); }
/** * 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). * * @return the host specified in either the environment or system properties */ public static String getHost() { return PortProvider.getHost(); } }
public static void start(ResteasyDeployment deployment) throws Exception { LOG.info(Messages.MESSAGES.embeddedContainerStart()); sun = new SunHttpJaxrsServer(); sun.setDeployment(deployment); sun.setPort(PortProvider.getPort()); sun.setRootResourcePath(""); sun.setSecurityDomain(null); sun.start(); }
/** * 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). * * @return the host specified in either the environment or system properties */ public static String getHost() { return PortProvider.getHost(); } }
public UndertowJaxrsServer start() { server = Undertow.builder() .addHttpListener(PortProvider.getPort(), "localhost") .setHandler(root) .build(); server.start(); return this; }
public static void start(ResteasyDeployment deployment) throws Exception { netty = new NettyJaxrsServer(); netty.setDeployment(deployment); netty.setPort(PortProvider.getPort()); netty.setRootResourcePath(""); netty.setSecurityDomain(null); netty.start(); }
public static void start(ResteasyDeployment deployment) throws Exception { netty = new NettyJaxrsServer(); netty.setDeployment(deployment); netty.setPort(PortProvider.getPort()); netty.setRootResourcePath(""); netty.setSecurityDomain(null); netty.start(); }
public static void start(VertxResteasyDeployment deployment) throws Exception { vertx = new VertxJaxrsServer(); vertx.setDeployment(deployment); vertx.setPort(PortProvider.getPort()); vertx.setRootResourcePath(""); vertx.setSecurityDomain(null); vertx.start(); }
public static ResteasyDeployment start(String bindPath, SecurityDomain domain, ResteasyDeployment deployment) throws Exception { netty = new NettyJaxrsServer(); netty.setDeployment(deployment); netty.setPort(PortProvider.getPort()); netty.setRootResourcePath(bindPath); netty.setSecurityDomain(domain); netty.start(); return netty.getDeployment(); }
public static ResteasyDeployment start(String bindPath, SecurityDomain domain, ResteasyDeployment deployment, Hashtable<String,String> initParams, Hashtable<String,String> contextParams) throws Exception { sun = new SunHttpJaxrsServer(); sun.setDeployment(deployment); sun.setPort(PortProvider.getPort()); sun.setRootResourcePath(bindPath); sun.setSecurityDomain(domain); sun.start(); return sun.getDeployment(); }
public static ResteasyDeployment start(String bindPath, SecurityDomain domain, ResteasyDeployment deployment) throws Exception { netty = new NettyJaxrsServer(); netty.setDeployment(deployment); netty.setPort(PortProvider.getPort()); netty.setRootResourcePath(bindPath); netty.setSecurityDomain(domain); netty.start(); return netty.getDeployment(); }
public static VertxResteasyDeployment start(String bindPath, SecurityDomain domain, VertxResteasyDeployment deployment) throws Exception { vertx = new VertxJaxrsServer(); vertx.setDeployment(deployment); vertx.setPort(PortProvider.getPort()); vertx.setRootResourcePath(bindPath); vertx.setSecurityDomain(domain); vertx.start(); return vertx.getDeployment(); }
/** * 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). * * @return the port number specified in either the environment or system properties */ public static int getPort() { return PortProvider.getPort(); }
public static void start(VertxResteasyDeployment deployment) throws Exception { vertx = new VertxJaxrsServer(); vertx.setDeployment(deployment); vertx.setPort(PortProvider.getPort()); vertx.setRootResourcePath(""); vertx.setSecurityDomain(null); vertx.start(); }
public static void start(ResteasyDeployment deployment) throws Exception { netty = new NettyJaxrsServer(); netty.setDeployment(deployment); netty.setPort(PortProvider.getPort()); netty.setRootResourcePath(""); netty.setSecurityDomain(null); netty.start(); }
public static void start(ResteasyDeployment deployment) throws Exception { netty = new NettyJaxrsServer(); netty.setDeployment(deployment); netty.setPort(PortProvider.getPort()); netty.setRootResourcePath(""); netty.setSecurityDomain(null); netty.start(); }
public static ResteasyDeployment start(String bindPath, SecurityDomain domain, ResteasyDeployment deployment) throws Exception { netty = new NettyJaxrsServer(); netty.setDeployment(deployment); netty.setPort(PortProvider.getPort()); netty.setRootResourcePath(bindPath); netty.setSecurityDomain(domain); netty.start(); return netty.getDeployment(); }
public static ResteasyDeployment start(String bindPath, SecurityDomain domain, ResteasyDeployment deployment) throws Exception { netty = new NettyJaxrsServer(); netty.setDeployment(deployment); netty.setPort(PortProvider.getPort()); netty.setRootResourcePath(bindPath); netty.setSecurityDomain(domain); netty.start(); return netty.getDeployment(); }
public static VertxResteasyDeployment start(String bindPath, SecurityDomain domain, VertxResteasyDeployment deployment) throws Exception { vertx = new VertxJaxrsServer(); vertx.setDeployment(deployment); vertx.setPort(PortProvider.getPort()); vertx.setRootResourcePath(bindPath); vertx.setSecurityDomain(domain); vertx.start(); return vertx.getDeployment(); }