Class SunHttpJaxrsServer
- java.lang.Object
-
- org.jboss.resteasy.plugins.server.sun.http.SunHttpJaxrsServer
-
- All Implemented Interfaces:
EmbeddedJaxrsServer<SunHttpJaxrsServer>
,EmbeddedServer
@Deprecated public class SunHttpJaxrsServer extends Object implements EmbeddedJaxrsServer<SunHttpJaxrsServer>
Deprecated.Prefer using a different implementation as this relies on JDK implementation detailscom.sun.net.httpserver.HttpServer adapter for Resteasy. You may instead want to create and manage your own HttpServer. Use the HttpContextBuilder class in this case to build and register a specific HttpContext.- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
Field Summary
Fields Modifier and Type Field Description protected int
configuredPort
Deprecated.protected HttpContextBuilder
context
Deprecated.protected ResteasyDeployment
deployment
Deprecated.protected HttpServer
httpServer
Deprecated.protected int
runtimePort
Deprecated.
-
Constructor Summary
Constructors Constructor Description SunHttpJaxrsServer()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description SunHttpJaxrsServer
deploy()
Deprecated.ResteasyDeployment
getDeployment()
Deprecated.Returns the deployment being used for the server.int
getPort()
Deprecated.Gets port number of this HttpServer.SunHttpJaxrsServer
setDeployment(ResteasyDeployment deployment)
Deprecated.SunHttpJaxrsServer
setHostname(String hostname)
Deprecated.SunHttpJaxrsServer
setHttpServer(HttpServer httpServer)
Deprecated.If you do not provide an HttpServer instance, one will be created on startupSunHttpJaxrsServer
setPort(int port)
Deprecated.Value is ignored if HttpServer property is set.SunHttpJaxrsServer
setRootResourcePath(String rootResourcePath)
Deprecated.SunHttpJaxrsServer
setSecurityDomain(SecurityDomain securityDomain)
Deprecated.Setting a security domain will turn on Basic AuthenticationSunHttpJaxrsServer
start()
Deprecated.void
stop()
Deprecated.Stops the server.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jboss.resteasy.plugins.server.embedded.EmbeddedJaxrsServer
start
-
-
-
-
Field Detail
-
context
protected HttpContextBuilder context
Deprecated.
-
httpServer
protected HttpServer httpServer
Deprecated.
-
configuredPort
protected int configuredPort
Deprecated.
-
runtimePort
protected int runtimePort
Deprecated.
-
deployment
protected ResteasyDeployment deployment
Deprecated.
-
-
Method Detail
-
deploy
public SunHttpJaxrsServer deploy()
Deprecated.- Specified by:
deploy
in interfaceEmbeddedJaxrsServer<SunHttpJaxrsServer>
-
start
public SunHttpJaxrsServer start()
Deprecated.- Specified by:
start
in interfaceEmbeddedJaxrsServer<SunHttpJaxrsServer>
-
stop
public void stop()
Deprecated.Description copied from interface:EmbeddedServer
Stops the server.- Specified by:
stop
in interfaceEmbeddedServer
-
getDeployment
public ResteasyDeployment getDeployment()
Deprecated.Description copied from interface:EmbeddedServer
Returns the deployment being used for the server.- Specified by:
getDeployment
in interfaceEmbeddedServer
- Returns:
- the deployment
-
setDeployment
public SunHttpJaxrsServer setDeployment(ResteasyDeployment deployment)
Deprecated.- Specified by:
setDeployment
in interfaceEmbeddedJaxrsServer<SunHttpJaxrsServer>
-
setPort
public SunHttpJaxrsServer setPort(int port)
Deprecated.Value is ignored if HttpServer property is set. Default value is 8080- Specified by:
setPort
in interfaceEmbeddedJaxrsServer<SunHttpJaxrsServer>
- Parameters:
port
-
-
getPort
public int getPort()
Deprecated.Gets port number of this HttpServer.- Returns:
- port number.
-
setHostname
public SunHttpJaxrsServer setHostname(String hostname)
Deprecated.- Specified by:
setHostname
in interfaceEmbeddedJaxrsServer<SunHttpJaxrsServer>
-
setSecurityDomain
public SunHttpJaxrsServer setSecurityDomain(SecurityDomain securityDomain)
Deprecated.Setting a security domain will turn on Basic Authentication- Specified by:
setSecurityDomain
in interfaceEmbeddedJaxrsServer<SunHttpJaxrsServer>
- Parameters:
securityDomain
-
-
setRootResourcePath
public SunHttpJaxrsServer setRootResourcePath(String rootResourcePath)
Deprecated.- Specified by:
setRootResourcePath
in interfaceEmbeddedJaxrsServer<SunHttpJaxrsServer>
-
setHttpServer
public SunHttpJaxrsServer setHttpServer(HttpServer httpServer)
Deprecated.If you do not provide an HttpServer instance, one will be created on startup- Parameters:
httpServer
-
-
-