public class SunHttpJaxrsServer extends Object implements EmbeddedJaxrsServer
| Modifier and Type | Field and Description |
|---|---|
protected int |
configuredPort |
protected HttpContextBuilder |
context |
protected com.sun.net.httpserver.HttpServer |
httpServer |
protected int |
runtimePort |
| Constructor and Description |
|---|
SunHttpJaxrsServer() |
| Modifier and Type | Method and Description |
|---|---|
ResteasyDeployment |
getDeployment() |
int |
getPort()
Gets port number of this HttpServer.
|
void |
setDeployment(ResteasyDeployment deployment) |
void |
setHttpServer(com.sun.net.httpserver.HttpServer httpServer)
If you do not provide an HttpServer instance, one will be created on startup
|
void |
setPort(int port)
Value is ignored if HttpServer property is set.
|
void |
setRootResourcePath(String rootResourcePath) |
void |
setSecurityDomain(SecurityDomain securityDomain)
Setting a security domain will turn on Basic Authentication
|
void |
start() |
void |
stop() |
protected HttpContextBuilder context
protected com.sun.net.httpserver.HttpServer httpServer
protected int configuredPort
protected int runtimePort
public void setRootResourcePath(String rootResourcePath)
setRootResourcePath in interface EmbeddedJaxrsServerpublic ResteasyDeployment getDeployment()
getDeployment in interface EmbeddedJaxrsServerpublic void setDeployment(ResteasyDeployment deployment)
setDeployment in interface EmbeddedJaxrsServerpublic void setSecurityDomain(SecurityDomain securityDomain)
setSecurityDomain in interface EmbeddedJaxrsServersecurityDomain - public void setHttpServer(com.sun.net.httpserver.HttpServer httpServer)
httpServer - public void setPort(int port)
port - public int getPort()
public void start()
start in interface EmbeddedJaxrsServerpublic void stop()
stop in interface EmbeddedJaxrsServerCopyright © 2018 JBoss by Red Hat. All rights reserved.