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