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 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.Returns the deployment being used for the server.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(SecurityDomain securityDomain) Deprecated.Setting a security domain will turn on Basic Authenticationstart()Deprecated.voidstop()Deprecated.Stops the server.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 interfaceEmbeddedJaxrsServer<SunHttpJaxrsServer>
-
start
Deprecated.- Specified by:
startin interfaceEmbeddedJaxrsServer<SunHttpJaxrsServer>
-
stop
public void stop()Deprecated.Description copied from interface:EmbeddedServerStops the server.- Specified by:
stopin interfaceEmbeddedServer
-
getDeployment
Deprecated.Description copied from interface:EmbeddedServerReturns the deployment being used for the server.- Specified by:
getDeploymentin interfaceEmbeddedServer- Returns:
- the deployment
-
setDeployment
Deprecated.- Specified by:
setDeploymentin interfaceEmbeddedJaxrsServer<SunHttpJaxrsServer>
-
setPort
Deprecated.Value is ignored if HttpServer property is set. Default value is 8080- Specified by:
setPortin interfaceEmbeddedJaxrsServer<SunHttpJaxrsServer>- Parameters:
port-
-
getPort
public int getPort()Deprecated.Gets port number of this HttpServer.- Returns:
- port number.
-
setHostname
Deprecated.- Specified by:
setHostnamein interfaceEmbeddedJaxrsServer<SunHttpJaxrsServer>
-
setSecurityDomain
Deprecated.Setting a security domain will turn on Basic Authentication- Specified by:
setSecurityDomainin interfaceEmbeddedJaxrsServer<SunHttpJaxrsServer>- Parameters:
securityDomain-
-
setRootResourcePath
Deprecated.- Specified by:
setRootResourcePathin interfaceEmbeddedJaxrsServer<SunHttpJaxrsServer>
-
setHttpServer
Deprecated.If you do not provide an HttpServer instance, one will be created on startup- Parameters:
httpServer-
-