Class SunHttpJaxrsServer
java.lang.Object
org.jboss.resteasy.plugins.server.sun.http.SunHttpJaxrsServer
- All Implemented Interfaces:
org.jboss.resteasy.plugins.server.embedded.EmbeddedJaxrsServer<SunHttpJaxrsServer>,org.jboss.resteasy.plugins.server.embedded.EmbeddedServer
@Deprecated
public class SunHttpJaxrsServer
extends Object
implements org.jboss.resteasy.plugins.server.embedded.EmbeddedJaxrsServer<SunHttpJaxrsServer>
Deprecated.
Prefer using a different implementation as this relies on JDK implementation details
com.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
FieldsModifier and TypeFieldDescriptionprotected intDeprecated.protected HttpContextBuilderDeprecated.protected ResteasyDeploymentDeprecated.protected HttpServerDeprecated.protected intDeprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeploy()Deprecated.Deprecated.intgetPort()Deprecated.Gets port number of this HttpServer.setDeployment(ResteasyDeployment deployment) Deprecated.setHostname(String hostname) Deprecated.setHttpServer(HttpServer httpServer) Deprecated.If you do not provide an HttpServer instance, one will be created on startupsetPort(int port) Deprecated.Value is ignored if HttpServer property is set.setRootResourcePath(String rootResourcePath) Deprecated.setSecurityDomain(org.jboss.resteasy.plugins.server.embedded.SecurityDomain securityDomain) Deprecated.Setting a security domain will turn on Basic Authenticationstart()Deprecated.voidstop()Deprecated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jboss.resteasy.plugins.server.embedded.EmbeddedJaxrsServer
start
-
Field Details
-
context
Deprecated. -
httpServer
Deprecated. -
configuredPort
protected int configuredPortDeprecated. -
runtimePort
protected int runtimePortDeprecated. -
deployment
Deprecated.
-
-
Constructor Details
-
SunHttpJaxrsServer
public SunHttpJaxrsServer()Deprecated.
-
-
Method Details
-
deploy
Deprecated.- Specified by:
deployin interfaceorg.jboss.resteasy.plugins.server.embedded.EmbeddedJaxrsServer<SunHttpJaxrsServer>
-
start
Deprecated.- Specified by:
startin interfaceorg.jboss.resteasy.plugins.server.embedded.EmbeddedJaxrsServer<SunHttpJaxrsServer>
-
stop
public void stop()Deprecated.- Specified by:
stopin interfaceorg.jboss.resteasy.plugins.server.embedded.EmbeddedServer
-
getDeployment
Deprecated.- Specified by:
getDeploymentin interfaceorg.jboss.resteasy.plugins.server.embedded.EmbeddedServer
-
setDeployment
Deprecated.- Specified by:
setDeploymentin interfaceorg.jboss.resteasy.plugins.server.embedded.EmbeddedJaxrsServer<SunHttpJaxrsServer>
-
setPort
Deprecated.Value is ignored if HttpServer property is set. Default value is 8080- Specified by:
setPortin interfaceorg.jboss.resteasy.plugins.server.embedded.EmbeddedJaxrsServer<SunHttpJaxrsServer>- Parameters:
port-
-
getPort
public int getPort()Deprecated.Gets port number of this HttpServer.- Returns:
- port number.
-
setHostname
Deprecated.- Specified by:
setHostnamein interfaceorg.jboss.resteasy.plugins.server.embedded.EmbeddedJaxrsServer<SunHttpJaxrsServer>
-
setSecurityDomain
public SunHttpJaxrsServer setSecurityDomain(org.jboss.resteasy.plugins.server.embedded.SecurityDomain securityDomain) Deprecated.Setting a security domain will turn on Basic Authentication- Specified by:
setSecurityDomainin interfaceorg.jboss.resteasy.plugins.server.embedded.EmbeddedJaxrsServer<SunHttpJaxrsServer>- Parameters:
securityDomain-
-
setRootResourcePath
Deprecated.- Specified by:
setRootResourcePathin interfaceorg.jboss.resteasy.plugins.server.embedded.EmbeddedJaxrsServer<SunHttpJaxrsServer>
-
setHttpServer
Deprecated.If you do not provide an HttpServer instance, one will be created on startup- Parameters:
httpServer-
-