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 EmbeddedJaxrsServer
public ResteasyDeployment getDeployment()
getDeployment
in interface EmbeddedJaxrsServer
public void setDeployment(ResteasyDeployment deployment)
setDeployment
in interface EmbeddedJaxrsServer
public void setSecurityDomain(SecurityDomain securityDomain)
setSecurityDomain
in interface EmbeddedJaxrsServer
securityDomain
- public void setHttpServer(com.sun.net.httpserver.HttpServer httpServer)
httpServer
- public void setPort(int port)
port
- public void start()
start
in interface EmbeddedJaxrsServer
public void stop()
stop
in interface EmbeddedJaxrsServer
Copyright © 2014. All Rights Reserved.