public class SunHttpJaxrsServer extends Object implements EmbeddedJaxrsServer
| Modifier and Type | Field and Description |
|---|---|
protected HttpContextBuilder |
context |
protected com.sun.net.httpserver.HttpServer |
httpServer |
protected int |
port |
| Constructor and Description |
|---|
SunHttpJaxrsServer() |
| Modifier and Type | Method and Description |
|---|---|
ResteasyDeployment |
getDeployment() |
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 port
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 void start()
start in interface EmbeddedJaxrsServerpublic void stop()
stop in interface EmbeddedJaxrsServerCopyright © 2015 JBoss by Red Hat. All rights reserved.