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 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 int getPort()
public void start()
start
in interface EmbeddedJaxrsServer
public void stop()
stop
in interface EmbeddedJaxrsServer
Copyright © 2021 JBoss by Red Hat. All rights reserved.